Notification image / icon served over HTTP is not displayed
Reported by
collimar...@gmail.com,
Jan 15
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15 Steps to reproduce the problem: Send a web push notification using the push API and display the image from the service worker. When you call self.registration.showNotification include a large image and an icon in the notification. They are displayed only if they are served over HTTPS. If they are served over HTTP they are not displayed. I don't know if this is a feature or a bug. I am reporting this since the standard is not clear about that and Firefox properly displays images served over HTTP. What is the expected behavior? Chrome should display the notification large image and the notification icon even when they are served over HTTP. What went wrong? The notification large image and the notification icon are not displayed. Did this work before? N/A Does this work in other browsers? Yes Chrome version: Channel: n/a OS Version: Flash Version:
,
Jan 15
Did this work for you before? I'm not aware of such a restriction in our code, and can't reproduce it here either.
,
Jan 15
> Did this work for you before? I don't know. I have never noticed that before, however I have always used HTTPS. Today a customer asked us why his image was not displayed inside the notification and after further investigation I noticed that the HTTP version is not displayed, while the same image over HTTPS is displayed. I can reproduce that also with other images, for example: - this works: https://www.cosedigatti.it/wp-content/uploads/2017/03/ll-gatto-nero-superstizioni-e-curiosità.jpg - this does not work: http://www.cosedigatti.it/wp-content/uploads/2017/03/ll-gatto-nero-superstizioni-e-curiosità.jpg > can't reproduce it here either It should be easy to reproduce and always reproducible. Have you tried with a Push API demo? In particular you need to have some code inside the service worker which calls self.registration.showNotification(). If you are testing using new Notification() it is probably not the same...
,
Jan 16
|
|||
►
Sign in to add a comment |
|||
Comment 1 by collimar...@gmail.com
, Jan 15