Closed
Bug 1155940
Opened 10 years ago
Closed 10 years ago
make browser_354894_perwindowpb.js wait for load and SSTabRestored after doing undoCloseTab
Categories
(Firefox :: Session Restore, defect)
Tracking
()
RESOLVED
FIXED
Firefox 40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: tnikkel, Assigned: tnikkel)
References
Details
Attachments
(1 file)
|
2.77 KB,
patch
|
ttaubert
:
review+
|
Details | Diff | Splinter Review |
The patch for bug 1063369 (which I would like to land) turns browser_354894_perwindowpb.js orange. After some experimenting on try server this appears to be because we don't wait for undeCloseTab to finish loading the window and it's in some half restored state, which confuses the new window creation that happens next. I don't claim to understand exactly what is going on, but waiting for undeCloseTab to finish seems to be the correct thing to do.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8594280 -
Flags: review?(ttaubert)
Comment 2•10 years ago
|
||
Comment on attachment 8594280 [details] [diff] [review]
patch
Review of attachment 8594280 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/sessionstore/test/browser_354894_perwindowpb.js
@@ +368,5 @@
> browserWindowsCount([0, 1], "browser windows while running testOpenCloseRestoreFromPopup");
>
> newWin = undoCloseWindow(0);
> + newWin.addEventListener("load", function() {
> + newWin.removeEventListener("load", arguments.callee, false);
Please remove arguments.callee here while you're at it, thanks :)
@@ +373,3 @@
>
> + newWin.gBrowser.tabContainer.addEventListener("SSTabRestored", function () {
> + newWin.gBrowser.tabContainer.removeEventListener("SSTabRestored", arguments.callee, false);
Please don't use arguments.callee but name the function instead.
Attachment #8594280 -
Flags: review?(ttaubert) → review+
https://hg.mozilla.org/mozilla-central/rev/5c4bb45a2f1d
https://hg.mozilla.org/mozilla-central/rev/1c614c698220
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 40
You need to log in
before you can comment on or make changes to this bug.
Description
•