Closed Bug 1209809 Opened 9 years ago Closed 8 years ago

Categories

(Developer Documentation Graveyard :: Add-ons, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: markh, Unassigned)

Details

https://developer.mozilla.org/en-US/Add-ons/Code_snippets/Sidebar documents addons should use toggleSidebar() to toggle a sidebar. However, this function is defined at https://dxr.mozilla.org/mozilla-central/rev/acdb22976ff86539dc10413c5f366e1fb429a680/browser/base/content/browser-sidebar.js?offset=0#321, which declares it as deprecated and issues a warning when used. The docs should be updated to use the advice in the comment for that function.
I've updated references to toggleSidebar to be about SidebarUI, and checked that the usage examples for this work.

I think that in future add-ons will not get this kind of low-level access to the browser and we will deprecate a lot of these docs, so I don't think it's sensible to spend much more time updating them.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.