Changeset 106662 in webkit
- Timestamp:
- Feb 3, 2012 8:20:32 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106657 r106662 1 2012-02-03 Yury Semikhatsky <yurys@chromium.org> 2 3 inspector/debugger/pause-in-inline-script.html asserts in chromium debug 4 https://bugs.webkit.org/show_bug.cgi?id=77663 5 6 Reviewed by Pavel Feldman. 7 8 * platform/chromium/test_expectations.txt: assert was fixed, remove 9 custom expectation for inspector/debugger/pause-in-inline-script.html 10 1 11 2012-01-27 Yury Semikhatsky <yurys@chromium.org> 2 12 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r106654 r106662 4048 4048 4049 4049 BUGWK77661 WIN LINUX : http/tests/inspector/indexeddb/database-structure.html = TEXT 4050 BUGWK77663 WIN LINUX DEBUG : inspector/debugger/pause-in-inline-script.html = CRASH4051 4050 4052 4051 // Hitting ASSERT_NOT_REACHED in EventHandler::handleTouchEvent() as of r106554. -
trunk/Source/WebCore/ChangeLog
r106660 r106662 1 2012-02-03 Yury Semikhatsky <yurys@chromium.org> 2 3 inspector/debugger/pause-in-inline-script.html asserts in chromium debug 4 https://bugs.webkit.org/show_bug.cgi?id=77663 5 6 Make ASSERT in MainResourceLoader not fail if debugger hits breakpoint 7 in the main resource inline script. 8 9 Reviewed by Pavel Feldman. 10 11 Test: inspector/debugger/pause-in-inline-script.html 12 13 * bindings/js/ScriptDebugServer.h: 14 (WebCore::ScriptDebugServer::isPaused): 15 (ScriptDebugServer): 16 * bindings/v8/ScriptDebugServer.h: 17 (ScriptDebugServer): 18 * inspector/InspectorDebuggerAgent.cpp: 19 (WebCore::InspectorDebuggerAgent::didClearMainFrameWindowObject): 20 (WebCore): 21 (WebCore::InspectorDebuggerAgent::isPaused): 22 * inspector/InspectorDebuggerAgent.h: 23 (InspectorDebuggerAgent): 24 * inspector/InspectorInstrumentation.cpp: 25 (WebCore::InspectorInstrumentation::isDebuggerPausedImpl): 26 (WebCore): 27 * inspector/InspectorInstrumentation.h: 28 (InspectorInstrumentation): 29 (WebCore::InspectorInstrumentation::isDebuggerPaused): 30 (WebCore): 31 * loader/MainResourceLoader.cpp: 32 (WebCore::MainResourceLoader::didFinishLoading): 33 1 34 2012-02-03 Kentaro Hara <haraken@chromium.org> 2 35 -
trunk/Source/WebCore/bindings/js/ScriptDebugServer.h
r101651 r106662 91 91 virtual void recompileAllJSFunctions(Timer<ScriptDebugServer>* = 0) = 0; 92 92 93 bool isPaused() { return m_paused; } 94 93 95 protected: 94 96 typedef HashSet<ScriptDebugListener*> ListenerSet; -
trunk/Source/WebCore/bindings/v8/ScriptDebugServer.h
r101651 r106662 93 93 void runPendingTasks(); 94 94 95 bool isPaused(); 96 95 97 protected: 96 98 ScriptDebugServer(); … … 113 115 void ensureDebuggerScriptCompiled(); 114 116 115 bool isPaused();116 117 117 PauseOnExceptionsState m_pauseOnExceptionsState; 118 118 OwnHandle<v8::Object> m_debuggerScript; -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.cpp
r106541 r106662 186 186 } 187 187 188 bool InspectorDebuggerAgent::isPaused() 189 { 190 return scriptDebugServer().isPaused(); 191 } 192 188 193 static PassRefPtr<InspectorObject> buildObjectForBreakpointCookie(const String& url, int lineNumber, int columnNumber, const String& condition, bool isRegex) 189 194 { -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.h
r106541 r106662 78 78 79 79 void didClearMainFrameWindowObject(); 80 bool isPaused(); 80 81 81 82 // Part of the protocol. -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r106347 r106662 110 110 } 111 111 112 bool InspectorInstrumentation::isDebuggerPausedImpl(InstrumentingAgents* instrumentingAgents) 113 { 114 #if ENABLE(JAVASCRIPT_DEBUGGER) 115 if (InspectorDebuggerAgent* debuggerAgent = instrumentingAgents->inspectorDebuggerAgent()) 116 return debuggerAgent->isPaused(); 117 #endif 118 return false; 119 } 120 112 121 void InspectorInstrumentation::willInsertDOMNodeImpl(InstrumentingAgents* instrumentingAgents, Node* node, Node* parent) 113 122 { -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r106347 r106662 81 81 public: 82 82 static void didClearWindowObjectInWorld(Frame*, DOMWrapperWorld*); 83 static bool isDebuggerPaused(Frame*); 83 84 84 85 static void willInsertDOMNode(Document*, Node*, Node* parent); … … 229 230 #if ENABLE(INSPECTOR) 230 231 static void didClearWindowObjectInWorldImpl(InstrumentingAgents*, Frame*, DOMWrapperWorld*); 232 static bool isDebuggerPausedImpl(InstrumentingAgents*); 231 233 232 234 static void willInsertDOMNodeImpl(InstrumentingAgents*, Node*, Node* parent); … … 384 386 } 385 387 388 inline bool InspectorInstrumentation::isDebuggerPaused(Frame* frame) 389 { 390 #if ENABLE(INSPECTOR) 391 FAST_RETURN_IF_NO_FRONTENDS(false); 392 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForFrame(frame)) 393 return isDebuggerPausedImpl(instrumentingAgents); 394 #endif 395 return false; 396 } 397 386 398 inline void InspectorInstrumentation::willInsertDOMNode(Document* document, Node* node, Node* parent) 387 399 { -
trunk/Source/WebCore/loader/MainResourceLoader.cpp
r104803 r106662 470 470 // See <rdar://problem/6304600> for more details. 471 471 #if !USE(CF) 472 ASSERT(shouldLoadAsEmptyDocument(frameLoader()->activeDocumentLoader()->url()) || !defersLoading() );472 ASSERT(shouldLoadAsEmptyDocument(frameLoader()->activeDocumentLoader()->url()) || !defersLoading() || InspectorInstrumentation::isDebuggerPaused(m_frame.get())); 473 473 #endif 474 474
Note: See TracChangeset
for help on using the changeset viewer.