Changeset 140537 in webkit


Ignore:
Timestamp:
Jan 23, 2013 7:22:15 AM (11 years ago)
Author:
dominicc@chromium.org
Message:

REGRESSION(r140101): caused debug asserts in fast/forms/associated-element-crash.html and html5lib/run-template.html
https://bugs.webkit.org/show_bug.cgi?id=107237

Patch by Rafael Weinstein <rafaelw@chromium.org> on 2013-01-23
Reviewed by Adam Barth.

Source/WebCore:

No new tests needed.

When the parser foster-parent's a node out of a table context and the foster parent is a template element, set the Task.parent
to be the template element's content, rather than the element itself. This ensures the foster-parented node isn't errorenously
reparented.

  • html/parser/HTMLConstructionSite.cpp:

(WebCore::HTMLConstructionSite::findFosterSite):

LayoutTests:

  • platform/chromium/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r140536 r140537  
     12013-01-23  Rafael Weinstein  <rafaelw@chromium.org>
     2
     3        REGRESSION(r140101): caused debug asserts in fast/forms/associated-element-crash.html and html5lib/run-template.html
     4        https://bugs.webkit.org/show_bug.cgi?id=107237
     5
     6        Reviewed by Adam Barth.
     7
     8        * platform/chromium/TestExpectations:
     9
    1102013-01-23  Erik Arvidsson  <arv@chromium.org>
    211
  • trunk/LayoutTests/platform/chromium/TestExpectations

    r140525 r140537  
    43314331webkit.org/b/107316 [ Win Debug ] fast/inline/fixed-pos-moves-with-abspos-inline-parent.html [ Pass Failure ]
    43324332
    4333 webkit.org/b/107237 [ Debug ] html5lib/run-template.html [ Crash ]
    4334 
    43354333webkit.org/b/107328 http/tests/cache/cancel-multiple-post-xhrs.html [ Missing ]
    43364334webkit.org/b/107341 [ Debug ] inspector/profiler/memory-instrumentation-cached-images.html [ Failure ]
  • trunk/Source/WebCore/ChangeLog

    r140535 r140537  
     12013-01-23  Rafael Weinstein  <rafaelw@chromium.org>
     2
     3        REGRESSION(r140101): caused debug asserts in fast/forms/associated-element-crash.html and html5lib/run-template.html
     4        https://bugs.webkit.org/show_bug.cgi?id=107237
     5
     6        Reviewed by Adam Barth.
     7
     8        No new tests needed.
     9
     10        When the parser foster-parent's a node out of a table context and the foster parent is a template element, set the Task.parent
     11        to be the template element's content, rather than the element itself. This ensures the foster-parented node isn't errorenously
     12        reparented.
     13
     14        * html/parser/HTMLConstructionSite.cpp:
     15        (WebCore::HTMLConstructionSite::findFosterSite):
     16
    1172013-01-23  Yury Semikhatsky  <yurys@chromium.org>
    218
  • trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp

    r140101 r140537  
    608608    HTMLElementStack::ElementRecord* lastTemplateElement = m_openElements.topmost(templateTag.localName());
    609609    if (lastTemplateElement && !m_openElements.inTableScope(tableTag)) {
    610         task.parent = lastTemplateElement->element();
    611         return;
    612     }
     610        task.parent = toHTMLTemplateElement(lastTemplateElement->element())->content();
     611        return;
     612    }
     613
    613614#endif
    614615
Note: See TracChangeset for help on using the changeset viewer.