New issue
Advanced search Search tips

Issue 841632 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 834642
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-05-28
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

window.Notification is undefined in svg document.

Reported by paradisa...@gmail.com, May 10 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Steps to reproduce the problem:
1. Open a svg document in a tab.
2. Open console with F12.
3. window.Notification.requestPermission().then(function(result) { console.log(result)}

What is the expected behavior?
A promise is returned.

What went wrong?
Uncaught TypeError: Cannot read property 'requestPermission' of undefined
    at <anonymous>:1:21

Did this work before? Yes Many, most previous versions.

Does this work in other browsers? Yes

Chrome version: Version 66.0.3359.139 (Official Build) (64-bit)  Channel: stable
OS Version: Lubuntu 16.04.4
Flash Version:
 
NotificationTest.js
84 bytes View Download
Labels: Needs-Bisect Needs-Triage-M66
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET Needs-Feedback
Unable to reproduce the issue on reported chrome version 66.0.3359.139 using Ubuntu 14.04 with the below mentioned steps.
1. Launched chrome
2. Downloaded and opened "NotificationTest.js" in a new tab.
3. Inspected the page by clicking F12.
4. Pasted "window.Notification.requestPermission().then(function(result) { console.log(result)})" in console.
We observed a popup and an output promise as shown in the screen shot.

@Reporter: Could you please let us know if we have missed anything in the process. Any further inputs from your end may be helpful.

Thanks! 
841632.png
180 KB View Download
NextAction: 2018-05-28
Please retry javascript test when this url is opened in tab:
https://upload.wikimedia.org/wikipedia/commons/6/6c/Trajans-Column-lower-animated.svg
Issue is with page opened with svg document, not html document.

Thanks.
Trajans-Column-lower-animated.svg
140 KB Download
Project Member

Comment 5 by sheriffbot@chromium.org, May 11 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by f...@opera.com, May 11 2018

Mergedinto: 834642
Status: Duplicate (was: Unconfirmed)
Duplicate of  issue 834642 . Should be fixed from M67.
The NextAction date has arrived: 2018-05-28

Sign in to add a comment