Closed Bug 1550877 Opened 6 years ago Closed 6 years ago

browser.tabs.update fails for extension page

Categories

(GeckoView :: Extensions, defect, P1)

68 Branch
Unspecified
Android
defect

Tracking

(firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: csadilek, Assigned: agi)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: crash, regression, Whiteboard: [geckoview:fenix:m6])

Attachments

(1 file)

When invoking browser.tabs.update for an extension page (an html page packaged with the extension) I see about:blank being loaded with the following errors in the console:

TypeError: E10SUtils is undefined in GeckoViewNavigation.jsm:159:11

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowUtils.removeSheetUsingURIString]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: resource://gre/modules/ExtensionCommon.jsm :: runSafeSyncWithoutClone :: line 65" data: no] ExtensionCommon.jsm:65:12
runSafeSyncWithoutClone resource://gre/modules/ExtensionCommon.jsm:65
cleanup resource://gre/modules/ExtensionContent.jsm:353
close resource://gre/modules/ExtensionContent.jsm:814
destroyed resource://gre/modules/ExtensionContent.jsm:889
observe resource://gre/modules/ExtensionContent.jsm:905

I did pass in the url as returned from browser.extension.getURL(...) which seems to have correctly resolved the moz-extension:// url.

Blocks: 1543755

This fixes a crash in browser.tabs.update when used with WebExtension pages.

Regressed by: 1521549
Assignee: nobody → agi

Christian, does the AC Reader View extension need this fix for Fenix MVP?

P1 crash regression from bug 1521549

Flags: needinfo?(csadilek)
Keywords: crash, regression
OS: All → Android
Priority: -- → P1
Whiteboard: [geckoview:fenix:m6]

I think so, yes. With this fix we can make the reader view extension much better, as it will allow us to properly isolate reader view from the original page (and from JavaScript that might be running there to display popups, ads, etc.).

Thanks for fixing this so quickly!

Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/877ae9359a27 Use correct E10SUtils in GeckoViewNavigation. r=snorp
Flags: needinfo?(agi)
Flags: needinfo?(agi)
Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/566c25b14d47 Use correct E10SUtils in GeckoViewNavigation. r=snorp
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Flags: needinfo?(csadilek)
Has Regression Range: --- → yes

Moving some extension 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.

Attachment

General

Created:
Updated:
Size: