Closed Bug 1269330 Opened 8 years ago Closed 8 years ago

chrome and browser namespaces are not injected into frames inside the background page

Categories

(WebExtensions :: Untriaged, defect)

defect
Not set
normal

Tracking

(firefox49 affected)

RESOLVED DUPLICATE of bug 1258347
Tracking Status
firefox49 --- affected

People

(Reporter: jwkbugzilla, Unassigned)

Details

Attachments

(1 file)

Attached file Minimal test extension
Steps to reproduce:

1. Download attached extension.
2. Go to about:config and set xpinstall.signatures.required to false.
3. Open Add-ons Manager and install the extension from file.
4. Press Ctrl-Shift-J (Cmd-Shift-J on OS X) to open the Browser Console.

Expected results:

The extension reports ["object", "object", "object", "object"] to the console - the first two values represent the chrome/browser namespaces inside a frame which has been added to the background page, the second two chrome/browser namespaces inside the background page itself.

Actual results:

The extension reports ["undefined", "undefined", "object", "object"] to the console - neither chrome nor browser namespace is defined inside a frame which has been added to the background page. This is different from Chrome's behavior, there the namespaces seem to be injected based on content location, not based on what is loading the page.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: