Closed Bug 1670230 Opened 4 years ago Closed 2 years ago

browser_permmgr_sync.js test fails with System Addon that contains a content script with inline-code

Categories

(Core :: Permission Manager, defect, P5)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: denschub, Unassigned)

References

Details

Attachments

(1 file)

Attached is a patch that contains a simple system addon which registers a content script with inline code:

browser.contentScripts.register({
  matches: ["*://thisisnotusedyet.example.com/*"],
  js: [
    {
      code: "alert('hello world');",
    },
  ],
});

Having this addon in-tree causes extensions/permissions/test/browser_permmgr_sync.js to fail (try push, failure log). Registering a content script is fine if one references a JS file instead of providing the code as a string.

Any help here would be appreciated, as this is blocking a (non-critical) feature of the WebCompat Interventions addon.

See Also: → 1663967
Blocks: 1670241
Flags: needinfo?(jhofmann)

Won't get to this anytime soon :(

Severity: -- → S4
Flags: needinfo?(jhofmann)
Priority: -- → P5

I'll CLOSE WONTFIX this for now. There is no urgent need to solve this, the original patch is old, and we have some planned refactoring hopefully coming up anyway.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: