Closed Bug 885638 Opened 11 years ago Closed 7 years ago

toggleSidebar() DNW during load event when using openWebPanel

Categories

(Firefox :: Toolbars and Customization, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: evold, Unassigned)

Details

Try this is Scratchpad: let sidebar = window.document.getElementById('sidebar'); sidebar.addEventListener('load', function() { window.toggleSidebar(); }, false) window.openWebPanel('test', 'https://mozilla.org'); sidebar.hidden /* false */ Expected: the sidebar would be closed Actual: the sidebar is left open
Ah so this works: let sidebar = window.document.getElementById('sidebar'); sidebar.addEventListener('load', function() { window.toggleSidebar(); }, true) window.openWebPanel('test', 'https://mozilla.org'); sidebar.hidden
Not clear there's still an issue here.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.