зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1024428 - don't crash when using input type='range' in shadow dom. r=wchen
This commit is contained in:
Родитель
5101141c0a
Коммит
99e8a32fe4
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<div id="host"></div>
|
||||
<script>
|
||||
var s = host.createShadowRoot();
|
||||
s.innerHTML = '<input type="range" />';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -151,3 +151,4 @@ load 942979.html
|
|||
load 978646.html
|
||||
load 1026714.html
|
||||
pref(dom.webcomponents.enabled,true) load 1027461-1.html
|
||||
pref(dom.webcomponents.enabled,true) load 1024428-1.html
|
||||
|
|
|
@ -111,7 +111,7 @@ nsRangeFrame::MakeAnonymousDiv(Element** aResult,
|
|||
nsCSSPseudoElements::Type aPseudoType,
|
||||
nsTArray<ContentInfo>& aElements)
|
||||
{
|
||||
nsCOMPtr<nsIDocument> doc = mContent->GetDocument();
|
||||
nsCOMPtr<nsIDocument> doc = mContent->GetComposedDoc();
|
||||
nsRefPtr<Element> resultElement = doc->CreateHTMLElement(nsGkAtoms::div);
|
||||
|
||||
// Associate the pseudo-element with the anonymous child.
|
||||
|
|
Загрузка…
Ссылка в новой задаче