Closed
Bug 1191216
Opened 9 years ago
Closed 8 years ago
Intermittent browser_console_error_source_click.js | view source opened -
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(firefox49 fixed, firefox50 fixed)
RESOLVED
FIXED
Firefox 50
People
(Reporter: cbook, Assigned: jsnajdr)
References
()
Details
(Keywords: intermittent-failure)
Attachments
(2 files, 2 obsolete files)
2.58 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
4.65 KB,
patch
|
bgrins
:
review+
|
Details | Diff | Splinter Review |
https://treeherder.mozilla.org/logviewer.html#?job_id=12503984&repo=mozilla-inbound 22:25:19 INFO - 521 INFO TEST-UNEXPECTED-FAIL | browser/devtools/webconsole/test/browser_console_error_source_click.js | view source opened -
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Comment 26•8 years ago
|
||
I needed to fix this in order to move forward with bug 1281732. The test triggers two messages in console: one CSS warning and one JS error. Then waits for them to appear and tests if the source links are opened on click. The CSS warning never even appears until devtools.browserconsole.filter.cssparser is set to true. Fixed this. Then, after the waitForMessages is finished, the "for result of results" loop should check both messages, but instead it checks only the first one twice: "result" vs "results[0]". Fixed. The test hooks up the hud.viewSourceInDebugger function. If the first message is the JS error, this works. If the first message is the CSS warning, then viewSourceInDebugger is not called and the test fails. The right thing to do is to hook up the hud.viewSource function, because it's called as a fallback by viewSourceInDebugger and viewSourceInStyleEditor, because the Debugger and Style Editor tools are not available in the browser console. I also changed the element on which the click is synthesized: from "frame-link-filename" to its parent element "frame-link-source", which is the actual <A> element with the click handler. If I didn't do this, the onClick handler wasn't always called. Probably some mystery with how synthetic mouse events do/don't bubble up.
Attachment #8764890 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 27•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=22a34590e91d
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → jsnajdr
Assignee | ||
Comment 28•8 years ago
|
||
The test still fails on try in non-e10s mode. The screenshot indicates that the messages are filtered, i.e., they are hidden and not clickable. It seems that maybe some previous test disables the "exception" and "cssparser" messages. I added explicit calls to hud.setFilterState and I'm also testing for filtered-by-type class on the message element. Let's see how this goes on try now.
Attachment #8764949 -
Flags: review?(bgrinstead)
Assignee | ||
Updated•8 years ago
|
Attachment #8764890 -
Attachment is obsolete: true
Attachment #8764890 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 29•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=7ed49e916a44
Comment 30•8 years ago
|
||
(In reply to Jarda Snajdr [:jsnajdr] from comment #28) > Created attachment 8764949 [details] [diff] [review] > Intermittent browser_console_error_source_click.js > > The test still fails on try in non-e10s mode. The screenshot indicates that > the messages are filtered, i.e., they are hidden and not clickable. > > It seems that maybe some previous test disables the "exception" and > "cssparser" messages. I added explicit calls to hud.setFilterState and I'm > also testing for filtered-by-type class on the message element. If possible we should modify the previous test to clean up state instead of making this one worry about it (either using pushPrefEnv or manually resetting the prefs in a cleanup function)
Assignee | ||
Comment 31•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9efb99ac66ac
Assignee | ||
Comment 32•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=d2c0f95711cc
Assignee | ||
Comment 33•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=89b1ac0b5858
Assignee | ||
Comment 34•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=49a13962285f
Assignee | ||
Comment 35•8 years ago
|
||
Final version of the fixed tests. Everything described in comment 26 above is still true. No filter.* flags are left in a wrong state from previous tests - it was a false alarm. One thing to be careful about (and that caused failures in previous try runs) is the selector for ".message .message-location .frame-link-source". For error messages with a stack trace, this rule selected the first item from the stack trace, not the location node from the message. And because the stack trace is hidden, trying to click on it fails. So, the selector needs to be ".message > .message-location". This will change in bug 1281732, where the message-location changes. The fact I was fixing these two bugs together caused confusion. Try run is green now.
Attachment #8765419 -
Flags: review?(bgrinstead)
Assignee | ||
Updated•8 years ago
|
Attachment #8764949 -
Attachment is obsolete: true
Attachment #8764949 -
Flags: review?(bgrinstead)
Assignee | ||
Comment 36•8 years ago
|
||
Second part: rewrite the test to task.js after fixing the intermittent failures.
Attachment #8765420 -
Flags: review?(bgrinstead)
Updated•8 years ago
|
Attachment #8765419 -
Flags: review?(bgrinstead) → review+
Updated•8 years ago
|
Attachment #8765420 -
Flags: review?(bgrinstead) → review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 37•8 years ago
|
||
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/fx-team/rev/73b33302591e Part 1: Intermittent browser_console_error_source_click.js - fix test. r=bgrins https://hg.mozilla.org/integration/fx-team/rev/461be9599b39 Part 2: Intermittent browser_console_error_source_click.js - rewrite to Task.js. r=bgrins
Keywords: checkin-needed
Reporter | ||
Comment 38•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/73b33302591e https://hg.mozilla.org/mozilla-central/rev/461be9599b39
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Comment 39•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/381f8e4d3af5 https://hg.mozilla.org/releases/mozilla-beta/rev/6b92442b0d5c
status-firefox49:
--- → fixed
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•