Closed
Bug 1334052
Opened 8 years ago
Closed 8 years ago
Intermittent browser/base/content/test/referrer/browser_referrer_open_link_in_container_tab2.js | A promise chain failed to handle a rejection: - TypeError: content.document.getElementById(...) is null
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 54
People
(Reporter: intermittent-bug-filer, Assigned: gkrizsanits)
References
Details
(Keywords: intermittent-failure, Whiteboard: [stockwell fixed:race])
Attachments
(1 file)
|
1.59 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
Filed by: cbook [at] mozilla.com
https://treeherder.mozilla.org/logviewer.html#?job_id=72153422&repo=mozilla-inbound
https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-inbound-win32-debug/1485406952/mozilla-inbound_win7_vm-debug_test-mochitest-e10s-browser-chrome-7-bm137-tests1-windows-build177.txt.gz
| Comment hidden (Intermittent Failures Robot) |
Comment 2•8 years ago
|
||
doing some retriggers to see if a root cause is easy to find (still waiting on some bc4/bc3 retriggers on older revisions):
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-searchStr=win%20vm%20debug%20browser-chrome%20e10s&tochange=f0f9f8d08df208e0fd93da92e5007c782647e4aa&fromchange=bb0de976a39eccbdd7ed817de4c1e9379f65c4a7&selectedJob=71929543
This is trending to be a top intermittent! I do wonder if this is the same as bug 1275447..we just skipped that on e10s and that is where this is failing as well :(
When I see screenshots, I see a blank tab (although a few tabs are open), so no wonder there is no elementid found.
:gabor, what do you think we should do with this bug? Is there any information you wish I could get for you to help out with this or make a decision easier?
Flags: needinfo?(gkrizsanits)
| Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Joel Maher ( :jmaher) from comment #2)
> doing some retriggers to see if a root cause is easy to find (still waiting
> on some bc4/bc3 retriggers on older revisions):
> https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-
> searchStr=win%20vm%20debug%20browser-
> chrome%20e10s&tochange=f0f9f8d08df208e0fd93da92e5007c782647e4aa&fromchange=bb
> 0de976a39eccbdd7ed817de4c1e9379f65c4a7&selectedJob=71929543
>
> This is trending to be a top intermittent! I do wonder if this is the same
> as bug 1275447..we just skipped that on e10s and that is where this is
> failing as well :(
Yes, it looks like this is exactly the same issue.
>
> When I see screenshots, I see a blank tab (although a few tabs are open), so
> no wonder there is no elementid found.
>
> :gabor, what do you think we should do with this bug? Is there any
> information you wish I could get for you to help out with this or make a
> decision easier?
I'm working on re-enabling the other two, I'm leaving needinfo on me to get back once
I know more. We could turn this one off as well but I'm afraid the problem is in one of
the utility functions in head.js so it might affect all the tests in this directory...
I'll make this my top priority.
Comment 4•8 years ago
|
||
yeah, this only showed up as soon as we disabled browser_referrer_open_link_in_container_tab.js. I wonder if the failure handling code resets the state properly so browser_referrer_open_link_in_container_tab2.js can run- now that browser_referrer_open_link_in_container_tab.js is disabled we end up in the original state.
One thing to note, browser_referrer_open_link_in_container_tab2.js is now the first test to run in the browser session (previously it was browser_referrer_open_link_in_container_tab.js), maybe we have a race condition on startup or some odd timing that gets us into this situation.
If it isn't that, then it is common code paths between both tests, as you mentioned head.js.
Thanks for looking into this!
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 8•8 years ago
|
||
Seems like the tab switching is racy in head.js, let's give it a try:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=316919529f96126d4f2d79fc66d18aac230f69a0&selectedJob=72952469
Flags: needinfo?(gkrizsanits)
| Assignee | ||
Comment 9•8 years ago
|
||
Much better, if it works on mc, I will re-enable the disabled tests as a followup.
Attachment #8831702 -
Flags: review?(mrbkap)
| Comment hidden (Intermittent Failures Robot) |
Comment 11•8 years ago
|
||
Comment on attachment 8831702 [details] [diff] [review]
Fixing racy tab switching. v1
Review of attachment 8831702 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/base/content/test/referrer/head.js
@@ +206,5 @@
> + let browser = gTestWindow.gBrowser;
> + let newTab = browser.addTab(url, aParams);
> + return new Promise(function(resolve) {
> + BrowserTestUtils.switchTab(browser, newTab).then(() => {
> + BrowserTestUtils.browserLoaded(browser.selectedBrowser).then(() => {
This could just become:
let browser = gTestWindow.gBrowser;
return BrowserTestUtils.openNewForegroundTab(browser, () => { browser.selectedTab = browser.addTab(url, aParams); });
Attachment #8831702 -
Flags: review?(mrbkap) → review+
Comment 12•8 years ago
|
||
Pushed by gkrizsanits@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/00760a347626
Fixing racy tab switching. r=mrbkap
| Assignee | ||
Comment 13•8 years ago
|
||
(In reply to Blake Kaplan (:mrbkap) from comment #11)
> This could just become:
>
> let browser = gTestWindow.gBrowser;
> return BrowserTestUtils.openNewForegroundTab(browser, () => {
> browser.selectedTab = browser.addTab(url, aParams); });
Oh, that's a lot nicer, thanks :)
Comment 14•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Updated•8 years ago
|
Comment 15•8 years ago
|
||
| bugherder uplift | ||
Flags: in-testsuite+
Comment 16•8 years ago
|
||
| bugherder uplift | ||
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Updated•8 years ago
|
Whiteboard: [stockwell fixed]
Updated•8 years ago
|
Whiteboard: [stockwell fixed] → [stockwell fixed:race]
You need to log in
before you can comment on or make changes to this bug.
Description
•