You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NWJS Version : sdk-0.25.0 (same in sdk-0.22.3)
Operating System : Win7, x64
Expected behavior
window.parent.parent and window.parent.top should return a Window and shouldn't throw error in cross-origin iframe. It's behavior of Google Chrome.
Actual behavior
VM346:1 Uncaught DOMException: Blocked a frame with origin "..." from accessing a cross-origin frame.
at <anonymous>:1:15
How to reproduce
Launch nw.exe
Open DevTools
Run in console
var iframe = document.createElement('iframe');
iframe.src = 'https://example.com/';
document.body.appendChild(iframe);
Switch frame selector for console from "top" to "example.com"
Run in console window.parent.parent (in "example.com" iframe)
Real issue
Google IMA is not working in NW.js because of exception in part of code
for (var f = 0; e != e.parent; )
f++,
e = e.parent;
where variable "e" is equal to "window".
You can check it on page: https://developers.google.com/interactive-media-ads/docs/sdks/html5/vastinspector
You will see cross-origin exceptions in console. Note please, that in version 0.25.0 page with Google IMA library becomes unresponsive on load, so you should use earlier versions for reproducing exactly this issue.
The text was updated successfully, but these errors were encountered:
NWJS Version : sdk-0.25.0 (same in sdk-0.22.3)
Operating System : Win7, x64
Expected behavior
window.parent.parent
andwindow.parent.top
should return a Window and shouldn't throw error in cross-origin iframe. It's behavior of Google Chrome.Actual behavior
How to reproduce
window.parent.parent
(in "example.com" iframe)Real issue
Google IMA is not working in NW.js because of exception in part of code
where variable "e" is equal to "window".
You can check it on page: https://developers.google.com/interactive-media-ads/docs/sdks/html5/vastinspector
You will see cross-origin exceptions in console.
Note please, that in version 0.25.0 page with Google IMA library becomes unresponsive on load, so you should use earlier versions for reproducing exactly this issue.
The text was updated successfully, but these errors were encountered: