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
Properly set origin of fetch requests #16508
Changes from all commits
File filter...
Jump to…
| @@ -216,7 +216,8 @@ impl FontCache { | ||
| url: url.clone(), | ||
| type_: RequestType::Font, | ||
| destination: Destination::Font, | ||
| origin: url.clone(), | ||
| // TODO: Add a proper origin - Can't import GlobalScope from gfx | ||
KiChjang
Member
|
||
| // We can leave origin to be set by default | ||
| .. RequestInit::default() | ||
| }; | ||
|
|
||
Help needed for the following:
I can't
use script::dom::globalscope::GlobalScope;from here, becausedomis private. Also I can't build the origin from anywhere else (I think?).Similarly, in the tests for http_loader.rs I can't import
GlobalScope, and I see no way I can mock an origin without access todom.