Closed
Bug 1283901
Opened 9 years ago
Closed 9 years ago
Intermittent devtools/client/webconsole/test/browser_console_error_source_click.js | view source opened -
Categories
(DevTools :: Console, defect, P3)
DevTools
Console
Tracking
(firefox49 fixed, firefox50 fixed)
RESOLVED
FIXED
Firefox 50
People
(Reporter: intermittent-bug-filer, Assigned: jsnajdr)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file, 1 obsolete file)
1.12 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
Filed by: philringnalda@gmail.com
https://treeherder.mozilla.org/logviewer.html#?job_id=31081680&repo=mozilla-inbound
http://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-inbound-linux64/1467392182/mozilla-inbound_ubuntu64_vm_test-mochitest-devtools-chrome-8-bm113-tests1-linux64-build0.txt.gz
Updated•9 years ago
|
Priority: -- → P3
Assignee | ||
Comment 1•9 years ago
|
||
The screenshot shows that the console message we want to click on has scrolled out of view, because there are multiple errors logged after it. We'll need to add a call to el.scrollIntoView().
Assignee: nobody → jsnajdr
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 4•9 years ago
|
||
Two changes that should resolve this:
- use node.click() instead of syntesizeEvent - it doesn't require the node to be visible (scrollIntoView), which I believe is the cause of this intermittent
- just to be sure, make the check for viewSourceCalled async. I'm a bit uneasy about how the test relies on the click event to be fired synchronously
Attachment #8775997 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 5•9 years ago
|
||
Comment 6•9 years ago
|
||
Comment on attachment 8775997 [details] [diff] [review]
Intermittent devtools/client/webconsole/test/browser_console_error_source_click.js
Review of attachment 8775997 [details] [diff] [review]:
-----------------------------------------------------------------
::: devtools/client/webconsole/test/browser_console_error_source_click.js
@@ +54,2 @@
> for (let result of results) {
> + let viewSourceCalled = defer();
Click fires synchronously so I don't think we need to convert this into promises.
Secondly, there's another project underway I believe to convert defer() to new Promise(). It would require increasing the nesting (unfortunate in this case but that's the plan AFAIK)
for (let result of results) {
let viewSource = hud.viewSource;
yield new Promise(resolve => {
hud.viewSource = resolve;
// rest of code
});
hud.viewSource = viewSource;
}
Regardless, I really don't think we need to make this async to fix the intermittent - nothing happening in the implementation is async.
Attachment #8775997 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 7•9 years ago
|
||
OK, then the only change is calling node.click() instead of synthesizeMouse.
Attachment #8776013 -
Flags: review?(bgrinstead)
Assignee | ||
Updated•9 years ago
|
Attachment #8775997 -
Attachment is obsolete: true
Updated•9 years ago
|
Attachment #8776013 -
Flags: review?(bgrinstead) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/fx-team/rev/ebdc7c4a449f
Intermittent devtools/client/webconsole/test/browser_console_error_source_click.js. r=bgrins
Keywords: checkin-needed
Comment 10•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Comment 11•9 years ago
|
||
bugherder uplift |
status-firefox49:
--- → fixed
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•