Closed
Bug 1251659
Opened 9 years ago
Closed 8 years ago
[e10s] test_bug967796.html shouldn't use setBoolPref
Categories
(Core :: DOM: Events, defect, P4)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
People
(Reporter: mccr8, Assigned: stone)
References
(Blocks 1 open bug)
Details
(Whiteboard: btpp-active)
Attachments
(2 files, 2 obsolete files)
1.07 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
5.47 KB,
patch
|
stone
:
review+
|
Details | Diff | Splinter Review |
This apparently fails intermittently when enabled for e10s, though I'm not sure offhand what the failure looks like. It uses setBoolPref which seems like a reasonable possible cause for this.
The failures can be seen in the log linked here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1219842#c11
The errors look like this, which sounds like a pref not being set properly:
08:00:48 INFO - 286 INFO TEST-UNEXPECTED-FAIL | dom/events/test/test_bug967796.html | Wrong related target (pointerenter) - got null, expected [object HTMLDivElement]
Reporter | ||
Comment 1•9 years ago
|
||
There's a bunch of tests in that directory that use setBoolPref or setIntPref. I'll fix them up.
Updated•9 years ago
|
Whiteboard: btpp-active
Reporter | ||
Comment 2•9 years ago
|
||
I retriggered a half dozen times and I didn't see the orange. Though maybe it is the wrong platform or something.
The various wheel event related tests in this directory have a ton of preferences, so I'll deal with them in a separate bug.
try run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=511b9a1fd934
Attachment #8724462 -
Flags: review?(mrbkap)
Reporter | ||
Comment 3•9 years ago
|
||
The same preference is set earlier using pushPrefEnv.
Attachment #8724463 -
Flags: review?(mrbkap)
Comment 4•9 years ago
|
||
Comment on attachment 8724462 [details] [diff] [review]
part 1 - test_bug967796.html should use SpecialPowers.pushPrefEnv.
Review of attachment 8724462 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the comment addressed.
::: dom/events/test/test_bug967796.html
@@ +23,4 @@
> SimpleTest.waitForExplicitFinish();
> +
> +SpecialPowers.pushPrefEnv({"set": [["dom.w3c_pointer_events.enabled", true]]},
> + SimpleTest.waitForFocus(runTests));
You probably meant to wrap the waitForFocus in a closure, right?
Attachment #8724462 -
Flags: review?(mrbkap) → review+
Updated•9 years ago
|
Attachment #8724463 -
Flags: review?(mrbkap) → review+
Comment 6•9 years ago
|
||
Backed out for making test_bug967796.html permafail across the board.
https://treeherder.mozilla.org/logviewer.html#?job_id=22593129&repo=mozilla-inbound
https://hg.mozilla.org/integration/mozilla-inbound/rev/dfb1e32a7061
Reporter | ||
Comment 7•9 years ago
|
||
I thought I had tested it locally both with and without e10s, but looks like I only tested it with e10s.
Reporter | ||
Comment 9•9 years ago
|
||
I backed out part 1 again. Maybe the new failures are intermittent. I see green on L32, but not L64.
Keywords: leave-open
Reporter | ||
Comment 10•9 years ago
|
||
Updated•9 years ago
|
Blocks: e10s-tests
tracking-e10s:
--- → +
Comment 11•9 years ago
|
||
Isn't it better to do:
SimpleTest.waitForFocus(function() {
SpecialPowers.pushPrefEnv({"set": [["dom.w3c_pointer_events.enabled", true]]},
runTests);
});
That seems more reliable to me. Because the focus event can happen every time, while pushPrefEnv would still be going on.
Reporter | ||
Comment 12•9 years ago
|
||
I actually did that in my initial landing in comment 5. :)
This test used to fail intermittently on non-e10s, in bug 1170449. I wonder if my change somehow is breaking this workaround.
See Also: → 1170449
Comment 13•9 years ago
|
||
Andrew, are you still working on this test fix? How important is re-enabling this test for e10s?
Flags: needinfo?(continuation)
Reporter | ||
Comment 14•9 years ago
|
||
I'm not working on this. I didn't get around to investigating why it was failing intermittently. Presumably some other e10s race condition.
Olli, how important do you think this test is?
Assignee: continuation → nobody
Flags: needinfo?(continuation) → needinfo?(bugs)
Comment 15•9 years ago
|
||
This is important but not before we have pointer events enabled. So, not yet.
Flags: needinfo?(bugs)
Comment 16•9 years ago
|
||
Thanks. I'll make this test bug depend on "enable pointer events" bug 1166347 and prioritize it to be revisited after the initial e10s release.
Depends on: 1166347
Priority: -- → P4
Comment 17•8 years ago
|
||
Stone, is this something you could investigate by chance?
Flags: needinfo?(sshih)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → sshih
Flags: needinfo?(sshih)
Assignee | ||
Comment 18•8 years ago
|
||
Attachment #8724462 -
Attachment is obsolete: true
Assignee | ||
Comment 19•8 years ago
|
||
The major problem of the original test case is the iframe is created before setting preference 'dom.w3c_pointer_events.enabled' to true. Refined the test case as creating iframe dynamically after the preference is set.
Assignee | ||
Comment 20•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f7898d31656fabff263bbf95cff222cf7b5730fe
No intermittent failure of test_bug967796.html found
Assignee | ||
Updated•8 years ago
|
Attachment #8803809 -
Flags: review?(bugs)
Updated•8 years ago
|
Attachment #8803809 -
Flags: review?(bugs) → review+
Reporter | ||
Comment 21•8 years ago
|
||
Thanks for finishing this up!
Assignee | ||
Comment 22•8 years ago
|
||
Updated the patch summary.
Attachment #8803809 -
Attachment is obsolete: true
Attachment #8816395 -
Flags: review+
Assignee | ||
Comment 23•8 years ago
|
||
checkin-needed for attachment #8816395 [details] [diff] [review]. Thanks.
Keywords: checkin-needed
Comment 24•8 years ago
|
||
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bd30cdbf03c3
test_bug967796.html should use SpecialPowers.pushPrefEnv. r=smaug
Keywords: checkin-needed
Comment 25•8 years ago
|
||
bugherder |
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 26•7 years ago
|
||
Removing leave-open keyword from resolved bugs, per :sylvestre.
Keywords: leave-open
You need to log in
before you can comment on or make changes to this bug.
Description
•