Changeset 95790 in webkit
- Timestamp:
- Sep 23, 2011 3:46:54 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r95783 r95790 1 2011-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 1 19 2011-09-22 Tony Chang <tony@chromium.org> 2 20 -
trunk/Source/WebCore/dom/Document.cpp
r95593 r95790 4285 4285 f->loader()->finishedParsing(); 4286 4286 4287 InspectorInstrumentation::domContentLoadedEventFired(f.get() , url());4287 InspectorInstrumentation::domContentLoadedEventFired(f.get()); 4288 4288 } 4289 4289 } -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r95404 r95790 571 571 } 572 572 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()) 573 void InspectorInstrumentation::domContentLoadedEventFiredImpl(InstrumentingAgents* instrumentingAgents, Frame* frame) 574 { 575 if (frame->page()->mainFrame() != frame) 579 576 return; 580 577 … … 592 589 } 593 590 594 void InspectorInstrumentation::loadEventFiredImpl(InstrumentingAgents* instrumentingAgents, Frame* frame, const KURL& url) 595 { 596 DocumentLoader* documentLoader = frame->loader()->documentLoader(); 597 ASSERT(documentLoader); 598 591 void InspectorInstrumentation::loadEventFiredImpl(InstrumentingAgents* instrumentingAgents, Frame* frame) 592 { 599 593 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) 603 597 return; 604 598 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r95404 r95790 139 139 static void scriptImported(ScriptExecutionContext*, unsigned long identifier, const String& sourceString); 140 140 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*); 143 143 static void frameDetachedFromParent(Frame*); 144 144 static void didCommitLoad(Frame*, DocumentLoader*); … … 273 273 static void scriptImportedImpl(InstrumentingAgents*, unsigned long identifier, const String& sourceString); 274 274 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*); 277 277 static void frameDetachedFromParentImpl(InstrumentingAgents*, Frame*); 278 278 static void didCommitLoadImpl(InstrumentingAgents*, Page*, DocumentLoader*); … … 868 868 } 869 869 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);870 inline void InspectorInstrumentation::domContentLoadedEventFired(Frame* frame) 871 { 872 #if ENABLE(INSPECTOR) 873 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame)) 874 domContentLoadedEventFiredImpl(instrumentingAgents, frame); 875 #endif 876 } 877 878 inline void InspectorInstrumentation::loadEventFired(Frame* frame) 879 { 880 #if ENABLE(INSPECTOR) 881 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame)) 882 loadEventFiredImpl(instrumentingAgents, frame); 883 883 #endif 884 884 } -
trunk/Source/WebCore/page/DOMWindow.cpp
r95715 r95790 1581 1581 ownerElement->dispatchEvent(Event::create(eventNames().loadEvent, false, false)); 1582 1582 1583 InspectorInstrumentation::loadEventFired(frame() , url());1583 InspectorInstrumentation::loadEventFired(frame()); 1584 1584 } 1585 1585
Note: See TracChangeset
for help on using the changeset viewer.