aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/document_loader.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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 .
* Rustfmt some of script.Ms2ger2015-11-181-2/+2
|
* Check in for task 1,4 and 5Abhishek Kumar2015-11-051-0/+1
| | | | | | | | | | | | | | | | | | | | Adding pipelineID to httpresponse message, clearner code for task1 Commit for Refactored task Unit tests Removing extra whitespaces. Removing extra whitespaces. Removing tabs whitespaces Making Code tidier. Style issues Fix Test-tidy Fixes
* Remove dead load_sync function.Eli Friedman2015-11-031-9/+1
|
* Improve spec-compliance of script loading and execution during document startupTill Schneidereit2015-10-261-21/+10
| | | | Including proper support for async and deferred scripts.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-1/+1
|
* Fix reported test-tidy errorsBrandon Fairchild2015-09-011-1/+1
| | | | | This fixes lines that were reported to have missing space after a comma.
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Splitting ScriptMsg into various enums; r=jdmRavi Shankar2015-08-151-3/+4
|
* Start reporting memory usage for Window and all nodes in all DOM trees for ↵Josh Matthews2015-08-031-3/+5
| | | | frame treese in script tasks.
* script: Fix test failures.Patrick Walton2015-07-311-3/+8
|
* net: Use a thread for each `AsyncResponseTarget` to avoid having to sendPatrick Walton2015-07-311-1/+1
| | | | trait objects across process boundaries.
* Refactor #[jstraceable] to #[derive(JSTraceable)]David Winslow2015-07-011-4/+3
| | | | fixes #6524
* Update test expectations. Mark script loads as complete when the response is ↵Josh Matthews2015-05-211-0/+1
| | | | complete.
* Make external script sources load asynchronously, yet still block further ↵Josh Matthews2015-05-201-7/+6
| | | | parsing. Hook up document loading to async networking events.
* Delay stylesheet load in test to increase confidence.Josh Matthews2015-05-111-8/+6
|
* Make stylesheets block page load.Josh Matthews2015-05-111-8/+14
|