Notification URL of specific length wraps weirdly when notification is displayed
Reported by
ja...@onesignal.com,
Jan 11 2017
|
|
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36 Steps to reproduce the problem: 1. Visit https://hackerbay-iiieb-development.onesignal.com 2. Run this code in the DevTools Console: if (Notification.permission !== "granted") { alert("Please grant notification permissions when prompted."); Notification.requestPermission(function(permission) { if (permission === "granted") { doStuff(); } else { alert("Please make sure you're not using Incognito mode or that your profile is not set to block notification permissions.") } }); } else { doStuff(); } function doStuff() { new Notification("Title", { body: "Some content here." }); } 3. Observe the notification URL looks like something: http://i.imgur.com/kn1x4xE.png. Note: This also works with the URL https://hackerbay-web-development.onesignal.com, maybe because one 'w' character is roughly equal to the spacing of three 'i' characters. What is the expected behavior? Notification URL should look like: http://i.imgur.com/JyYrpQ4.png for long origins. What went wrong? Notification URL of a specific length is wrapped on both sides ...fragment... and padded with spaces on the right. Did this work before? N/A Chrome version: 55.0.2883.95 Channel: stable OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 24.0 r0 You can create any random subdomain on OneSignal by visiting anything-you-want.onesignal.com and run the same code. Here is an album of some tests: http://imgur.com/a/BUL2L.
,
Jan 13 2017
Are native web push notifications on Mac OS X able to display big picture (chrome 56) and persist a notification indefinitely (requireInteraction)? Most Mac notifications disappear after X seconds for example. |
|
►
Sign in to add a comment |
|
Comment 1 by shrike@chromium.org
, Jan 13 2017