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

file:// URLs are not vaild, resulting in a warning #290

Open
eirnym opened this issue Sep 28, 2024 · 5 comments
Open

file:// URLs are not vaild, resulting in a warning #290

eirnym opened this issue Sep 28, 2024 · 5 comments

Comments

@eirnym
Copy link

eirnym commented Sep 28, 2024

it's unfortunate to see Error: URL constructor: is not a valid URL. every time I open a local file. if URL can't be constructed with this scheme, please hide warning, it's really annoying

@Folyd
Copy link
Member

Folyd commented Sep 29, 2024

Hi thanks for the feedback. Can you give a screenshot? Which platform do you use?

@eirnym
Copy link
Author

eirnym commented Sep 29, 2024

I use Firefox on macOS if OS important. I found that Chromium-based browsers don't show most warnings, providing false sense of correctness.

Also I actively use dev tools and edit css there

@eirnym
Copy link
Author

eirnym commented Sep 29, 2024

more information which could help:

While having style editor of an offline page (file:// protocol) open, I've opened a console below (!), style editor and inside styles I've introduced a mistake, which triggered the error, as you can see on a screenshot.

I guess source of the error is following: plugin parses everything on a screen and tries to guess if this a proper page to be applied to, and it parses devtools window as well.

Zrzut ekranu 2024-09-29 o 17 45 08

@Folyd
Copy link
Member

Folyd commented Oct 16, 2024

Yes, Firefox doesn't allow file:// protocol, please see the FAQ: https://rust.extension.sh/faq/#why-local-file-rust-doc-not-work-properly-on-firefox

@Folyd Folyd closed this as completed Oct 16, 2024
@eirnym
Copy link
Author

eirnym commented Oct 16, 2024

@Folyd this is another issue.

Please, reopen it. I'd like warning to be removed entirely

@Folyd Folyd reopened this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants