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)
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
Reporter | ||
Comment 1•11 years ago
|
||
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
Comment 2•7 years ago
|
||
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.
Description
•