Closed Bug 1893672 Opened 2 years ago Closed 2 years ago

Extensions in revamped sidebar aren't being disabled/enabled as expected

Categories

(Firefox :: Sidebar, defect, P2)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: kcochrane, Assigned: jsudiaman)

References

Details

(Whiteboard: [fidefe-sidebar])

Attachments

(2 files, 1 external file)

With a clean profile, when disabling the extension, the entrypoint disappears from the new sidebar as expected. However, the extension never seems to reappear after re-enabling the extension.

Updated STR:
Enable the sidebar.revamp pref by setting to true
Install a sidebar extension such as Sidebery
Restart the browser with the extension installed/enabled
On the manage extensions page, disable the Sidebery extension
Re-enable the extension and notice the entrypoint never returns to the sidebar

This doesn't seem to occur the same way whenever you load the browser with an extension not already installed/enabled beforehand.

Two console errors I'm seeing consistently when hitting this issue that I will attach a screenshot of. One seems to be about removing an event listener for the extension, and the other seems to occur when you attempt to re-enable the extension. sidebar is undefined [here](https://searchfox.org/mozilla-central/source/browser/components/sidebar/browser-sidebar.js#659).

Jonathan, maybe you can take a look?

Flags: needinfo?(jsudiaman)
Whiteboard: [fidefe-firefox-view] → [fidefe-sidebar]
Severity: -- → S2
Priority: -- → P2

Hmm, actually, I'm not able to reproduce this on the latest build. I see my fixes for Bug 1885883 made it into central, and also, history no longer has issues causing the missing dates. Perhaps you can give it another shot?

Flags: needinfo?(jsudiaman) → needinfo?(kcochrane)

Yep, looks like I can no longer reproduce after updating to the latest Nightly build. Closing this one out, thanks for taking a look :jsudiaman.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(kcochrane)
Resolution: --- → WORKSFORME

Reopening this as I'm still able to reliably reproduce this in the latest Nightly build (127.0a1 (2024-05-03)).

Updated STR:
Enable the sidebar.revamp pref by setting to true
Install a sidebar extension such as Sidebery
Restart the browser with the extension installed/enabled
On the manage extensions page, disable the Sidebery extension
Re-enable the extension and notice the entrypoint never returns to the sidebar

This doesn't seem to occur the same way whenever you load the browser with an extension not already installed/enabled beforehand.

Two console errors I'm seeing consistently when hitting this issue that I will attach a screenshot of. One seems to be about removing an event listener for the extension, and the other seems to occur when you attempt to re-enable the extension. sidebar is undefined [here](https://searchfox.org/mozilla-central/source/browser/components/sidebar/browser-sidebar.js#659).

Status: RESOLVED → REOPENED
Flags: needinfo?(jsudiaman)
Resolution: WORKSFORME → ---
Attached image console_errors.png —
Assignee: nobody → jsudiaman
Status: REOPENED → ASSIGNED
Flags: needinfo?(jsudiaman)

A subtle regression was introduced by D207034, which allows for tools to be appended dynamically, but this caused extensions to be appended twice - once by initialization, and again by calling registerExtension(). Update to account for this potential race condition.

Pushed by jsudiaman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c7b53a9bb87 Extensions in revamped sidebar aren't being disabled/enabled as expected r=kcochrane,sidebar-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago → 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: