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

Unified Diff: chrome/browser/resources/pdf/pdf.js

Issue 2299943002: Record the PDF and top level URL when the PDF plugin crashes. (Closed)
Patch Set: fix typo Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/pdf/browser_api.js ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index 29923a17544e6555ed36f72edf1cd0ef7a410cf4..2c802e687f637ce4b239f5572ef5dbb4b119b68d 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -172,8 +172,12 @@ function PDFViewer(browserApi) {
this.plugin_.setAttribute('background-color', backgroundColor);
this.plugin_.setAttribute('top-toolbar-height', topToolbarHeight);
- if (!this.browserApi_.getStreamInfo().embedded)
+ if (this.browserApi_.getStreamInfo().embedded) {
+ this.plugin_.setAttribute('top-level-url',
+ this.browserApi_.getStreamInfo().tabUrl);
+ } else {
this.plugin_.setAttribute('full-frame', '');
+ }
document.body.appendChild(this.plugin_);
// Setup the button event listeners.
« no previous file with comments | « chrome/browser/resources/pdf/browser_api.js ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698