Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[demo][hook-callback.js] top from iframe may have unexpected access rights #293

Closed
t2ym opened this issue May 30, 2019 · 0 comments
Closed

Comments

@t2ym
Copy link
Owner

t2ym commented May 30, 2019

[demo][hook-callback.js] top from iframe may have unexpected access rights

Suspected Root Cause

Fix

diff --git a/demo/hook-callback.js b/demo/hook-callback.js
index 73657ff..3bdd13e 100644
--- a/demo/hook-callback.js
+++ b/demo/hook-callback.js
@@ -136,7 +136,9 @@ Copyright (c) 2017, 2018, Tetsuya Mori <t2y3141592@gmail.com>. All rights reserv
     else {
       emptyDocumentURL = window.top.emptyDocumentURL;
       otherWindowObjects = window.top.otherWindowObjects;
+      otherWindowObjects.set(Object, window);
       otherWindowObjectsStatus = window.top.otherWindowObjectsStatus;
+      otherWindowObjectsStatus.set = true;
     }
   }
   const _global = typeof window === 'object' ? window : self;
@t2ym t2ym closed this as completed in 6b54b98 Jun 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant