Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Schemes dispatch inconsistent #41601

Closed
3 tasks done
jmercouris opened this issue Mar 15, 2024 · 3 comments
Closed
3 tasks done

[Bug]: Schemes dispatch inconsistent #41601

jmercouris opened this issue Mar 15, 2024 · 3 comments
Labels
27-x-y bug 🪲 has-repro-gist Issue can be reproduced with code at https://gist.github.com/

Comments

@jmercouris
Copy link

Preflight Checklist

Electron Version

27.0

What operating system are you using?

Other Linux

Operating System Version

NixOS

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I expect either BOTH windows to render, or NEITHER window to render.

Actual Behavior

One of the two windows renderers.

Testcase Gist URL

https://gist.github.com/jmercouris/5682e62e11b73c8b2e99c303d51eacd0

Additional Information

If you change the URL for both URLs to something like:

a:asdf

and

b:sdf

it will work.

@jmercouris
Copy link
Author

If setting the scheme privileges to standard is supposed to elicit this behavior, I believe it should be more clearly documented.

@jkleinsc jkleinsc added has-repro-gist Issue can be reproduced with code at https://gist.github.com/ 27-x-y labels Mar 19, 2024
@dsanders11
Copy link
Member

@jmercouris, this is expected behavior. You're registering the scheme as standard and then trying to load a URI which does not conform to the expected syntax. From the docs:

A standard scheme adheres to what RFC 3986 calls generic URI syntax. For example http and https are standard schemes, while file is not.

If you change the URl to a://foobar, which adheres to the generic URI syntax, it works fine.

@dsanders11 dsanders11 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 20, 2024
@jmercouris
Copy link
Author

However, it isn't documented clearly. I think it could be more thoroughly explained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
27-x-y bug 🪲 has-repro-gist Issue can be reproduced with code at https://gist.github.com/
Projects
None yet
Development

No branches or pull requests

3 participants