mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 620034 - "ABORT: DOM wrapper's list length is out of sync" [@ mozilla::DOMSVGNumberList::Length]. r=longsonr, a=blocking.
This commit is contained in:
parent
c7eb7f1b6c
commit
999d3260be
@ -85,7 +85,7 @@ SVGAnimatedLengthList::ClearBaseValue(PRUint32 aAttrEnum)
|
||||
DOMSVGAnimatedLengthList::GetDOMWrapperIfExists(this);
|
||||
if (domWrapper) {
|
||||
// We must send this notification *before* changing mBaseVal! (See above.)
|
||||
domWrapper->InternalAnimValListWillChangeTo(SVGLengthList());
|
||||
domWrapper->InternalBaseValListWillChangeTo(SVGLengthList());
|
||||
}
|
||||
mBaseVal.Clear();
|
||||
// Caller notifies
|
||||
|
@ -85,7 +85,7 @@ SVGAnimatedNumberList::ClearBaseValue(PRUint32 aAttrEnum)
|
||||
DOMSVGAnimatedNumberList::GetDOMWrapperIfExists(this);
|
||||
if (domWrapper) {
|
||||
// We must send this notification *before* changing mBaseVal! (See above.)
|
||||
domWrapper->InternalAnimValListWillChangeTo(SVGNumberList());
|
||||
domWrapper->InternalBaseValListWillChangeTo(SVGNumberList());
|
||||
}
|
||||
mBaseVal.Clear();
|
||||
// Caller notifies
|
||||
|
15
layout/svg/crashtests/620034-1.html
Normal file
15
layout/svg/crashtests/620034-1.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var f = document.createElementNS("http://www.w3.org/2000/svg", "feFuncB");
|
||||
var tvb = f.tableValues.baseVal;
|
||||
f.setAttribute("tableValues", "3 7 5");
|
||||
f.setAttribute("tableValues", "i");
|
||||
tvb.numberOfItems;
|
||||
}
|
||||
|
||||
boom();
|
||||
|
||||
</script>
|
@ -101,5 +101,6 @@ load 610594-1.html
|
||||
load 610954-1.html
|
||||
load 612662-1.svg
|
||||
load 612662-2.svg
|
||||
load 620034-1.html
|
||||
|
||||
load 621598-1.svg
|
||||
|
Loading…
Reference in New Issue
Block a user