Title: [188782] branches/safari-601.1.46-branch
- Revision
- 188782
- Author
- [email protected]
- Date
- 2015-08-21 14:54:23 -0700 (Fri, 21 Aug 2015)
Log Message
Merged r188014. rdar://problem/22375872
Modified Paths
Added Paths
Diff
Modified: branches/safari-601.1.46-branch/LayoutTests/ChangeLog (188781 => 188782)
--- branches/safari-601.1.46-branch/LayoutTests/ChangeLog 2015-08-21 21:53:16 UTC (rev 188781)
+++ branches/safari-601.1.46-branch/LayoutTests/ChangeLog 2015-08-21 21:54:23 UTC (rev 188782)
@@ -1,5 +1,22 @@
2015-08-21 Babak Shafiei <[email protected]>
+ Merge r188014.
+
+ 2015-08-05 Chris Dumez <[email protected]>
+
+ Crash when removing children of a MathMLSelectElement
+ https://bugs.webkit.org/show_bug.cgi?id=147704
+ <rdar://problem/21940321>
+
+ Reviewed by Ryosuke Niwa.
+
+ Add layout test that reproduces the crash under guardmalloc.
+
+ * mathml/maction-removeChild-expected.txt: Added.
+ * mathml/maction-removeChild.html: Added.
+
+2015-08-21 Babak Shafiei <[email protected]>
+
Merge r187685.
2015-07-31 Myles C. Maxfield <[email protected]>
Copied: branches/safari-601.1.46-branch/LayoutTests/mathml/maction-removeChild-expected.txt (from rev 188014, trunk/LayoutTests/mathml/maction-removeChild-expected.txt) (0 => 188782)
--- branches/safari-601.1.46-branch/LayoutTests/mathml/maction-removeChild-expected.txt (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/mathml/maction-removeChild-expected.txt 2015-08-21 21:54:23 UTC (rev 188782)
@@ -0,0 +1,3 @@
+This test passes if it does not crash
+
+
Copied: branches/safari-601.1.46-branch/LayoutTests/mathml/maction-removeChild.html (from rev 188014, trunk/LayoutTests/mathml/maction-removeChild.html) (0 => 188782)
--- branches/safari-601.1.46-branch/LayoutTests/mathml/maction-removeChild.html (rev 0)
+++ branches/safari-601.1.46-branch/LayoutTests/mathml/maction-removeChild.html 2015-08-21 21:54:23 UTC (rev 188782)
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+ <body>
+ <p>This test passes if it does not crash</p>
+ <math>
+ <maction id="testSelect" actiontype="toggle" selection="2">
+ <mi>g</mi>
+ <mspace/>
+ </maction>
+ </math>
+ <script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var testSelect = document.getElementById("testSelect");
+ testSelect.innerHTML = "123.123.123";
+ </script>
+ </body>
+</html>
Modified: branches/safari-601.1.46-branch/Source/WebCore/ChangeLog (188781 => 188782)
--- branches/safari-601.1.46-branch/Source/WebCore/ChangeLog 2015-08-21 21:53:16 UTC (rev 188781)
+++ branches/safari-601.1.46-branch/Source/WebCore/ChangeLog 2015-08-21 21:54:23 UTC (rev 188782)
@@ -1,5 +1,29 @@
2015-08-21 Babak Shafiei <[email protected]>
+ Merge r188014.
+
+ 2015-08-05 Chris Dumez <[email protected]>
+
+ Crash when removing children of a MathMLSelectElement
+ https://bugs.webkit.org/show_bug.cgi?id=147704
+ <rdar://problem/21940321>
+
+ Reviewed by Ryosuke Niwa.
+
+ When MathMLSelectElement::childrenChanged() is called after its
+ children have been removed, MathMLSelectElement calls
+ updateSelectedChild() which accesses m_selectedChild. However,
+ in this case, m_selectedChild is the previously selected child
+ and it may be destroyed as this point if it was removed. To avoid
+ this problem, MathMLSelectElement now keep a strong ref to the
+ currently selected element.
+
+ Test: mathml/maction-removeChild.html
+
+ * mathml/MathMLSelectElement.h:
+
+2015-08-21 Babak Shafiei <[email protected]>
+
Merge r187758.
2015-08-03 Anders Carlsson <[email protected]>
Modified: branches/safari-601.1.46-branch/Source/WebCore/mathml/MathMLSelectElement.h (188781 => 188782)
--- branches/safari-601.1.46-branch/Source/WebCore/mathml/MathMLSelectElement.h 2015-08-21 21:53:16 UTC (rev 188781)
+++ branches/safari-601.1.46-branch/Source/WebCore/mathml/MathMLSelectElement.h 2015-08-21 21:54:23 UTC (rev 188782)
@@ -56,7 +56,7 @@
Element* getSelectedSemanticsChild();
void updateSelectedChild() override;
- Element* m_selectedChild;
+ RefPtr<Element> m_selectedChild;
};
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes