Closed Bug 1613898 Opened 6 years ago Closed 6 years ago

window.open return null

Categories

(WebExtensions :: General, defect)

72 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1466347

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.

Sounds like a duplicate of bug 1466347.

Component: Untriaged → General
Product: Firefox → WebExtensions

(In reply to Gingerbread Man from comment #1)

Sounds like a duplicate of bug 1466347.

I think yes. can close.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE

But in Chrome is working as we expected and window object alway will return for both case.

You need to log in before you can comment on or make changes to this bug.