-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable/handle chrome PDF viewer link/anchor #4915
Comments
@rogerwang Please, could you confirm? |
@rogerwang I'm even thinking about the possibility to intercept url change / link navigation e allow it only if this match a custom rule (url pattern for ex.). Of course the best solution would be to sandbox everything and forward navigation outside of app, this is important because it's dangerous to allow to navigate inside app and anyway navigation inside the app will "break" the user experience inside the app. |
Bump. |
Bump |
@ghostoy @rogerwang |
hi @rogerwang any news about that? |
I'll try to fix it before the next release. Currently busy with GN On Sun, Jun 12, 2016, 4:55 PM AndryBray notifications@github.com wrote:
|
I fixed it in git. It will open a mini browser for links in PDF. I'll add a custom handler for this later. |
@rogerwang thank you. |
@rogerwang thank you! is this applied even on 0.14? |
Yeah. It was applied to 0.14 branch. Do you need a build? On Tue, Jun 14, 2016 at 4:04 PM AndryBray notifications@github.com wrote:
|
Yes, I will use it for XP and MacOS 10.6.x |
@rogerwang I've tested and it works well. thank you |
@rogerwang on v 0.16 (latest at the moment of writing) there is a regression with mini-browser window opening. If I try to open a link from a pdf embed view I see a chrome window with "chrome-extension://invalid" url loaded. |
what do you mean by "pdf embed view"? it works for me. |
I mean when you include a pdf inside the |
Could you please submit a full case? It works well when I was testing a iframe with src pointing to a local pdf file. |
Ok, I just realized that it's not a "real link" but simple text starting with "www." so I suppose chrome is trying to recognize it as a link. Test case: |
@rogerwang please, could you confirm my last post? Just to know if it's something wrong with my pdfs. Thank you |
I tried building a PDF as you said, but it still works for me. |
I don't see any error. I test on Windows with nwjs-sdk-v0.24.4 according to the steps in #4915 (comment): |
close until there is more information |
I have a problem with PDF viewer and link click event:
if I try to load some pdf as preview (iframe or embed) and there is some link inside the document, when I click the link I loose the main viewport of app because the browser is loading the linked url/resource.
Usually I use a kind of sandbox for iframe (html based content) which scans for every or href and handles onclick event bypassing it to Shell api openExternal (with OS browser).
How can I accomplish to this sandox with PDF viewer?
The text was updated successfully, but these errors were encountered: