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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/deletefromdocument-shadow-leak.html

Issue 2715433002: Selection API: deleteFromDocument() should not call setBaseAndExtent(). (Closed)
Patch Set: Created 3 years, 10 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/core/editing/DOMSelection.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 <body>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 test(() => {
7 let textarea = document.createElement('textarea');
8 document.body.appendChild(textarea);
9 textarea.select();
10 getSelection().deleteFromDocument();
11 let anchor = getSelection().anchorNode;
12 assert_equals(anchor.getRootNode(), document);
13 }, 'deleteFromDocument should not leak a UA shadow element in TEXTAREA.');
14 </script>
15 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/DOMSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698