-
Notifications
You must be signed in to change notification settings - Fork 49.1k
DevTools: Improve browser extension iframe support #19827
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
Conversation
DevTools: Iframe support
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 554ea7e:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks good.
} | ||
|
||
function isMainWindow(targetWindow: any): boolean { | ||
return targetWindow.self === targetWindow.top; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why window.self
rather than just window
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the same but self
can work with worker(it is more flexible)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok just wanted to confirm I wasn't missing anything. 😄
Thank you @bvaughn ! |
Looks like this change broke the development test harness. To repro:
I think I'm going to have to revert it for now. Any interest in looking back into it @omarsy? |
ok @bvaughn I'm looking it |
Co-authored-by: Joel DSouza <joel.dsouza@kapturecrm.com> Co-authored-by: Damien Maillard <damien.maillard@dailymotion.com> Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com>
…19827)" (facebook#19852) This reverts commit ec39a5e.
Co-authored-by: Joel DSouza <joel.dsouza@kapturecrm.com> Co-authored-by: Damien Maillard <damien.maillard@dailymotion.com> Co-authored-by: Brian Vaughn <brian.david.vaughn@gmail.com>
…19827)" (facebook#19852) This reverts commit ec39a5e.
Summary
This pull requests is intended to improve iframe support for devtools browser extensions(#18945), without add a code to pass the hook through from the parent.
Test Plan