Closed Bug 1472421 Opened 6 years ago Closed 6 years ago

[FIX] nsRange should not use uncomposed doc

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

      No description provided.
Priority: -- → P2
this needed a test
remote: View your change here:
remote:   https://hg.mozilla.org/try/rev/0fd9b64bac533ea5b400ae39333ea1c648342d50
remote: 
remote: Follow the progress of your build on Treeherder:
remote:   https://treeherder.mozilla.org/#/jobs?repo=try&revision=0fd9b64bac533ea5b400ae39333ea1c648342d50
remote: recorded changegroup in replication log in 0.109s
Attachment #8989269 - Flags: review?(mrbkap)
could have passed function to the pushPrefEnv without the nameless function, in the test.
Summary: nsRange should not use uncomposed doc → [FIX] nsRange should not use uncomposed doc
Comment on attachment 8989269 [details] [diff] [review]
range_composed_with_test.diff

Review of attachment 8989269 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/base/test/test_range_bounds.html
@@ +289,5 @@
>    isTransformed = true;
>    root.style.transform = "translate(30px,50px)";
>    doTest();
>  
> +  SpecialPowers.pushPrefEnv({"set":[["dom.webcomponents.shadowdom.enabled", true]]}, function() {

As you mentioned, you can pass `testShadowDOM` directly to pushPrefEnv but in the future, current JS style is to use `() => { ... }` for closures.
Attachment #8989269 - Flags: review?(mrbkap) → review+
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2d12737168b1
nsRange should use composeddoc so that it works in shadow DOM, r=mrbkap
oh, crap, should have called finish inside the callback.
Flags: needinfo?(bugs)
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/59874f1c664c
nsRange should use composeddoc so that it works in shadow DOM, r=mrbkap
https://hg.mozilla.org/mozilla-central/rev/59874f1c664c
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: