Strange console logs showing when running Tauri dev : BuyNow driver Initialized #9831
Replies: 5 comments 13 replies
-
I am having the same issue, not with Tauri, but with Neutralino, so I think there is something that is injecting itself into WebView2. I noticed it the first time yesterday as well when debugging my project. The same strings are not in my code or my dependencies. I searched GitHub and found nothing, until today when you posted this. Some findings when I tried figuring this out, it only seems to appear when the current page is on |
Beta Was this translation helpful? Give feedback.
-
I saw these messages today while debugging a .NET app on Microsoft Edge. Seems to be some injected (potentially malicious) code. Edge version: 125.0.2535.51 |
Beta Was this translation helpful? Give feedback.
-
Throwing on the pile, saw this while debugging an Angular application. Opened a new tab and without a site even loaded in it, was seeing these console messages. I wish I had made note of the exact version Edge was on, because I immediately applied the latest upgrade to 125.0.2535.51 and I'm actually not seeing these messages anymore. @lukedays with a fresh browser session and Edge reporting version 125.0.2535.51, do you still see these messages, either in the context you initially encountered them in or otherwise on a random page? For the record, I only got these on macOS. Tried on a Windows box that already had the latest Edge, no such messages. Tried again on my mac after Edge upgraded, likewise no such messages. Don't have anywhere else to test currently. |
Beta Was this translation helpful? Give feedback.
-
Another update, this may be tied to some sort of M$ service worker and/or integrations they're trying to shove into Bing and MSN. I cleared service workers related to these sites and while I once again got strange things loading as debugger:///VM* objects, they now contain:
Which to me looks like an "evolution" of the above script, perhaps pointing towards this being something that snuck out in an incomplete state in a service worker and has since been upgraded. Still worrisome that it just kinda pops up...but anyone seeing this, especially on Bing and MSN pages, try clearing the service workers related to those and then refresh everything, you may see the log messages go away. Also regarding this specific repo this discussion happens to be on, needless to say, it's probably nothing in their camp anyway but I'm glad I wasn't alone in seeing this confusing console logging today. Better safe than sorry! |
Beta Was this translation helpful? Give feedback.
-
In EdgeWebView/125.0.2535.51 I was able to find matches in Starting at byte offset 250568137 (according to ripgrep): !function(){'use strict';let t=!1;function e(){window.BuyNowRuntime.postMessageToHost('StartBuyNow')}function o(){window.setTimeout((()=>{let t=null;try{t=document.getElementsByTagName('social-lead-gen-in-article')[1].shadowRoot.children[0].getElementsByClassName('button-content')[0]}catch{return void o()}t&&(t.textContent='Subscribe Now',console.log('MSN parser Found button!!!!!'),t.addEventListener('click',(t=>{e(),t.stopPropagation()}),!1))}),200)}window.ExecuteBuyNowDriver=function(){console.log('MsnDriver starts'),o()},window.OnBuyNowClick=e,window.BuyNowRuntime=new class{constructor(){this.onCheckoutFinished=void 0,this.orderDetails=void 0}raiseMessageFromHost(t){const e=t.shift();e&&'StartMerchantAuth'===e?console.log(`Received checkout results: ${t[0]}`):e&&'CheckoutFinished'===e&&this.onCheckoutFinished&&this.onCheckoutFinished(t[0])}postMessageToHost(t,e){try{walletBuyNowNativeHandler&&walletBuyNowNativeHandler.sendMessageToHost(t,e)}catch(t){console.log(t)}}initialize(e){return t||(console.log('BuyNow driver Initialized!!!!!!'),window.ExecuteBuyNowDriver(),t=!0),!0}StartBuyNowRuntime(t){this.onCheckoutFinished=t}}}(); |
Beta Was this translation helpful? Give feedback.
-
I am new to using Tauri and I have started to see these logs in my console:
How do I find what is causing this and get rid of it? I have searched for the code in my project and cannot find anything. Any help or guidance is much appreciated!
It links to: debugger:///VM11
source code
Beta Was this translation helpful? Give feedback.
All reactions