Changeset 141891 in webkit
- Timestamp:
- Feb 5, 2013 7:05:48 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r141890 r141891 1 2013-02-05 Peter Rybin <prybin@chromium.org> 2 3 Web Inspector: prevent crash, add required error string value 4 https://bugs.webkit.org/show_bug.cgi?id=108776 5 6 Reviewed by Pavel Feldman. 7 8 Error string is assigned where missing, assert is added where empty string is 9 possible. 10 11 * inspector/InjectedScriptBase.cpp: 12 (WebCore::InjectedScriptBase::makeEvalCall): 13 * inspector/PageRuntimeAgent.cpp: 14 (WebCore::PageRuntimeAgent::injectedScriptForEval): 15 1 16 2013-02-05 Eugene Klyuchnikov <eustas@chromium.org> 2 17 -
trunk/Source/WebCore/inspector/InjectedScriptBase.cpp
r127757 r141891 125 125 if (result->type() == InspectorValue::TypeString) { 126 126 result->asString(errorString); 127 ASSERT(errorString->length()); 127 128 return; 128 129 } -
trunk/Source/WebCore/inspector/PageRuntimeAgent.cpp
r138457 r141891 136 136 if (!executionContextId) { 137 137 ScriptState* scriptState = mainWorldScriptState(m_inspectedPage->mainFrame()); 138 return injectedScriptManager()->injectedScriptFor(scriptState); 138 InjectedScript result = injectedScriptManager()->injectedScriptFor(scriptState); 139 if (result.hasNoValue()) 140 *errorString = "Internal error: main world execution context not found."; 141 return result; 139 142 } 140 143 InjectedScript injectedScript = injectedScriptManager()->injectedScriptForId(*executionContextId);
Note: See TracChangeset
for help on using the changeset viewer.