Changeset 87280 in webkit
- Timestamp:
- May 25, 2011 2:03:11 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87279 r87280 1 2011-05-24 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: inspected page crashes when call stack is empty after live edit. 6 https://bugs.webkit.org/show_bug.cgi?id=61364 7 8 * inspector/debugger/live-edit-expected.txt: 9 * inspector/debugger/live-edit.html: 10 * platform/chromium/test_expectations.txt: 11 1 12 2011-05-25 Mads Ager <ager@chromium.org> 2 13 -
trunk/LayoutTests/inspector/debugger/live-edit-expected.txt
r83294 r87280 14 14 Running: testLiveEditWhenPaused 15 15 Script execution paused. 16 Script execution resumed. 17 18 Running: testNoCrashWhenOnlyOneFunctionOnStack 19 Script execution paused. 16 20 Call stack: 17 21 0) f1 (edit-me-when-paused.js:13) 18 1) (:1) 19 2) eval ((internal script):146) 20 3) InjectedScript._evaluateOn (:283) 21 4) InjectedScript._evaluateAndWrap (:265) 22 5) InjectedScript.evaluate (:245) 22 Script execution resumed. 23 Script execution paused. 23 24 Script execution resumed. 24 25 -
trunk/LayoutTests/inspector/debugger/live-edit.html
r83585 r87280 52 52 function didEditScriptSource() 53 53 { 54 InspectorTest.captureStackTrace(WebInspector.debuggerModel.callFrames);55 54 InspectorTest.resumeExecution(); 56 55 } … … 60 59 InspectorTest.assertEquals("3", result.description, "edited function returns wrong result"); 61 60 next(); 61 } 62 }, 63 64 function testNoCrashWhenOnlyOneFunctionOnStack(next) 65 { 66 InspectorTest.showScriptSource("edit-me-when-paused.js", didShowScriptSource); 67 68 function didShowScriptSource(sourceFrame) 69 { 70 InspectorTest.waitUntilPaused(paused); 71 InspectorTest.evaluateInPage("setTimeout(f1, 0)"); 72 } 73 74 function paused(callFrames) 75 { 76 InspectorTest.captureStackTrace(callFrames); 77 replaceInSource(panel.visibleView, "debugger;", "debugger;\n", didEditScriptSource); 78 } 79 80 function didEditScriptSource() 81 { 82 InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, InspectorTest.resumeExecution.bind(InspectorTest, next))); 62 83 } 63 84 }, … … 92 113 InspectorTest.addSniffer(WebInspector.debuggerModel, "_didEditScriptSource", callback); 93 114 sourceFrame._textViewer._mainPanel.readOnly = false; 94 sourceFrame. startEditing();115 sourceFrame.beforeTextChanged(); 95 116 var oldRange, newRange; 96 117 var lines = sourceFrame._textModel._lines; … … 106 127 break; 107 128 } 108 sourceFrame. endEditing(oldRange, newRange);129 sourceFrame.afterTextChanged(oldRange, newRange); 109 130 sourceFrame._textViewer._commitEditing(); 110 131 } -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r87268 r87280 685 685 686 686 BUGCR77630 WIN LINUX DEBUG SLOW : inspector/debugger/debugger-activation-crash.html = PASS TEXT 687 688 BUGWK60106 DEBUG WIN LINUX : inspector/debugger/live-edit.html = TEXT TIMEOUT PASS689 BUGWK60106 RELEASE LINUX : inspector/debugger/live-edit.html = TEXT PASS690 687 691 688 BUGWK60107 WIN LINUX : inspector/console/console-object-constructor-name.html = TEXT PASS TIMEOUT -
trunk/Source/WebCore/ChangeLog
r87278 r87280 1 2011-05-24 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: inspected page crashes when call stack is empty after live edit. 6 https://bugs.webkit.org/show_bug.cgi?id=61364 7 8 * bindings/v8/ScriptDebugServer.cpp: 9 (WebCore::ScriptDebugServer::currentCallFrame): 10 1 11 2011-05-23 Yury Semikhatsky <yurys@chromium.org> 2 12 -
trunk/Source/WebCore/bindings/v8/ScriptDebugServer.cpp
r86756 r87280 249 249 v8::Handle<v8::Value> argv[] = { m_executionState.get() }; 250 250 v8::Handle<v8::Value> currentCallFrameV8 = currentCallFrameFunction->Call(m_debuggerScript.get(), 1, argv); 251 if (!currentCallFrameV8->IsObject()) 252 return ScriptValue(v8::Null()); 251 253 RefPtr<JavaScriptCallFrame> currentCallFrame = JavaScriptCallFrame::create(v8::Debug::GetDebugContext(), v8::Handle<v8::Object>::Cast(currentCallFrameV8)); 252 254 v8::Context::Scope contextScope(m_pausedContext);
Note: See TracChangeset
for help on using the changeset viewer.