Layout Test media/track/track-delete-during-setup.html is hitting an ASSERT_NOT_REACHED
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 15:13:25 +0000 (15:13 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 15:13:25 +0000 (15:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=82269

Reviewed by Antti Koivisto.

Source/WebCore:

No new tests, already tested by media/track/track-delete-during-setup.html.

* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::insertedIntoDocument): Don't notify the media element until/unless
the track element is inserted into the document.
* html/HTMLTrackElement.h:

LayoutTests:

* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114256 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/chromium/test_expectations.txt
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLTrackElement.cpp
Source/WebCore/html/HTMLTrackElement.h

index c2849ac..3137a7d 100644 (file)
@@ -1,3 +1,12 @@
+2012-04-16  Eric Carlson  <eric.carlson@apple.com>
+
+        Layout Test media/track/track-delete-during-setup.html is hitting an ASSERT_NOT_REACHED
+        https://bugs.webkit.org/show_bug.cgi?id=82269
+
+        Reviewed by Antti Koivisto.
+
+        * platform/chromium/test_expectations.txt:
+
 2012-04-16  Dominik Röttsches  <dominik.rottsches@linux.intel.com>
 
         [EFL][DRT] Create baselines for CSS cases related to Ahem font
index 0fe016d..c59cda5 100644 (file)
@@ -3664,8 +3664,6 @@ BUGCR120356 : fast/regex/unicodeCaseInsensitive.html = TEXT
 
 BUGWK82300 SNOWLEOPARD : compositing/images/direct-pdf-image.html = IMAGE
 
-BUGWK82269 DEBUG : media/track/track-delete-during-setup.html = CRASH
-
 // this test appears to consistently fail during the main run but usually passes on a retry.
 BUGWK82404 : plugins/netscape-dom-access-and-reload.html = PASS TEXT
 
index 7d97b98..e306c04 100644 (file)
@@ -1,3 +1,17 @@
+2012-04-16  Eric Carlson  <eric.carlson@apple.com>
+
+        Layout Test media/track/track-delete-during-setup.html is hitting an ASSERT_NOT_REACHED
+        https://bugs.webkit.org/show_bug.cgi?id=82269
+
+        Reviewed by Antti Koivisto.
+
+        No new tests, already tested by media/track/track-delete-during-setup.html.
+
+        * html/HTMLTrackElement.cpp:
+        (WebCore::HTMLTrackElement::insertedIntoDocument): Don't notify the media element until/unless
+        the track element is inserted into the document.
+        * html/HTMLTrackElement.h:
+
 2012-04-16  Yael Aharon  <yael.aharon@nokia.com>
 
         [Qt][WK2] Fixed elements position is wrong after zooming.
index f80ceea..f2308a7 100644 (file)
@@ -72,9 +72,9 @@ PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(const QualifiedName& tagNa
     return adoptRef(new HTMLTrackElement(tagName, document));
 }
 
-void HTMLTrackElement::insertedIntoTree(bool deep)
+void HTMLTrackElement::insertedIntoDocument()
 {
-    HTMLElement::insertedIntoTree(deep);
+    HTMLElement::insertedIntoDocument();
 
     if (HTMLMediaElement* parent = mediaElement())
         parent->didAddTrack(this);
index e2a55f3..1eab873 100644 (file)
@@ -77,7 +77,7 @@ private:
 
     virtual void parseAttribute(Attribute*) OVERRIDE;
 
-    virtual void insertedIntoTree(bool) OVERRIDE;
+    virtual void insertedIntoDocument() OVERRIDE;
     virtual void willRemove() OVERRIDE;
     virtual bool isURLAttribute(Attribute*) const;