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
Created attachment 652984 [details] [diff] [review] events patch 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".
Created attachment 652998 [details] [diff] [review] updated from comments
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.
Created attachment 653410 [details] [diff] [review] tweaks Here's the patch I applied on top that revealed the problem.
Created attachment 653448 [details] [diff] [review] events patch 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
Last Resolved: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.