operasoftware / pdf.js

PDF Reader in JavaScript
Apache License 2.0
20 stars 4 forks source link

URL of PDF not visible in omnibox #11

Closed Rob--W closed 10 years ago

Rob--W commented 10 years ago

Because of https://github.com/mozilla/pdf.js/pull/3751 and the fact that Opera hides the URL on chrome-extension:// schemes, the URL of the PDF will be invisible when you pull the latest PDF version from Mozilla's master branch.

This bug originally appeared in Chrome, but it was fixed almost a half year ago (http://crbug.com/72021). Apparently, the patch has never landed in Opera though.

PS. To make it clear: This bug does not exists at the moment, but it will when you pull the latest code from Mozilla.

slawkacz commented 10 years ago

Could we just use history.push workaround?

Rob--W commented 10 years ago

history.pushState and history.replaceState cannot rewrite the scheme, host, or port. That would be a huge security issue. That having said, the issue is that the omnibox is empty, i.e. it doesn't show an URL at all:

opera

Rob--W commented 10 years ago

Solved by #4006. I will close the issue once Opera updates their PDF.js release.