Closed Bug 944126 Opened 12 years ago Closed 12 years ago

Random failures with browser_privatebrowsing_aboutSessionRestore.js

Categories

(Firefox :: Private Browsing, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 28
Tracking Status
firefox27 --- fixed
firefox28 --- fixed
firefox-esr24 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

Attached patch pb_test2_failure.diff (obsolete) — Splinter Review
Rather similar to Bug 938030
Attachment #8339543 - Flags: review?(ehsan)
Comment on attachment 8339543 [details] [diff] [review] pb_test2_failure.diff Review of attachment 8339543 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutSessionRestore.js @@ +18,5 @@ > win.gBrowser.selectedTab = newTab; > let tabBrowser = win.gBrowser.getBrowserForTab(newTab); > tabBrowser.addEventListener("load", function tabLoadListener() { > + if (win.gBrowser.contentWindow.location != "about:sessionrestore") { > + win.gBrowser.selectedBrowser.loadURI("about:sessionrestore"); I think you forgot a return here.
Attachment #8339543 - Flags: review?(ehsan) → review-
bah, did I attach some wrong patch.
Attached patch with returnSplinter Review
https://tbpl.mozilla.org/?tree=Try&rev=4a5614d8a8f1 (The tryserver run may have other failures which I'm investigating)
Attachment #8339543 - Attachment is obsolete: true
Attachment #8339594 - Flags: review?(ehsan)
Comment on attachment 8339594 [details] [diff] [review] with return Review of attachment 8339594 [details] [diff] [review]: ----------------------------------------------------------------- I think the loadURI call is redundant, please verify that it's needed. r=me either way. ::: browser/components/privatebrowsing/test/browser/browser_privatebrowsing_aboutSessionRestore.js @@ +18,5 @@ > win.gBrowser.selectedTab = newTab; > let tabBrowser = win.gBrowser.getBrowserForTab(newTab); > tabBrowser.addEventListener("load", function tabLoadListener() { > + if (win.gBrowser.contentWindow.location != "about:sessionrestore") { > + win.gBrowser.selectedBrowser.loadURI("about:sessionrestore"); Hmm, why do you need to load the URL again here?
Attachment #8339594 - Flags: review?(ehsan) → review+
IIRC this was again (test) PAC loading lately, so we may get wrong load.
(In reply to comment #5) > IIRC this was again (test) PAC loading lately, so we may get wrong load. PAC?
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 28
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: