DescriptionValidate debuggee.targetId before use in chrome.debugger
And refactored the tests to make sure that the debugger is detached upon
returning from RunAttachFunction. Previously, if the debugger
unexpectedly succeeded in attaching, the method would return (because
empty error != some error), causing the attached debugger to not be
detached.
R=rdevlin.cronin@chromium.org
BUG=456841
TEST=browser_tests DebuggerApiTest.DebuggerNotAllowedOnOtherExtensionPages
Committed: https://crrev.com/409bf9d6104f83c80cd85bd261784b39cab8e93e
Cr-Commit-Position: refs/heads/master@{#315675}
Patch Set 1 #
Total comments: 12
Patch Set 2 : Comments #4 #
Total comments: 6
Patch Set 3 : Comments #6 #
Messages
Total messages: 12 (4 generated)
|