aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/font_cache_thread.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-07-17 08:29:23 -0700
committerGitHub <noreply@github.com>2017-07-17 08:29:23 -0700
commit2bb4f65100ca07e9281c8ad04cd498ff1346387f (patch)
tree825ebb234e70621044f7e46c3d2719a31f93f328 /components/gfx/font_cache_thread.rs
parent38f4ae80c4b456b89ee33543c8c6699501696c9c (diff)
parent6032940fb8723d36c6f5089593d0a57f6a7efc93 (diff)
downloadservo-2bb4f65100ca07e9281c8ad04cd498ff1346387f.tar.gz
servo-2bb4f65100ca07e9281c8ad04cd498ff1346387f.zip
Auto merge of #16508 - brainlessdeveloper:fetch-set-origin, r=asajeffrey
Properly set origin of fetch requests <!-- Please describe your changes on the following line: --> These changes aim to fix #15247 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15247 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes - [x] These changes do not require tests because cors is already tested with different origins These changes require changes in tests, but I need help with that (see comments below). <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16508) <!-- Reviewable:end -->
Diffstat (limited to 'components/gfx/font_cache_thread.rs')
-rw-r--r--components/gfx/font_cache_thread.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/gfx/font_cache_thread.rs b/components/gfx/font_cache_thread.rs
index ac480902316..9b76a22fa9c 100644
--- a/components/gfx/font_cache_thread.rs
+++ b/components/gfx/font_cache_thread.rs
@@ -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
+ // We can leave origin to be set by default
.. RequestInit::default()
};