зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1397795 part 3 - Don't rely on opaque widgets not having overflow. r=mstange
MozReview-Commit-ID: GJNDwQUjfEr
This commit is contained in:
Родитель
a39f30cb97
Коммит
f6c1f57fe8
|
@ -7,9 +7,6 @@
|
||||||
from impacting web content. Indeed, this pseudo-class is only available to chrome code.
|
from impacting web content. Indeed, this pseudo-class is only available to chrome code.
|
||||||
This stylesheet is loaded as a ua stylesheet via the addon sdk, so having this
|
This stylesheet is loaded as a ua stylesheet via the addon sdk, so having this
|
||||||
pseudo-class is important.
|
pseudo-class is important.
|
||||||
Having bug 1086532 fixed would make it possible to load this stylesheet in a
|
|
||||||
<style scoped> node instead, directly in the native anonymous container
|
|
||||||
element.
|
|
||||||
|
|
||||||
A specific selector should still be specified to avoid impacting non-devtools
|
A specific selector should still be specified to avoid impacting non-devtools
|
||||||
chrome content.
|
chrome content.
|
||||||
|
|
|
@ -254,7 +254,7 @@ CanvasFrameAnonymousContentHelper.prototype = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// For now highlighters.css is injected in content as a ua sheet because
|
// For now highlighters.css is injected in content as a ua sheet because
|
||||||
// <style scoped> doesn't work inside anonymous content (see bug 1086532).
|
// we no longer support scoped style sheets (see bug 1345702).
|
||||||
// If it did, highlighters.css would be injected as an anonymous content
|
// If it did, highlighters.css would be injected as an anonymous content
|
||||||
// node using CanvasFrameAnonymousContentHelper instead.
|
// node using CanvasFrameAnonymousContentHelper instead.
|
||||||
loadSheet(this.highlighterEnv.window, STYLESHEET_URI);
|
loadSheet(this.highlighterEnv.window, STYLESHEET_URI);
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<body onload="f()">
|
|
||||||
<div></div>
|
|
||||||
<style>
|
|
||||||
div { color: blue; }
|
|
||||||
</style>
|
|
||||||
<script>
|
|
||||||
function f() {
|
|
||||||
// This should not leak.
|
|
||||||
var div = document.querySelector("div");
|
|
||||||
var shadow = div.createShadowRoot();
|
|
||||||
shadow.innerHTML = '<div><style scoped>p { color: green; }</style>';
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
|
|
@ -193,7 +193,6 @@ load 942979.html
|
||||||
load 973401.html
|
load 973401.html
|
||||||
load 978646.html
|
load 978646.html
|
||||||
pref(dom.webcomponents.shadowdom.enabled,true) load 1024428-1.html
|
pref(dom.webcomponents.shadowdom.enabled,true) load 1024428-1.html
|
||||||
load 1026714.html
|
|
||||||
pref(dom.webcomponents.shadowdom.enabled,true) load 1027461-1.html
|
pref(dom.webcomponents.shadowdom.enabled,true) load 1027461-1.html
|
||||||
pref(dom.webcomponents.shadowdom.enabled,true) load 1029710.html
|
pref(dom.webcomponents.shadowdom.enabled,true) load 1029710.html
|
||||||
load 1154598.xhtml
|
load 1154598.xhtml
|
||||||
|
|
Загрузка…
Ссылка в новой задаче