Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Clicking a desktop notification crashes the browser #10848

Closed
saskakol opened this issue Sep 7, 2017 · 15 comments
Closed

Clicking a desktop notification crashes the browser #10848

saskakol opened this issue Sep 7, 2017 · 15 comments

Comments

@saskakol
Copy link

saskakol commented Sep 7, 2017

- Did you search for similar issues before submitting this one?
Yes
- Describe the issue you encountered:
When clicking a desktop notification created by brave, the browser crashes.
- Platform (Win7, 8, 10? macOS? Linux distro?):
Windows 10
- Brave Version (revision SHA):
0.18.30 (795cc10)
- Steps to reproduce:
1. Get a desktop notification to pop up. (Can be tested using this tool)
2. Click the notification
- Actual result:
Browser crashes.
- Expected result:
The url linked to the notification opens.
- Will the steps above reproduce in a fresh profile? If not what other info can be added?
Not sure, I've only tested this using my regular setup.
- Is this an issue in the currently release
Yes
- Can this issue be consistently reproduced?
Yes

@luixxiul luixxiul added the crash label Sep 7, 2017
@LaurenWags
Copy link
Member

@LaurenWags
Copy link
Member

LaurenWags commented Sep 7, 2017

Could repro using 0.18.31 on Win10.
Could not repro on MacOS using 0.18.31.
Could not repro on Win10 using 0.18.29.

@LaurenWags LaurenWags added the bug label Sep 7, 2017
@LaurenWags
Copy link
Member

STR on Win10
Navigate to http://www.bennish.net/web-notifications.html
Click Show.
Click Allow in Notifications bar.
Click on popup notification --> Brave crashes.

@bridiver
Copy link
Collaborator

bridiver commented Sep 8, 2017

I think I have a fix, but I can't get notifications at all on win in dev

@ghost
Copy link

ghost commented Sep 10, 2017

Hi ! +1 but for me it's not when I click on the notification. It's when it appears.

Brave: 0.18.30
rev: 795cc10
Muon: 4.3.17
libchromiumcontent: 61.0.3163.71
V8: 6.1.534.31
Node.js: 7.9.0
Update Channel: dev
OS Platform: Microsoft Windows
OS Release: 10.0.15063
OS Architecture: x64

@srirambv
Copy link
Collaborator

srirambv commented Sep 11, 2017

This seems to be fixed for me on Windows for 0.18.32. Both new profile and upgrade profile doesn't crash when clicking on notification from http://www.bennish.net/web-notifications.html

@bbondy
Copy link
Member

bbondy commented Sep 11, 2017

close?

@srirambv
Copy link
Collaborator

srirambv commented Sep 11, 2017 via email

@bbondy
Copy link
Member

bbondy commented Sep 12, 2017

it'll be re-opened if checked by qa per platform doesn't pass, so I'll just mark it as closed and re-open if that's not the case. Thanks.

@kjozwiak
Copy link
Member

Using 0.18.30 rev: 795cc10, I made sure that I could reproduce the issue using the following platforms:

  • Win 10 Pro x64 - Reproduced
  • Win 7 Pro x86 - Notifications don't appear to be working
  • Ubuntu 17.04 x64 - Reproduced (segmentation fault (core dumped))
  • macOS 10.12.6 x64 - Couldn't Reproduce

Ensured that I couldn't reproduce the above issue using 0.18.32 rev: e94738d on the following platforms:

  • Win 10 Pro x64 - PASSED
  • Win 7 Pro x86 - Notifications don't appear to be working
  • Ubuntu 17.04 x64 - PASSED
  • macOS 10.12.6 x64 - PASSED

Test Cases Used:

I'm going to install Win 10 x86 tomorrow to double check and make sure notifications are working on x86.... I'm not sure why they're not working on Win 7... Maybe Win 7 doesn't support the spec?

@bsclifton
Copy link
Member

bsclifton commented Sep 12, 2017

@kjozwiak that is correct- with Electron, desktop notifications are not supported on Windows 7.

A while after our fork (Muon) diverged from Electron, support was added (see electron/electron#8384 for more info)

@NejcZdovc
Copy link
Contributor

so we could just pull in electron-archive/brightray#279 and have support for Windows 7?

@bsclifton
Copy link
Member

bsclifton commented Sep 12, 2017

@NejcZdovc I think it'll require some work to get that merged, but we totally could do it. I guess it depends on if we want to go through that effort for Windows 7
cc: @bbondy

Windows 7 mainstream support was EOLed in 2015- extended support EOL is still 3 years away
https://support.microsoft.com/en-us/help/13853/windows-lifecycle-fact-sheet

If this is something we'd like to do, we should create an issue 😄

@kjozwiak
Copy link
Member

I guess it depends on if we want to go through that effort for Windows 7

I personally don't think it's worth the effort. I just wanted to double check and make sure that it wasn't a regression. As @bsclifton mentioned above, Win 7 mainstream support ended in 2015. I'm not sure that we want to get into the habit of supporting EOL platforms.

There's also a good argument of adding it as Win 7 still has a large % of the worldwide market share [1]. However, I'm not sure how accurate these stats are and how it aligns with that we're seeing in our metrics.

[1] http://gs.statcounter.com/os-version-market-share/windows/desktop/worldwide

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.