Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Spotify links crash the browser
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Spotify links crash the browser
Hello,
I've found out that any Spotify link i try to open, crashes the browser.
Tried with the SimpleBrowser demo.
Example link :
https://open.spotify.com/episode/0PtNt3U5pawDwslM0IUTAW?si=EbfuO1ctR2SC4UiJix3KIQ
As soon as open it, app crashes and closes.
Any hints ?
I've found out that any Spotify link i try to open, crashes the browser.
Tried with the SimpleBrowser demo.
Example link :
https://open.spotify.com/episode/0PtNt3U5pawDwslM0IUTAW?si=EbfuO1ctR2SC4UiJix3KIQ
As soon as open it, app crashes and closes.
Any hints ?
- salvadordf
- Posts: 4578
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Spotify links crash the browser
I can reproduce the error too with the official CEF sample application (cefclient).
I'll get a trace and report it.
Edit : This is the issue in the CEF project https://bitbucket.org/chromiumembedded/cef/issues/3105/cefclient-crashes-loading-a-page-with-drm

I'll get a trace and report it.
Edit : This is the issue in the CEF project https://bitbucket.org/chromiumembedded/cef/issues/3105/cefclient-crashes-loading-a-page-with-drm
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Re: Spotify links crash the browser
Thanks for the feedback Salvador ! So, let's wait a fix 

- salvadordf
- Posts: 4578
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Spotify links crash the browser
The CEF project maintainer fixed this issue in CEF 90 which will be released in a few days.
This issue was caused by a request with this URI :
Workaround :
You can avoid this issue in CEF 89 by using the TChromium.OnBeforeResourceLoad event and setting Result to RV_CANCEL when request.url starts with "spotify" but to be safe I would cancel all requests that don't start with a known scheme like HTTP or FTP.
This issue was caused by a request with this URI :
Code: Select all
spotify://episode/0PtNt3U5pawDwslM0IUTAW?si=EbfuO1ctR2SC4UiJix3KIQ
You can avoid this issue in CEF 89 by using the TChromium.OnBeforeResourceLoad event and setting Result to RV_CANCEL when request.url starts with "spotify" but to be safe I would cancel all requests that don't start with a known scheme like HTTP or FTP.
-
- Posts: 513
- Joined: Thu Aug 10, 2017 12:40 pm
Re: Spotify links crash the browser
That's great news ! Looking forward to the update 

Re: Spotify links crash the browser
Branch Date Release Branch Chromium Version
Apr 2021 4472 91 91
-------
If this version repair the error? When cef4 will build on this version?
Thank you very much!
Apr 2021 4472 91 91
-------
If this version repair the error? When cef4 will build on this version?
Thank you very much!
- salvadordf
- Posts: 4578
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Spotify links crash the browser
That issue is fixed since April 18, 2021 when CEF4Delphi was updated to CEF 90 with the 4430 branch.
The version you mention uses a branch in development state and CEF4Delphi is not using it yet.
The CEF branch 4470 uses Chromium 91 which will be considered stable in a few weeks but you don't have to use that branch to fix this issue.
Just download the latest CEF4Delphi version from GitHub now.
The version you mention uses a branch in development state and CEF4Delphi is not using it yet.
The CEF branch 4470 uses Chromium 91 which will be considered stable in a few weeks but you don't have to use that branch to fix this issue.
Just download the latest CEF4Delphi version from GitHub now.
Re: Spotify links crash the browser
Thanks!
I visited chromium website and found that 90.0.4430.96 is available. Is this will be updated in the future?
I visited chromium website and found that 90.0.4430.96 is available. Is this will be updated in the future?
- salvadordf
- Posts: 4578
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Spotify links crash the browser
CEF uses Chromium 90.0.4430.93 at this moment.
CEF4Delphi is just a CEF wrapper and it can only use the Chromium version used by CEF at each moment.
CEF4Delphi is just a CEF wrapper and it can only use the Chromium version used by CEF at each moment.
Re: Spotify links crash the browser
Thanks!
Where can I see the cef version such as 90.6.4 in this websit(https://bitbucket.org/chromiumembedded/cef/src/4430/)?.
Where can I see the cef version such as 90.6.4 in this websit(https://bitbucket.org/chromiumembedded/cef/src/4430/)?.