window.open return null
Categories
(WebExtensions :: General, defect)
Tracking
(Not tracked)
People
(Reporter: andrey, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Steps to reproduce:
Hello. I try call window.open from my extension with url of external trusted site with https scheme (own site).
Actual results:
if i call window.open with url where scheme is moz-extension is will successful and window.open return Window object.
if i call with url where scheme is https window.open return null and in opened window window.opener also null.
another case:
call window.open with empty url is return Window object and i call resultWindow.location.replace with external url with https scheme resultWindow becomes is DeadObject.
I can'f find any information about this behavoir. it's security policy or bug?
if is security policy problem, i think we can set trusted external url in manifest.
Expected results:
When we call window.open from extension with url where scheme is https, we should have Window object and opened widnow shoud have parent window object in window.opener.
just like this happens in Firefox outside of extension.
Comment 1•6 years ago
|
||
Sounds like a duplicate of bug 1466347.
(In reply to Gingerbread Man from comment #1)
Sounds like a duplicate of bug 1466347.
I think yes. can close.
But in Chrome is working as we expected and window object alway will return for both case.
Description
•