Open Bug 1726068 Opened 3 years ago Updated 2 years ago

Web extension content scripts don't run on certain about:blank popups

Categories

(WebExtensions :: Untriaged, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: toasted.nutbread, Unassigned)

Details

Attachments

(2 files)

Attached file test.zip

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:

  1. 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.
  2. 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:
    1. Opens a popup with url='', which exhibits the issue.
    2. Opens a popup with url='about:blank', which does not exhibit the issue.

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.

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.

Product: Firefox → WebExtensions

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.

Status: UNCONFIRMED → NEW
Ever confirmed: true

To investigate.

Flags: needinfo?(tomica)

Alex, can you please check if this is a regression?

Flags: needinfo?(tomica)

I performed a bisection on this issue and the conclusion is that this bug was always present and not a regression.

Thanks,
Victor

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: