Closed Bug 824493 Opened 12 years ago Closed 12 years ago

Intermittent timeout in test_sts_privatebrowsing_perwindowpb.html | Test timed out.

Categories

(Firefox :: Private Browsing, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 20

People

(Reporter: jdm, Assigned: andreshm)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure)

Attachments

(1 file, 1 obsolete file)

https://tbpl.mozilla.org/php/getParsedLog.php?id=18240445&tree=Firefox
Rev3 WINNT 6.1 mozilla-central opt test mochitest-other on 2012-12-24 06:09:44 PST for push dc2abccc2adb

slave: talos-r3-w7-085

The screenshot in the log shows that we're not suppressing the default window load (ie. the firstrun page).
Blocks: 806731
(Keyword intermittent-failure is required in order for TBPL to suggest this for future failures)
Assignee: nobody → andres
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #697706 - Flags: review?(josh)
Status: NEW → ASSIGNED
Comment on attachment 697706 [details] [diff] [review]
Patch v1

Review of attachment 697706 [details] [diff] [review]:
-----------------------------------------------------------------

::: security/manager/ssl/tests/mochitest/stricttransportsecurity/test_sts_privatebrowsing_perwindowpb.html
@@ +28,5 @@
>      getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShellTreeItem).
>      rootTreeItem.QueryInterface(Ci.nsIInterfaceRequestor).
>      getInterface(Ci.nsIDOMWindow);
>  
> +  mainWindow.Services.prefs.setIntPref("browser.startup.page", 0);

SpecialPowers.Services

@@ +57,5 @@
>    function testOnWindow(aIsPrivate, aCallback) {
>      var win = mainWindow.OpenBrowserWindow({private: aIsPrivate});
>      win.addEventListener("load", function onLoad() {
>        win.removeEventListener("load", onLoad, false);
> +      win.gBrowser.addEventListener("DOMContentLoaded", function onInnerLoad() {

Please check if the this event listener is actually required with the browser.startup.page pref set to 0.

@@ +218,5 @@
>      test_sts_after_exiting_private_mode
>    ];
>  
> +  function finish() {
> +    mainWindow.Services.prefs.clearUserPref("browser.startup.page")

Likewise.
Attachment #697706 - Flags: review?(josh)
Attached patch Patch v2Splinter Review
Applied suggested changes. The event listener is still required.
Attachment #697706 - Attachment is obsolete: true
Attachment #697920 - Flags: review?(josh)
Attachment #697920 - Flags: review?(josh) → review+
https://hg.mozilla.org/mozilla-central/rev/220a958dd8e3
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: