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

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: Remove logging 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
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index c7b172078d7778472af64c4fe851a35bca15b73e..fca7332f0ca756e312b01070514f05d8d1f39096 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -202,8 +202,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.

Powered by Google App Engine
This is Rietveld 408576698