Closed Bug 783691 Opened 7 years ago Closed 7 years ago
show/hide events for social content
content in the status panels need show/hide events
We'll use socialFrameShow/Hide for the event names. We need to emit those events for the status panels, and update the event names for the sidebar. bug 779923 (flyout panel) and bug 779686 (chat) will implement for their respective content frames.
Summary: status panel show/hide events → show/hide events for social content
patch to add show/hide events for status panels and fix the event name for the sidebar.
I'm not sure that it matters that much in practice, but we should probably use popupshown rather than popupshowing for firing the "show" event (and we can use that for setting the "open" attribute too). One copy/pasto I noticed: the popupshowing handler is called "onpopuphiding".
Comment on attachment 652998 [details] [diff] [review] updated from comments I tweaked the test slightly to address the third issue I pointed out in bug 779360 comment 15, and ran into this problem: TypeError: notifBrowser.contentDocument.documentElement is null at chrome://browser/content/browser.js:4173 Seems like we'll need to wait for DOMContentLoaded of the panel iframe before firing the "shown" event.
Here's the patch I applied on top that revealed the problem.
fixes show event to happen after load if the document is not loaded.
Attachment #653448 - Flags: review?(gavin.sharp) → review+
Status: NEW → ASSIGNED
Target Milestone: --- → Firefox 17
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.