Bug 1397795 part 3 - Don't rely on opaque widgets not having overflow. r=mstange

MozReview-Commit-ID: GJNDwQUjfEr
This commit is contained in:
Jonathan Watt 2018-02-19 16:00:32 +00:00
Родитель a39f30cb97
Коммит f6c1f57fe8
4 изменённых файлов: 1 добавлений и 21 удалений

Просмотреть файл

@ -7,9 +7,6 @@
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
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
chrome content.

Просмотреть файл

@ -254,7 +254,7 @@ CanvasFrameAnonymousContentHelper.prototype = {
}
// 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
// node using CanvasFrameAnonymousContentHelper instead.
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 978646.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 1029710.html
load 1154598.xhtml