aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/fetch.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-2/+2
|
* Add StreamConsumer wrapper and methods to responseRidhim Rastogi2019-12-031-0/+1
|
* Add simple implementation of content-security-policy on scripts / stylesMichael Howell2019-10-161-0/+2
| | | | | | | | This needs a lot more hooks before it'll actually be a good implementation, but for a start it can help get some feedback on if this is the right way to go about it. Part of servo/servo#4577
* Auto merge of #24379 - PeaceRebel:dom_response_check_opaque_filter, r=jdmbors-servo2019-10-111-8/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dom response check opaque filter <!-- Please describe your changes on the following line: --> Added setters for url_list, status, and body in `Response`. Response members are set for [Network Error](https://fetch.spec.whatwg.org/#concept-network-error), [Opaque](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque) and [Opaque-redirect](https://fetch.spec.whatwg.org/#concept-filtered-response-opaque-redirect) responses. --- <!-- 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 #24372 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes <!-- 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/24379) <!-- Reviewable:end -->
| * Set DOM response members as per the spec for opaque, opaque-redirect and ↵peacerebel2019-10-111-8/+10
| | | | | | | | | | | | error responses Signed-off-by: Bipin <peacerebel@protonmail.com>
* | Support CORS attributes for image elements.Josh Matthews2019-10-041-1/+30
|/
* Create a helper API for entering a DOM object's compartmentKamil Niski2019-06-291-9/+3
| | | | | | Revert some unnecessary changes Fix fmt errors
* Add an inCompartments config for bindingsBastien Orivel2019-05-241-3/+3
|
* Auto merge of #23351 - CYBAI:fix-modes, r=noxbors-servo2019-05-161-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix modes for fetching classic worker script and introduce parser metadata for request While reading [the spec](https://html.spec.whatwg.org/multipage/#fetch-a-classic-worker-script) for `fetch a classic worker script`, I found the `mode` and `credential-mode` are opposite to the spec. So, the first commit will fix it. Also, I found there's a `parser metadata` for `request` so I tried to introduce it in this PR as well. For WPT, I found there's a `/workers/constructors/Worker/same-origin.html` which was disabled in #3180. We pass most of the tests now. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) - [x] There are tests for these changes <!-- 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/23351) <!-- Reviewable:end -->
| * Introduce parser metadata for requestCYBAI2019-05-111-0/+1
| |
* | Update to SpiderMonkey 66.Josh Matthews2019-05-101-4/+4
|/
* Create resource timing entry for sync network fetchpylbrecht2019-05-081-1/+44
|
* Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdmbors-servo2019-04-291-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor promise compartment <!-- Please describe your changes on the following line: --> This PR adds a mechanism to verify that certain code is executed inside a ```JSAutoCompartment```, and applies this to the ```Promise::new_in_current_compartment``` constructor. r? @jdm --- <!-- 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 #23167 <!-- Either: --> - [x] These changes do not require tests because they do not change existing functionality. <!-- 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/23253) <!-- Reviewable:end -->
| * Pass InCompartment by valueAron Zwaan2019-04-251-1/+1
| |
| * Add proof parameter to Promise::new_in_current_compartmentAron Zwaan2019-04-241-2/+3
| |
* | set referrer in window.load_urlRussell Cousineau2019-04-191-5/+1
|/ | | | | | | | - this conforms to follow-hyperlinks spec step 13 - this conforms to window-open spec step 14.3 - replace uses of `referrer_url` with `referrer` - in Request class, change "no-referrer" to "" - set websocket fetch referrer to "no-referrer"
* Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-5/+7
|
* Rename Promise::new to Promise::new_in_current_compartmentAron Zwaan2019-04-031-1/+2
|
* Remove `foreign` service-workers modeCYBAI2018-12-231-1/+1
|
* refactored performance timing to align with updated specddh2018-11-201-2/+37
| | | | | | | | | | | | refactoring with ResourceFetchMetadata implemented deprecated window.timing functionality created ResourceTimingListener trait fixed w3c links in navigation timing updated include.ini to run resource timing tests on ci
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-4/+4
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-18/+18
|
* Format script componentchansuke2018-09-191-30/+52
|
* introduce "per task source" ignoring of tasksGregory Terzian2018-07-101-1/+2
|
* Add FetchCanceller RAII handleManish Goregaokar2017-11-211-0/+52
|
* Auto merge of #19274 - Manishearth:xhr-cancel, r=jdmbors-servo2017-11-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Fetch cancellation This PR implements cancellation for fetch, and uses it for XHR. This means that fetch clients can now send a message to the fetch task asking for the network request to be aborted. Previously, clients like XHR had abort functionality but would implement it by simply ignoring future messages from the network task; and would not actually cancel the network fetch. <!-- 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/19274) <!-- Reviewable:end -->
| * Fetch cancellation: Add cancel_chan to FetchContextManish Goregaokar2017-11-171-1/+1
| |
* | pass cache_mode from request to request initGregory Terzian2017-11-151-0/+1
|/
* Merge functionality of WebsocketConnect into FetchKeith Yeung2017-10-241-3/+4
|
* Merge request type and destinationKeith Yeung2017-10-231-1/+0
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-2/+2
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Make Promise::reject_error soundAnthony Ramine2017-09-221-4/+2
|
* Make Promise::resolve_native actually soundAnthony Ramine2017-09-211-3/+1
| | | | | We shouldn't have to pass a raw JSContext pointer, and to enter the promise's context's compartment by hand.
* Rename Runnable to TaskAnthony Ramine2017-09-161-1/+1
| | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`.
* Change RequestInit origin type to ImmutableOriginFausto Núñez Alberro2017-07-161-4/+1
|
* Introduce service-worker modeKeith Yeung2017-06-221-3/+10
|
* Remove all internal mutability from RequestAnthony Ramine2017-04-031-8/+7
|
* Use RootedTraceableBox for dictionaries.Ms2ger2017-02-161-1/+2
|
* Don't lose information in Fetch APIbd3392017-01-091-4/+15
| | | | Also update test expectations.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-2/+2
|
* Properly implement TaskSource for NetworkingTaskSourceKeith Yeung2016-11-111-2/+2
|
* Implement the constructor for EventSourceKeith Yeung2016-11-111-2/+3
|
* Add redirect_mode to RequestInitRaphael Nestler2016-11-081-0/+1
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-2/+2
|