Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/calendar-picker/week-picker-close-no-crash.html

Issue 2798863002: PagePopupController: handle frame-detached window usage. (Closed)
Patch Set: add test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script src=../../../resources/testharness.js></script>
5 <script src=../../../resources/testharnessreport.js></script>
6 <script src=../resources/picker-common.js></script>
7 </head>
8 <body>
9 <input type=week id=week>
10 <script>
11 if (window.testRunner) {
12 testRunner.waitUntilDone();
13 testRunner.dumpAsText();
14 }
15 var test = async_test('Accessing popup window controller after detach should not crash.');
16
17 function noCrashOnDetach() {
18 // Controller not accessible on a detached/closed window.
19 assert_equals(popupWindow.pagePopupController, null);
20 test.done();
21 }
22
23 test.step(() => {
24 openPicker(document.getElementById('week'), () => {
25 setTimeout(noCrashOnDetach);
26 popupWindow.close();
27 });
28 });
29 </script>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698