Web extension content scripts don't run on certain about:blank popups
Categories
(WebExtensions :: Untriaged, defect, P3)
Tracking
(Not tracked)
People
(Reporter: toasted.nutbread, Unassigned)
Details
Attachments
(2 files)
Web extension content scripts don't run on popups created with url=''
. The URL is effectively about:blank
, but the extension does not run on the page. If the URL is 'about:blank'
, the extension does run on the popup.
Attached is an example, which includes two parts:
- A sample web extension (the .zip itself can be used). It simply logs a message for every frame. This should be installed before using the test.html page.
- A sample webpage which spawns popups for testing: test.html. After extracting from the .zip, this file can be opened as a
file:
URL. It has two links for testing:- Opens a popup with
url=''
, which exhibits the issue. - Opens a popup with
url='about:blank'
, which does not exhibit the issue.
- Opens a popup with
Open the developer console on the popup to see the log messages from the extension. 1 will display only one log message, 2 will display both log messages. The popup window should be manually closed between running the tests to ensure a fresh setup.
For reference, in Chromium browsers will run the extension in both cases.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
I can confirm the behavior described in bug description, so I will mark the issue as NEW. I will also attach a video describing the issue.
Comment 5•3 years ago
|
||
Alex, can you please check if this is a regression?
I performed a bisection on this issue and the conclusion is that this bug was always present and not a regression.
Thanks,
Victor
Updated•2 years ago
|
Description
•