| Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7c1a59dc2a6e46c710fd4bf0ea2cb53c4c68c6f1
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-shouldnt-crash-after-inspected-context-destroyed.js
|
| @@ -0,0 +1,13 @@
|
| +(async function(testRunner) {
|
| + let {page, session, dp} = await testRunner.startBlank(`Tests that call to console after inspected context was destroyed shouldn't produce crash.`);
|
| + await session.evaluate(`
|
| + var iframe = document.createElement('iframe');
|
| + document.body.appendChild(iframe);
|
| + var a = window.console;
|
| + window.console = iframe.contentWindow.console;
|
| + iframe.contentWindow.console = a;
|
| + iframe.remove();
|
| + `);
|
| + testRunner.logMessage(await dp.Runtime.evaluate({expression: 'console.log(239);'}));
|
| + testRunner.completeTest();
|
| +})
|
|
|