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

Side by Side Diff: chrome/test/data/pdf/test-embed-pdf.html

Issue 2891923005: Revert of Save pdf file instead of web page through context menu for embedded pdf file (Closed)
Patch Set: Created 3 years, 7 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 <body>
3
4 <button id="link1" onclick="openPdf()">Click me to load pdf</button>
5 <div id="container"></div>
6
7 <script>
8 function openPdf() {
9 var embeddedElem = document.createElement("embed");
10 embeddedElem.src = "test.pdf";
11 document.getElementById("container").appendChild(embeddedElem);
12 }
13 </script>
14
15 <body>
16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698