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