Closed Bug 1550916 Opened 6 years ago Closed 6 years ago

WebExtensions webNavigation TypeError: chromeWin.gBrowserInit is undefined

Categories

(GeckoView :: Extensions, defect)

68 Branch
Unspecified
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: shangji920903, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

manifest.json
{
"manifest_version": 2,
"name": "xxxxxxx",
"version": "1.0",
"background": {
"scripts": ["index.js"]
},
"content_security_policy": "default-src 'unsafe-eval'",
"permissions": [
"<all_urls>",
"webNavigation",
"nativeMessaging",
"geckoViewAddons",
"activeTab"
]
}

index.js
browser.webNavigation.onDOMContentLoaded.addListener(
function (details) {
browser.runtime.sendNativeMessage("browser", "WebExtension Message !!!!");
}
);

But! Inside Geckoview 68, I don't have any way to initialize a Chrome UI......

Actual results:

E/GeckoConsole: [JavaScript Error: "TypeError: chromeWin.gBrowserInit is undefined" {file: "chrome://extensions/content/parent/ext-webNavigation.js" line: 128}]

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID

Moving some WebExtension bugs to the GeckoView::Extensions component.

Component: General → Extensions
You need to log in before you can comment on or make changes to this bug.