Patch to follow.
Created attachment 114087 [details] Patch
Comment on attachment 114087 [details] Patch Please add a test for this.
Created attachment 114259 [details] Patch
Comment on attachment 114259 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=114259&action=review > LayoutTests/http/tests/inspector-enabled/injected-script-discard.html:60 > + InspectorTest.evaluateInPage(error ? "console.log('Error resolving object')" : "console.log('Resolved object successfully')", callback); Please add FAILED: prefix to the failing branch so that the test is not rebaselined by mistake.
Committed r99709: <http://trac.webkit.org/changeset/99709>