Closed Bug 1405265 Opened 7 years ago Closed 7 years ago

Allow window.close after chrome.tabs.create() for extension-local pages

Categories

(WebExtensions :: Frontend, defect)

57 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1409375

People

(Reporter: extensions, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce: chrome.tabs.create({ url: 'pages/index.html' }) Actual results: calling window.close in index.html logs an error on the console: Scripts may not close windows that were not opened by script Expected results: window.close should be allowed in this scenario, effectively closing the tab. fwiw, google chrome handles it that way.
Component: Untriaged → WebExtensions: Frontend
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
I am reopening because bug 1301227 isn't quite the same thing. There is a flag allowScriptsToClose in the windows.create() call but there is no such thing in tabs.create().
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---
Never mind, this is a duplicate of bug 1409375. I thought that I've seen this already but couldn't find it.
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.