Closed
Bug 1162067
Opened 10 years ago
Closed 10 years ago
Intermittent test_Debugger.Source.prototype.element.html | top frame belongs to isolde - expected PASS
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox38 unaffected, firefox38.0.5 unaffected, firefox39 unaffected, firefox40 fixed, firefox-esr31 unaffected, firefox-esr38 unaffected)
RESOLVED
FIXED
Firefox 40
Tracking | Status | |
---|---|---|
firefox38 | --- | unaffected |
firefox38.0.5 | --- | unaffected |
firefox39 | --- | unaffected |
firefox40 | --- | fixed |
firefox-esr31 | --- | unaffected |
firefox-esr38 | --- | unaffected |
People
(Reporter: cbook, Assigned: jimb)
References
()
Details
(Keywords: intermittent-failure)
Attachments
(2 files)
2.32 KB,
patch
|
jlong
:
review+
|
Details | Diff | Splinter Review |
3.32 KB,
patch
|
jlong
:
review+
|
Details | Diff | Splinter Review |
Windows 7 32-bit mozilla-central pgo test mochitest-other
https://treeherder.mozilla.org/logviewer.html#?job_id=1443947&repo=mozilla-central
07:09:53 INFO - 2948 INFO TEST-UNEXPECTED-FAIL | toolkit/devtools/server/tests/mochitest/test_Debugger.Source.prototype.element.html | top frame belongs to isolde - expected PASS
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 5•10 years ago
|
||
Jim, any ideas what might have made this start happening in the last day or so?
Component: Developer Tools → Developer Tools: Debugger
Flags: needinfo?(jimb)
Assignee | ||
Comment 6•10 years ago
|
||
In this test, bits of test code located in various places (inline script; out-of-line script; dynamically inserted script elements; etc. etc.) each execute a 'debugger' statement, and then the test tries to find the DOM element that owns that bit of test code: usually a <script> element, but possibly some other kind of element with an 'onclick' handler, or what have you.
I have no idea why it would be intermittent. I think we just need to reproduce and debug.
Flags: needinfo?(jimb)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8602304 -
Flags: review?(jlong)
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 16•10 years ago
|
||
Comment on attachment 8602304 [details] [diff] [review]
Add some debugging output to test_Debugger.Source.prototype.element.html, to catch intermittent failures.
Review of attachment 8602304 [details] [diff] [review]:
-----------------------------------------------------------------
Looks fine to me
Attachment #8602304 -
Flags: review?(jlong) → review+
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 19•10 years ago
|
||
Assignee | ||
Comment 20•10 years ago
|
||
Added some test output:
https://hg.mozilla.org/integration/mozilla-inbound/rev/aba073bd3884
Assignee | ||
Updated•10 years ago
|
Keywords: leave-open
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 34•10 years ago
|
||
Okay, I may have a solution. The test establishes an onresize handler, and then sends a synthetic onresize event. But if a real resize happened to occur while the test was running, then that would screw things up. I'm going to try adapting the test to use a different event (the specific event was really an arbitrary choice), and see if that helps.
Assignee | ||
Comment 35•10 years ago
|
||
Actually, the specific event isn't an arbitrary choice. It needs to be one of the events that, when set on a body element, actually adds the handler to the window, not the element. The test verifies that Debugger.Source.prototype.element returns the body element, even though the handler has been placed elsewhere.
I think the test can just explicitly check that the event is synthetic; then it won't be disturbed by genuine resizes.
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 42•10 years ago
|
||
This is not beautiful; the comments should explain.
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 48•10 years ago
|
||
Comment on attachment 8603153 [details] [diff] [review]
Ensure test_Debugger.Source.prototype.element.html doesn't get confused by genuine resize events.
Review of attachment 8603153 [details] [diff] [review]:
-----------------------------------------------------------------
Sounds good to me. I don't really mind kludges in test code (especially small ones). What made this happen in the first place?
Attachment #8603153 -
Flags: review?(jlong) → review+
Comment 49•10 years ago
|
||
Don't remember the bug number offhand, but smaug landed a something recently that caused another resize-related intermittent. He fixed it by using RAF IIRC.
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 52•10 years ago
|
||
Yeah, resize should be dispatched right before rAF callbacks, but I may actually back out the change, and reland after the merge.
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Comment 57•10 years ago
|
||
Okay, this should hopefully quiet things down:
https://hg.mozilla.org/integration/mozilla-inbound/rev/195378b66079
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment 61•10 years ago
|
||
Assignee | ||
Comment 62•10 years ago
|
||
Seems to have solved the problem. This fix is fine even if Smaug backs out the other change. Closing for now.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
status-firefox38:
--- → unaffected
status-firefox38.0.5:
--- → unaffected
status-firefox39:
--- → unaffected
status-firefox40:
--- → fixed
status-firefox-esr31:
--- → unaffected
status-firefox-esr38:
--- → unaffected
Target Milestone: --- → Firefox 40
Comment 63•7 years ago
|
||
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•