aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/document_loader.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-1/+1
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Remove unused code from script* cratesest312019-06-021-18/+0
|
* Auto merge of #23183 - krk:fix-23144, r=asajeffreybors-servo2019-04-111-2/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace panic with warn in DocumentLoader.finish_load. Fix panic on broken script URL with an onerror handler that rewrites the document. <!-- Please describe your changes on the following line: --> --- <!-- 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 #23144 <!-- 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/23183) <!-- Reviewable:end -->
| * Replace panic with warn in DocumentLoader.finish_load.krk2019-04-091-2/+6
| | | | | | | | | | Fix panic on broken script URL with an onerror handler that rewrites the document.
* | Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-3/+3
|/
* ran ./mach fmtelias2019-03-141-3/+2
| | | | | | - removed unused import in document_loader.rs - limit unsafe block in mark_document_with_no_blocked_loads in script_thread.rs - changed name of if let value to load in Drop for LoadBlocker in document_loader.rs
* removed spurrious assert in Drop for LoadBlockerelias2019-03-131-2/+2
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-2/+2
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-3/+3
|
* Format script componentchansuke2018-09-191-17/+39
|
* implement window.stop, improve aborting document loadGregory Terzian2018-07-291-2/+15
|
* Add a topLevelDomComplete metric.Alan Jeffrey2017-12-141-0/+7
|
* Fetch cancellation: Add cancel_chan to FetchContextManish Goregaokar2017-11-171-1/+1
|
* Merge functionality of WebsocketConnect into FetchKeith Yeung2017-10-241-2/+4
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-1/+2
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-3/+3
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Decouple media load blockers from their resource URLAnthony Ramine2017-09-251-5/+5
| | | | | A media element can delay the document's load event without having a resource URL, and it can even block it while being inserted into a different document AFAIK.
* Rename Document::mut_loader to loader_mutAnthony Ramine2017-09-251-1/+1
|
* fix #18594: Unnecessarily allocating an error stringtigercosmos2017-09-231-1/+1
|
* order derivable traits listsClément DAVID2017-08-231-3/+3
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Remove mutability requirement from fetch_async_background.Josh Matthews2017-02-281-1/+1
|
* Extract layout image request into separate file. Do not block the document ↵Josh Matthews2017-02-221-0/+7
| | | | load event.
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-10/+10
|
* Lookup frames by frame_id, not pipeline_id.Alan Jeffrey2016-11-031-0/+3
|
* Remove DocumentLoader::pipeline.Ms2ger2016-10-131-5/+1
|
* Remove Document::load_async.Ms2ger2016-10-131-32/+3
|
* Privatize PendingAsyncLoad.Ms2ger2016-10-041-8/+8
|
* Remove Document::add_blocking_load.Ms2ger2016-10-041-2/+2
|
* Inline prepare_async_load.Ms2ger2016-10-041-19/+10
|
* Avoid PendingAsyncLoad in fetch_async.Ms2ger2016-10-041-7/+5
|
* Use fetch infrastructure to load external scriptsKeith Yeung2016-09-211-1/+1
|
* Add fetch_async to PendingAsyncLoad, DocumentLoader and DocumentKeith Yeung2016-09-211-2/+15
|
* Bring referrer policy delivery to <a> and <link> via rel attributeYing-Ruei Liang(KK)2016-09-201-5/+7
|
* Integrate service worker manager threadRahul Sharma2016-07-161-5/+2
|
* change load blocker drop assert to debug_assertConnor Brewster2016-06-301-1/+1
|
* Add file backend support for Blob and relatedZhen Zhang2016-06-011-15/+14
| | | | | | | | Changes include: - Add BlobImpl to Blob, and related caching mechanism - Expose ResourceThreads to document_loader, workerglobalscope, worker, and global - Fix encode_multipart_form_data - Other small fixes to accommodate the above changes
* adding interface for custom responsesRahul Sharma2016-05-201-4/+11
|
* Implement trait-based ResourceThreads and clean up related naming issuesZhen Zhang2016-05-201-5/+5
| | | | | | | | | | Changes include: - Introduce an IpcSend trait to abstract over a collection of IpcSenders - Implement ResourceThreads collection to abstract the resource-related sub threads across the component - Rename original ResourceThread and ControlMsg into an unifed CoreResource__ to accommodate above changes and avoid confusions
* Auto merge of #8454 - jdm:media, r=KiChjangbors-servo2016-05-031-1/+4
|\ | | | | | | | | | | | | | | | | | | Implement basic <media> infrastructure This gets us to the point where we can start playing with actually integrating rust-media to process the data received by the network request, as currently it's just ignored. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8454) <!-- Reviewable:end -->
| * Implement basic media resource selection and fetching.Josh Matthews2016-05-031-1/+4
| |
* | Avoid some clones.Ms2ger2016-04-291-2/+2
|/
* Add referrer policy pass-through and referrer header logicRebecca2016-04-251-4/+9
| | | | | | | add pass-through from doc to http-loader for referrer_policy, ref_URL add logic for setting referer header add script pass-through for referrer add unit tests for setting referer header
* Improve documentation for new methods.Josh Matthews2016-02-101-0/+1
|
* Make iframes block the enclosing document's load event. Fixes #6663.Josh Matthews2016-02-101-1/+52
|
* task -> threadrohan.prinja2016-01-101-8/+8
|
* Resolves #4183 - Implemementing context-based MIME type sniffingDavid Rajchenbach-Teller2015-12-311-3/+12
| | | | | The version of the standard is not finalized at the time of this writing. Specifications may be found here: https://mimesniff.spec.whatwg.org/#context-specific-sniffing .