Changeset 86270 in webkit


Ignore:
Timestamp:
May 11, 2011 2:18:09 PM (13 years ago)
Author:
weinig@apple.com
Message:

Frequent crashes beneath WebCore::ScriptElement::prepareScript
https://bugs.webkit.org/show_bug.cgi?id=60559

Reviewed by Eric Seidel.

  • html/parser/HTMLScriptRunner.cpp:

(WebCore::HTMLScriptRunner::runScript):
Add null check and explanation that we are keeping the ASSERT to help
track down the cause and produce a test.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86269 r86270  
     12011-05-11  Sam Weinig  <sam@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Frequent crashes beneath WebCore::ScriptElement::prepareScript
     6        https://bugs.webkit.org/show_bug.cgi?id=60559
     7
     8        * html/parser/HTMLScriptRunner.cpp:
     9        (WebCore::HTMLScriptRunner::runScript):
     10        Add null check and explanation that we are keeping the ASSERT to help
     11        track down the cause and produce a test.
     12
    1132011-05-11  Noam Rosenthal  <noam.rosenthal@nokia.com>
    214
  • trunk/Source/WebCore/html/parser/HTMLScriptRunner.cpp

    r84357 r86270  
    285285
    286286        ScriptElement* scriptElement = toScriptElement(script);
     287
     288        // This contains both and ASSERTION and a null check since we should not
     289        // be getting into the case of a null script element, but seem to be from
     290        // time to time. The assertion is left in to help find those cases and
     291        // is being tracked by <https://bugs.webkit.org/show_bug.cgi?id=60559>.
    287292        ASSERT(scriptElement);
     293        if (!scriptElement)
     294            return;
    288295
    289296        scriptElement->prepareScript(scriptStartPosition);
Note: See TracChangeset for help on using the changeset viewer.