Closed Bug 1623153 Opened 4 years ago Closed 4 years ago

calling `update` on a disabled extension hangs

Categories

(GeckoView :: Extensions, defect, P1)

Unspecified
All
defect

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: agi, Assigned: owlish, Mentored)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [geckoview:m78])

Attachments

(1 file)

:bdhal found this. We hang when an embedder calls update on a disabled extension. This is because we wait for the onReady even which will never come.

In here: https://searchfox.org/mozilla-central/rev/d6f957415cf009995ecb539ef1425316d82164a9/mobile/android/modules/geckoview/GeckoViewWebExtension.jsm#387

we should do something like:

if (aAddon.userDisabled || aAddon.embedderDisabled) {
    const extension = exportExtension(
        aAddon,
        aAddon.userPermissions,
        sourceURI
    );
    this.resolve({ extension });
    return;
}
Assignee: nobody → bugzeeeeee
Whiteboard: [geckoview:m78]
Priority: P2 → P1
Pushed by istorozhko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c3f9452f877b
Prevent app hanging when updating disabled web extensions r=geckoview-reviewers,agi
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: