Intermittent Android test_bug760802.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: win.gBrowser is undefined at widget/tests/test_bug760802.html:53

RESOLVED FIXED in mozilla17

Status

()

Core
Widget
RESOLVED FIXED
5 years ago
3 years ago

People

(Reporter: cjones, Assigned: foudfou)

Tracking

({intermittent-failure})

Trunk
mozilla17
ARM
Android
intermittent-failure
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Seen on 

https://tbpl.mozilla.org/php/getParsedLog.php?id=13826335&tree=Mozilla-Inbound

Android Tegra 250 mozilla-inbound opt test mochitest-8 on 2012-07-24 21:22:19 PDT for push b0fdbf25855a

slave: tegra-120

71714 ERROR TEST-UNEXPECTED-FAIL | /tests/widget/tests/test_bug760802.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: win.gBrowser is undefined at http://mochi.test:8888/tests/widget/tests/test_bug760802.html:53
I/GeckoDump( 1644): 71714 ERROR TEST-UNEXPECTED-FAIL | /tests/widget/tests/test_bug760802.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: win.gBrowser is undefined at http://mochi.test:8888/tests/widget/tests/test_bug760802.html:53

Guessing it's a new intermittent failure.  Not sure if bug 760802 is at fault, but setting to block to get some eyes on this.
Looking not-so-intermittent ...

https://tbpl.mozilla.org/php/getParsedLog.php?id=13828675&tree=Mozilla-Inbound
Summary: ERROR TEST-UNEXPECTED-FAIL | /tests/widget/tests/test_bug760802.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: win.gBrowser is undefined at http://mochi.test:8888/tests/widget/tests/test_bug760802.html:53 → Failure in test_bug760802.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: win.gBrowser is undefined at widget/tests/test_bug760802.html:53
This test last ran to completion without infra failures on

emorley@mozilla.com – Tue Jul 24 06:39:51 2012 PDT 
d4982fbe4fa8

where it was green.
https://tbpl.mozilla.org/php/getParsedLog.php?id=13830867&tree=Mozilla-Inbound
Blocks: 438871
OS: Linux → Android
Hardware: x86_64 → ARM
Whiteboard: [orange]
Summary: Failure in test_bug760802.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: win.gBrowser is undefined at widget/tests/test_bug760802.html:53 → Intermittent Android test_bug760802.html | an unexpected uncaught JS exception reported through window.onerror - TypeError: win.gBrowser is undefined at widget/tests/test_bug760802.html:53
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
Comment hidden (Treeherder Robot)
(Assignee)

Comment 7

5 years ago
Created attachment 646115 [details] [diff] [review]
no gBrowser in Android

My bad, I wrongly followed examples intended MOZ_WIDGET_TOOLKIT=windows. gBrowser is not defined for Android. Here's a fix.
https://tbpl.mozilla.org/?tree=Try&rev=028322613e14 looks OK to me.
Attachment #646115 - Flags: review?(roc)
Comment on attachment 646115 [details] [diff] [review]
no gBrowser in Android

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

r+ anyway

::: widget/tests/test_bug760802.html
@@ +39,5 @@
> +    .QueryInterface(Ci.nsIDocShellTreeItem)
> +    .treeOwner
> +    .QueryInterface(Ci.nsIInterfaceRequestor)
> +    .getInterface(Ci.nsIXULWindow)
> +    .docShell

Is this docShell step needed? Seems to me it should not be.
Attachment #646115 - Flags: review?(roc) → review+
(Assignee)

Updated

5 years ago
Keywords: checkin-needed
(Assignee)

Comment 9

5 years ago
Created attachment 646404 [details] [diff] [review]
with simpler docShell get
Assignee: nobody → foudil.newbie+bugzilla.mozilla.org
Attachment #646115 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #646404 - Flags: review?(roc)
Attachment #646404 - Flags: review?(roc) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/a7e20d9dc2f7
Flags: in-testsuite+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/a7e20d9dc2f7
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Comment hidden (Treeherder Robot)
Keywords: intermittent-failure
Whiteboard: [orange]
You need to log in before you can comment on or make changes to this bug.