Closed
Bug 927524
Opened 11 years ago
Closed 11 years ago
Closing a window with a sidebar open does not fire a 'detach' event
Categories
(Add-on SDK Graveyard :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: evold, Assigned: evold)
References
Details
Attachments
(1 file)
Will reported this by email. Also should make sure that the 'hide' event fires.
Assignee | ||
Comment 1•11 years ago
|
||
The 'hide' event also does not fire, and I'm not sure if it should. I'm guessing that both the 'detach' and 'hide' event should fire when the window housing them closes. I'll confirm that is what happens with panels and some other modules.
Flags: needinfo?(rFobic)
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to Erik Vold [:erikvold] [:ztatic] from comment #1)
> The 'hide' event also does not fire, and I'm not sure if it should. I'm
> guessing that both the 'detach' and 'hide' event should fire when the window
> housing them closes. I'll confirm that is what happens with panels and some
> other modules.
Yep, this is how panel works.
Assignee | ||
Comment 3•11 years ago
|
||
Pointer to Github pull-request
Assignee | ||
Updated•11 years ago
|
Attachment #818061 -
Flags: review?(zer0)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → evold
Updated•11 years ago
|
Priority: -- → P2
Comment 4•11 years ago
|
||
(In reply to Erik Vold [:erikvold] [:ztatic] from comment #1)
> The 'hide' event also does not fire, and I'm not sure if it should. I'm
> guessing that both the 'detach' and 'hide' event should fire when the window
> housing them closes. I'll confirm that is what happens with panels and some
> other modules.
To be fare panel actually get's hidden when you try to close window so it's more like a side effect.
Flags: needinfo?(rFobic)
Comment 5•11 years ago
|
||
Comment on attachment 818061 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/1267
r+ with the `.then(null, assert.fail)` added and the panel's test removed from this patch.
Attachment #818061 -
Flags: review?(zer0) → review+
Comment 6•11 years ago
|
||
Commits pushed to master at https://github.com/mozilla/addon-sdk
https://github.com/mozilla/addon-sdk/commit/ec4a1b4efe603ea76b675593b54304e8c3ac5089
Bug 927524 Closing a window with a sidebar open does not fire a detach or hide event
https://github.com/mozilla/addon-sdk/commit/e3d41c3201ae6564ecd99ddf321a172eb92571b9
Merge pull request #1267 from erikvold/927524
Bug 927524 Closing a window with a sidebar open does not fire a detach or hide event r=@zer0
Assignee | ||
Updated•11 years ago
|
Blocks: sdk/ui/sidebar
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 818061 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/1267
[Approval Request Comment]
User impact if declined: A new Jetpack api will not emit events when they should be. Early adopters will have to write work arounds.
Testing completed (on m-c, etc.): yes
Risk to taking this patch (and alternatives if risky): Low/No risk
Attachment #818061 -
Flags: approval-mozilla-aurora?
Comment 8•11 years ago
|
||
Same question as in https://bugzilla.mozilla.org/show_bug.cgi?id=923348#c5
Comment 9•11 years ago
|
||
Comment on attachment 818061 [details]
Pointer to Github pull request: https://github.com/mozilla/addon-sdk/pull/1267
Clearing the nom still the question above is clear.
Attachment #818061 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•