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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Selection/selection-crash.html

Issue 2153063003: Should not call FocusController::setFocusedFrame() for detached frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for comment #20 Created 4 years, 5 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <button id="button"></button>
5 <iframe id="iframe"></iframe>
6 <script>
7 // This is a reproduction case for crbug.com/626750.
8 async_test((test) => {
9 button.addEventListener('focus', () => {
10 iframe.contentWindow.focus();
11 });
12
13 button.addEventListener('blur', test.step_func_done(() => {
14 // This detaches <iframe>.
15 document.open();
16 assert_true(true, "Test did not crash.");
17 }));
18
19 window.addEventListener('load', () => button.focus());
20 }, 'focusing on detached frame should not crash');
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698