huhu / rust-search-extension

🦀 The ultimate search extension for Rust
https://rust.extension.sh
Apache License 2.0
1.21k stars 52 forks source link

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

Open eirnym opened 1 week ago

eirnym commented 1 week ago

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 commented 1 week ago

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

eirnym commented 1 week ago

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 commented 1 week ago

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