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

Side by Side Diff: chrome/test/data/printing/selection_iframe.html

Issue 2944873002: Printing: Disable subframes when printing a selection. (Closed)
Patch Set: Fix names conflicts. Created 3 years, 6 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 <html>
2
3 <body>
4 <p>
5 A page with a selection containing an iframe. The browser should be
6 able to print it.
7 </p>
8
9 <div id="selection-start"></div>
10 An iframe here: <iframe src="/simple.html"></iframe>
11 <div id="selection-end"></div>
12
13 <script>
14 var range = document.createRange();
15 range.setStart(document.getElementById("selection-start"), 0);
16 range.setEnd(document.getElementById("selection-end"), 0)
17 window.getSelection().addRange(range);
Lei Zhang 2017/06/21 07:36:32 Neat. Did not know JS + DOM operations supported t
arthursonzogni 2017/06/21 14:01:20 Yes I was surprised too. I did not know either bef
18 </script>
19 </body>
20
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698