fune/browser/base/content/test/sidebar
Luca Greco ed773e81ad Bug 1786262 - Extension sidebar panel should be reloaded as part of reloading the sidebar on browser locale changes. r=jaws
In the regressing change part of Bug 1755181 (https://hg.mozilla.org/mozilla-central/rev/00c77cbfd73a),
SidebarUI observes "intl:app-locales-changed" and calls `SidebarUI.hide` and `SidebarUI._show(this.lastOpenedId)`
if the sidebar was open, that is enough to correctly refresh sidebar panels part of the browser but it is missing
the additional call to `SidebarUI._loadSidebarExtension(commandID)` that both `SidebarUI.show` and `SidebarUI.showInitially`
call once `SidebarUI._show(...)` promise is resolved.

This patch includes a new test case to explicitly cover the behavior expected on extension sidebar panels
(added to browser_sidebar_app_locale_changed.js along with the tests covering the expected behavior for
the browser integrated sidebars) and replaces the call to `SidebarUI._show(...)` with a call to `SidebarUI.showInitially`
(mainly because the associated jsdoc inline comments explicitly states that showInitially is intended to be used
when the sidebar is opened automatically and not triggered by a user interaction with the sidebar UI, which seems
to fit better then show for this particular case).

Differential Revision: https://phabricator.services.mozilla.com/D155575
2022-08-29 19:00:08 +00:00
..
browser.ini
browser_sidebar_adopt.js Bug 1753696 - Automatic rewrite: replace add_task(setup with add_setup in browser mochitest, r=Standard8,webcompat-reviewers,twisniewski 2022-03-30 16:16:42 +00:00
browser_sidebar_app_locale_changed.js Bug 1786262 - Extension sidebar panel should be reloaded as part of reloading the sidebar on browser locale changes. r=jaws 2022-08-29 19:00:08 +00:00
browser_sidebar_keys.js
browser_sidebar_move.js
browser_sidebar_switcher.js