Changeset 140114 in webkit
- Timestamp:
- Jan 18, 2013 2:22:01 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140113 r140114 1 2013-01-18 John J. Barton <johnjbarton@chromium.org> 2 3 Web Inspector: inspectedWindow.eval("IamUndefined.prop", callback) fails to give exception text 4 https://bugs.webkit.org/show_bug.cgi?id=106926 5 6 Reviewed by Pavel Feldman. 7 8 New test case for evaluations that throw. 9 10 * inspector/extensions/extensions-eval-expected.txt: 11 * inspector/extensions/extensions-eval.html: 12 1 13 2013-01-17 Dominik Röttsches <dominik.rottsches@intel.com> 2 14 -
trunk/LayoutTests/inspector/extensions/extensions-eval-expected.txt
r99864 r140114 13 13 RUNNING TEST: extension_testEvalStringifyingLoopFailed 14 14 Evaluate: "Object has too long reference chain(must not be longer than 1000)" (exception: true) 15 RUNNING TEST: extension_testEvalThrows 16 Evaluate: "testExceptionString" (exception: true) 15 17 RUNNING TEST: extension_testEvalUndefined 16 18 Evaluate: undefined (exception: undefined) -
trunk/LayoutTests/inspector/extensions/extensions-eval.html
r99864 r140114 47 47 } 48 48 49 function extension_testEvalThrows(nextTest) 50 { 51 webInspector.inspectedWindow.eval("throw('testExceptionString')", callbackAndNextTest(extension_onEval, nextTest)); 52 } 53 49 54 function extension_onEval(value, isException) 50 55 { -
trunk/Source/WebCore/ChangeLog
r140111 r140114 1 2013-01-18 John J. Barton <johnjbarton@chromium.org> 2 3 Web Inspector: inspectedWindow.eval("IamUndefined.prop", callback) fails to give exception text 4 https://bugs.webkit.org/show_bug.cgi?id=106926 5 6 Reviewed by Pavel Feldman. 7 8 Return .description from exceptions rather than .value (which is undefined) 9 10 New test added to extensions/extensions-eval.html 11 12 * inspector/front-end/ExtensionServer.js: 13 (WebInspector.ExtensionServer.prototype.): 14 (WebInspector.ExtensionServer.prototype._onEvaluateOnInspectedPage): 15 1 16 2013-01-14 Dominik Röttsches <dominik.rottsches@intel.com> 2 17 -
trunk/Source/WebCore/inspector/front-end/ExtensionServer.js
r139880 r140114 334 334 result.isException = true; 335 335 result.value = error.toString(); 336 } else 336 } else if (wasThrown) { 337 result.isException = true; 338 result.value = resultPayload.description; 339 } else { 337 340 result.value = resultPayload.value; 338 339 if (wasThrown) 340 result.isException = true; 341 } 341 342 342 343 this._dispatchCallback(message.requestId, port, result);
Note: See TracChangeset
for help on using the changeset viewer.