webview.executeScript wrong context
See original GitHub issueNWJS Version : 0.26.0 Operating System : macos
Expected behavior
webview.executeScript({code: 'console.log(window)'}, console.log)
should log the window object
Actual behavior
webview.executeScript({code: 'console.log(window)'}, console.log)
logs the wrong window object
How to reproduce
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
webview.executeScript wrong context · Issue #6299 · nwjs/nw.js
In the isolated context you have full access to the dom and I don't want to inject my libraries directly in the guest...
Read more >"Chrome Apps" webview.executeScript access guest global ...
An answer to summarize the steps required. 1) You inject a content script with webview.executeScript() into the embedded page.
Read more >[WebView] executeScript not working...? Whats wrong?
Hello! I'm working on a client solution, using an HTML-markup as the UI, loaded into a WebView. It works great at all.
Read more >chrome.webviewTag - Chrome Developers
Creates a new context menu item. Note that if an error occurs during creation, you may not find out until the creation callback...
Read more >chrome/common/extensions/api/webview_tag.json - chromium/src ...
"description": "Creates a new context menu item. Note that if an error occurs during creation, you may not find out until the creation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is fixed in git and will be available in the next nightly build.
Yes see http://nwjs.readthedocs.io/en/nw27/References/webview Tag/#executescript-in-main-world
It’s in 0.27 nightly and will be released with 0.27.0 in 1 or 2 days.
On Dec 6, 2017 8:26 PM, “George Petrov” notifications@github.com wrote: