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

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

Issue 2402873002: Add check for file:-navigations from PDFs (Closed)
Patch Set: Put logic at single location, add test Created 4 years, 2 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 9805660b562c34e82cae189e4670abaace68eb8e..6a8e564b56f568f4ffa5d1539e0f8322c4ef1ad3 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -233,10 +233,9 @@ function PDFViewer(browserApi) {
document.addEventListener('mouseout', this.handleMouseEvent_.bind(this));
var isInTab = this.browserApi_.getStreamInfo().tabId != -1;
- var isSourceFileUrl = this.originalUrl_.startsWith('file://');
this.navigator_ = new Navigator(
this.originalUrl_, this.viewport_, this.paramsParser_,
- new NavigatorDelegate(isInTab, isSourceFileUrl));
+ new NavigatorDelegate(isInTab));
this.viewportScroller_ =
new ViewportScroller(this.viewport_, this.plugin_, window);

Powered by Google App Engine
This is Rietveld 408576698