The PDF Viewer will always be rendered directly from the extension,
so checking "origin == chrome-extension:/.." is not needed any more.
( since edd4bae903 )
@ -1564,9 +1564,6 @@ var DocumentOutlineView = function documentOutlineView(outline) {
@@ -1564,9 +1564,6 @@ var DocumentOutlineView = function documentOutlineView(outline) {
//(function rewriteUrlClosure() {
// // Run this code outside DOMContentLoaded to make sure that the URL
// // is rewritten as soon as possible.
// if (location.origin + '/' !== chrome.extension.getURL('/')) {
// var params = PDFView.parseQueryString(document.location.search.slice(1));
// DEFAULT_URL = params.file || DEFAULT_URL;
//
@ -1576,7 +1573,6 @@ var DocumentOutlineView = function documentOutlineView(outline) {
@@ -1576,7 +1573,6 @@ var DocumentOutlineView = function documentOutlineView(outline) {
// if (top === window) {
// chrome.runtime.sendMessage('showPageAction');
// }
// }
//})();
//#endif
@ -1594,12 +1590,6 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {
@@ -1594,12 +1590,6 @@ document.addEventListener('DOMContentLoaded', function webViewerLoad(evt) {