| 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.
|
|
|