-
Notifications
You must be signed in to change notification settings - Fork 164
Download button do not allow popup new download in separate tab #583
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
Comments
I was copletly wrong and no altDownload was used. instead the new popup was prevented by download property set to download="download" in: I'll prepare a PR to allow this disable by conf if I understand how configuration is propagated and accessed in each component. |
I don't understand what the actual issue is here. Why would you want a popup? |
yes, sorry, my request was a bit confusionary. I wrongly wrote PopUp instead of Tab.
e.g. in resume a new Tab is open ONLY if download property is not available or set to empty string. if download pros has a value then the new tab is not opened. hopefully is more clear now. |
I'm still sure whether I can follow. Do you want to open a new tab or not and why? A new tab should always be opened due to target=_blank. Whether to set target=_blank is probably debatable. |
Closing for now as the potential work item is not clear enough. |
We had an issue integrating stac-browser in the PCKE infrastructure that we have to use. Due to issue/limitation, we want to override it opening download in a separate popup but the stac-broser do not do this in a https context.
The reason of this is that stac-browser is using StreamSaver.js here to allow stream download.
IMHO this behaviour should be configurable and do not force to remain in the same page opening an hidden iframe.
The issue is reproducible in HTTPS download where the StreamSaver.js create an hidden iframe to manage the stream. if context is not secure (e.g. http download), then a new tab is open to create secure connection.
I already open a feature request to StreamStream.js to add a configuration parameter to force or not iframe/popup use:
jimmywarting/StreamSaver.js#359
The text was updated successfully, but these errors were encountered: