Trying to open `window.opener` object in Chrome Developer Tools crashes the current and previous tab
Reported by
he...@gurinderhans.me,
Aug 29 2016
|
||
Issue description
Chrome Version : 52.0.2743.116 (Official Build) (64-bit)
URLs (if applicable) : <any web page with link that opens to new tab>
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari: OK
Firefox: OK
IE: OK
What steps will reproduce the problem?
(1) Visit a site with a link that has the property `target="_blank"`, ex `<a href="https://google.ca" target="_blank">My Link</a>
(2) Once new tab opens, open up the `Chrome Developer Tools` and in the `Console` type: ```window.opener```
(3) `Chrome Developer Tools` will now show you the object 'view' to which you can click on the ▶ button to expand the object.
(4) Click on ▶ button, will cause the current opened tab and the tab on which you clicked the link to open current tab, to immediately crash
(5) A message is displayed in the `Chrome Developer Tools` window, that reads, "DevTools was disconnected from the page \n Once page is reloaded, DevTools will automatically reconnect."
(6) A note: if before trying to press ▶ you ran the command ```window.opener.location="https://google.ca", assuming the previous page does not have safeguards to prevent window.opener access to the new tab, the previous tab will browse to "https://www.google.ca". If now you click ▶ button, only the current tab will crash, and not the previous tab that was just rerouted.
What is the expected result?
- The two tabs should not crash when clicking the ▶ button and `Chrome Developer Tools` should not disconnect, and instead expand the `window.opener` object for the user to inspect.
What happens instead?
The two tabs crash causing `Chrome Developer Tools` to disconnect and the user not being able to inspect the `window.opener` object.
Please provide any additional information below. Attach a screenshot if
possible.
- Screenshot attached.
,
Sep 8 2016
Hello, I came here to report what I think is the same bug. Reproduce: https://github.com/a-morn/chromium-debug-tools-issue
,
Sep 8 2017
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||
►
Sign in to add a comment |
||
Comment 1 by he...@gurinderhans.me
, Aug 29 2016