If the page has insecurely loaded image, it becomes uninstallable |
||||
Issue descriptionThe following page has two cross-origin iframes, "Add To Homescreen" won't pop up dialog to install WebAPK https://xxyzzzq.github.io/sandbox/manifest/simple-app.html However, after removing the iframes, it works: https://xxyzzzq.github.io/sandbox/manifest/simple-app-without-iframes.html
,
Jan 31 2017
Yes. I did some logging and found it's related to if statement in AddToHomescreenManager::Start(), i.e. InstallableManager::IsContentSecure() returning false. So is "cross-origin iframe/cross-origin video source causing the WebApp to be non-installable" a legitimate restriction? If yes, there should be a way to for web developers work around it. For example, the developer can make the start_url page being installable, but then have a link for navigating to another URL within the scope which contains such a cross-origin iframe/video.
,
Feb 1 2017
It seems that the banner does not show for a page with cross origin frames as a result of fixing Issue 657739 "Progressive web app install banner is shown despite mixed content" Assigning to Dominick who can provide more context
,
Feb 1 2017
It's not that the page has cross origin frames that's the problem. It's not including them securely with HTTPS. It's not showing "Secure"next to the lock icon
,
Feb 1 2017
To be even more specific, loading the page, then opening up devtools shows the following in the console: Mixed Content: The page at 'https://xxyzzzq.github.io/sandbox/manifest/simple-app.html' was loaded over HTTPS, but requested an insecure image 'http://camendesign.com/code/video_for_everybody/poster.jpg'. This content should also be served over HTTPS. So it isn't even the cross-origin iframe that's the issue. It's an insecurely loaded image. ;)
,
Feb 1 2017
I see. So for the same reason as #2, should this prevent the Web App from installable?
,
Feb 1 2017
Yes. PWAs must be served over a secure connection. Having mixed content means that a site is not secure, and therefore by definition, not a PWA. This is working as intended. Sites that don't get the "Secure" chip are not secure. |
||||
►
Sign in to add a comment |
||||
Comment 1 by hanxi@chromium.org
, Jan 31 2017