forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1419799 - Fix nsContentUtils::IsInSameAnonymousTree in Shadow DOM…
…. r=smaug No need to consider multiple shadow roots as it is only supported in Shadow DOM v0, which is deprecated now. MozReview-Commit-ID: BKemIBiMx1Q
- Loading branch information
Jessica Jong
committed
Dec 8, 2017
1 parent
9fcaf90
commit 765510c
Showing
3 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<html> | ||
<head> | ||
<script> | ||
try { o1 = document.createElement('textarea') } catch(e) { } | ||
try { o2 = document.createElement('div') } catch(e) { } | ||
try { o3 = document.createElement('map') } catch(e) { } | ||
try { document.documentElement.appendChild(o2) } catch(e) { } | ||
try { o2.appendChild(o1) } catch(e) { } | ||
try { document.documentElement.getClientRects() } catch(e) { } | ||
try { o4 = o2.attachShadow({ mode: "open" }); } catch(e) { } | ||
try { o1.appendChild(o3) } catch(e) { } | ||
try { o5 = o3.parentElement } catch(e) { } | ||
try { o3.outerHTML = "\n" } catch(e) { } | ||
try { o4.prepend("", o5, "") } catch(e) { } | ||
</script> | ||
</head> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters