Closed Bug 1269341 Opened 9 years ago Closed 8 years ago

tabs.query() disallows searching for extension's pages

Categories

(WebExtensions :: Untriaged, defect, P3)

defect

Tracking

(firefox49 affected)

RESOLVED DUPLICATE of bug 1271354
mozilla49
Tracking Status
firefox49 --- affected

People

(Reporter: jwkbugzilla, Assigned: kmag)

References

Details

(Whiteboard: triaged)

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: No error messages, the extension successfully called tabs.query() for one of its own URLs - as happening in Chrome. Actual results: Error message: > Invalid match pattern: 'moz-extension://ab3bef6f-8307-7f4a-a92f-ffdaef522d41/foo.html' The code causing this is the following: chrome.tabs.query({ url: chrome.runtime.getURL("foo.html") });
Assignee: nobody → kmaglione+bmo
Priority: -- → P3
Whiteboard: triaged
Target Milestone: --- → mozilla49
This is the same as bug 1271354, the problem is MatchPattern doesn't allow/include the moz-extension scheme.
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: