You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm looking to get external protocols (such as zoommtg:// or spotify://) to work the same way as they do in Chrome. This is the diff I used to test cefsimple using the recommended way via OnProtocolExecution: https://gist.github.com/r0mai/32aa17ed2d8973de4d08d495499c534e
To Reproduce
Steps to reproduce the behavior with the diff above applied:
Clicking on Open Spotify <a> button. This is a link to spotify:, which's Spotify custom scheme to open their app. You may need to use a different link if Spotify is not installed.
The confirmation dialog may appear. This step is rather flaky. Sometimes the confirmation diaglog doesn't appear at all or disappears after a fraction of a second.
Clicking on Open Spotify button in the dialog opens Spotify but also triggers an ERR_UNKNOWN_URL_SCHEME error page
Expected behavior
The confirmation dialog opens reliably.
Once the confirmation dialog is accepted or dismissed the page does not navigate away to a ERR_UNKNOWN_URL_SCHEME page.
Versions (please complete the following information):
OS: Windows 11
CEF Version: 133.4.0
Additional context
Does the problem reproduce with the cefclient or cefsimple sample application at the same version?
It does reproduce with cefsimple with the modifications linked above.
Does the problem reproduce with Google Chrome at the same version?
No it does not.
Add any other context about the problem here.
I have a local workaround in CEF that circumvents the OnProtocolExecution callback completely and behaves exactly as expected. The workaround is to remove the early return in HandleExternalProtocol() here:
Describe the bug
I'm looking to get external protocols (such as zoommtg:// or spotify://) to work the same way as they do in Chrome. This is the diff I used to test cefsimple using the recommended way via OnProtocolExecution: https://gist.github.com/r0mai/32aa17ed2d8973de4d08d495499c534e
To Reproduce
Steps to reproduce the behavior with the diff above applied:
--url
)Open Spotify <a>
button. This is a link tospotify:
, which's Spotify custom scheme to open their app. You may need to use a different link if Spotify is not installed.Expected behavior
Versions (please complete the following information):
Additional context
Does the problem reproduce with the cefclient or cefsimple sample application at the same version?
Does the problem reproduce with Google Chrome at the same version?
Add any other context about the problem here.
HandleExternalProtocol()
here:cef/libcef/browser/chrome/chrome_content_browser_client_cef.cc
Lines 508 to 511 in 8ddb1bf
The text was updated successfully, but these errors were encountered: