Changeset 95790 in webkit


Ignore:
Timestamp:
Sep 23, 2011 3:46:54 AM (13 years ago)
Author:
vsevik@chromium.org
Message:

ASSERTION FAILED: documentLoader in WebKit/Source/WebCore/inspector/InspectorInstrumentation.cpp(597)
https://bugs.webkit.org/show_bug.cgi?id=68291

Reviewed by Tony Chang.

  • dom/Document.cpp:

(WebCore::Document::finishedParsing):

  • inspector/InspectorInstrumentation.cpp:

(WebCore::InspectorInstrumentation::domContentLoadedEventFiredImpl):
(WebCore::InspectorInstrumentation::loadEventFiredImpl):

  • inspector/InspectorInstrumentation.h:

(WebCore::InspectorInstrumentation::domContentLoadedEventFired):
(WebCore::InspectorInstrumentation::loadEventFired):

  • page/DOMWindow.cpp:

(WebCore::DOMWindow::dispatchLoadEvent):

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95783 r95790  
     12011-09-23  Vsevolod Vlasov  <vsevik@chromium.org>
     2
     3        ASSERTION FAILED: documentLoader in WebKit/Source/WebCore/inspector/InspectorInstrumentation.cpp(597)
     4        https://bugs.webkit.org/show_bug.cgi?id=68291
     5
     6        Reviewed by Tony Chang.
     7
     8        * dom/Document.cpp:
     9        (WebCore::Document::finishedParsing):
     10        * inspector/InspectorInstrumentation.cpp:
     11        (WebCore::InspectorInstrumentation::domContentLoadedEventFiredImpl):
     12        (WebCore::InspectorInstrumentation::loadEventFiredImpl):
     13        * inspector/InspectorInstrumentation.h:
     14        (WebCore::InspectorInstrumentation::domContentLoadedEventFired):
     15        (WebCore::InspectorInstrumentation::loadEventFired):
     16        * page/DOMWindow.cpp:
     17        (WebCore::DOMWindow::dispatchLoadEvent):
     18
    1192011-09-22  Tony Chang  <tony@chromium.org>
    220
  • trunk/Source/WebCore/dom/Document.cpp

    r95593 r95790  
    42854285        f->loader()->finishedParsing();
    42864286
    4287         InspectorInstrumentation::domContentLoadedEventFired(f.get(), url());
     4287        InspectorInstrumentation::domContentLoadedEventFired(f.get());
    42884288    }
    42894289}
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp

    r95404 r95790  
    571571}
    572572
    573 void InspectorInstrumentation::domContentLoadedEventFiredImpl(InstrumentingAgents* instrumentingAgents, Frame* frame, const KURL& url)
    574 {
    575     DocumentLoader* documentLoader = frame->loader()->documentLoader();
    576     ASSERT(documentLoader);
    577 
    578     if (frame->page()->mainFrame() != frame || url != documentLoader->requestURL())
     573void InspectorInstrumentation::domContentLoadedEventFiredImpl(InstrumentingAgents* instrumentingAgents, Frame* frame)
     574{
     575    if (frame->page()->mainFrame() != frame)
    579576        return;
    580577
     
    592589}
    593590
    594 void InspectorInstrumentation::loadEventFiredImpl(InstrumentingAgents* instrumentingAgents, Frame* frame, const KURL& url)
    595 {
    596     DocumentLoader* documentLoader = frame->loader()->documentLoader();
    597     ASSERT(documentLoader);
    598 
     591void InspectorInstrumentation::loadEventFiredImpl(InstrumentingAgents* instrumentingAgents, Frame* frame)
     592{
    599593    if (InspectorDOMAgent* domAgent = instrumentingAgents->inspectorDOMAgent())
    600         domAgent->loadEventFired(documentLoader->frame()->document());
    601 
    602     if (frame->page()->mainFrame() != frame || url != documentLoader->requestURL())
     594        domAgent->loadEventFired(frame->document());
     595
     596    if (frame->page()->mainFrame() != frame)
    603597        return;
    604598
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.h

    r95404 r95790  
    139139    static void scriptImported(ScriptExecutionContext*, unsigned long identifier, const String& sourceString);
    140140    static void didReceiveScriptResponse(ScriptExecutionContext*, unsigned long identifier);
    141     static void domContentLoadedEventFired(Frame*, const KURL&);
    142     static void loadEventFired(Frame*, const KURL&);
     141    static void domContentLoadedEventFired(Frame*);
     142    static void loadEventFired(Frame*);
    143143    static void frameDetachedFromParent(Frame*);
    144144    static void didCommitLoad(Frame*, DocumentLoader*);
     
    273273    static void scriptImportedImpl(InstrumentingAgents*, unsigned long identifier, const String& sourceString);
    274274    static void didReceiveScriptResponseImpl(InstrumentingAgents*, unsigned long identifier);
    275     static void domContentLoadedEventFiredImpl(InstrumentingAgents*, Frame*, const KURL&);
    276     static void loadEventFiredImpl(InstrumentingAgents*, Frame*, const KURL&);
     275    static void domContentLoadedEventFiredImpl(InstrumentingAgents*, Frame*);
     276    static void loadEventFiredImpl(InstrumentingAgents*, Frame*);
    277277    static void frameDetachedFromParentImpl(InstrumentingAgents*, Frame*);
    278278    static void didCommitLoadImpl(InstrumentingAgents*, Page*, DocumentLoader*);
     
    868868}
    869869
    870 inline void InspectorInstrumentation::domContentLoadedEventFired(Frame* frame, const KURL& url)
    871 {
    872 #if ENABLE(INSPECTOR)
    873     if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame))
    874         domContentLoadedEventFiredImpl(instrumentingAgents, frame, url);
    875 #endif
    876 }
    877 
    878 inline void InspectorInstrumentation::loadEventFired(Frame* frame, const KURL& url)
    879 {
    880 #if ENABLE(INSPECTOR)
    881     if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame))
    882         loadEventFiredImpl(instrumentingAgents, frame, url);
     870inline void InspectorInstrumentation::domContentLoadedEventFired(Frame* frame)
     871{
     872#if ENABLE(INSPECTOR)
     873    if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame))
     874        domContentLoadedEventFiredImpl(instrumentingAgents, frame);
     875#endif
     876}
     877
     878inline void InspectorInstrumentation::loadEventFired(Frame* frame)
     879{
     880#if ENABLE(INSPECTOR)
     881    if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame))
     882        loadEventFiredImpl(instrumentingAgents, frame);
    883883#endif
    884884}
  • trunk/Source/WebCore/page/DOMWindow.cpp

    r95715 r95790  
    15811581        ownerElement->dispatchEvent(Event::create(eventNames().loadEvent, false, false));
    15821582
    1583     InspectorInstrumentation::loadEventFired(frame(), url());
     1583    InspectorInstrumentation::loadEventFired(frame());
    15841584}
    15851585
Note: See TracChangeset for help on using the changeset viewer.