Josh Matthews
f0f43ad9b0
Remove mutability requirement from fetch_async_background.
2017-02-28 10:23:23 -05:00
Josh Matthews
b363371339
Extract layout image request into separate file. Do not block the document load event.
2017-02-22 14:19:35 -05:00
Emilio Cobos Álvarez
913c874cb5
Urlmageddon: Use refcounted urls more often.
2016-11-17 18:34:23 +01:00
Alan Jeffrey
f3993d99b9
Lookup frames by frame_id, not pipeline_id.
2016-11-03 15:39:51 -05:00
Ms2ger
d0323e3a50
Remove DocumentLoader::pipeline.
2016-10-13 11:10:39 +02:00
Ms2ger
7b905a5590
Remove Document::load_async.
2016-10-13 11:10:32 +02:00
Ms2ger
1a2db0b327
Privatize PendingAsyncLoad.
2016-10-04 13:24:03 +02:00
Ms2ger
aa48ec7628
Remove Document::add_blocking_load.
2016-10-04 13:11:03 +02:00
Ms2ger
e4c0007d04
Inline prepare_async_load.
2016-10-04 13:04:09 +02:00
Ms2ger
59689475af
Avoid PendingAsyncLoad in fetch_async.
2016-10-04 11:17:05 +02:00
Keith Yeung
4dcf693a75
Use fetch infrastructure to load external scripts
2016-09-21 11:50:55 -07:00
Keith Yeung
d4816762fa
Add fetch_async to PendingAsyncLoad, DocumentLoader and Document
2016-09-21 11:50:54 -07:00
Ying-Ruei Liang(KK)
55a2270e16
Bring referrer policy delivery to <a> and <link> via rel attribute
2016-09-20 21:17:37 +08:00
Rahul Sharma
1e6293ea1d
Integrate service worker manager thread
2016-07-16 23:29:44 +05:30
Connor Brewster
5060c13493
change load blocker drop assert to debug_assert
2016-06-30 18:13:01 -06:00
Zhen Zhang
43ad4ba585
Add file backend support for Blob and related
...
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
2016-06-01 09:47:07 +08:00
Rahul Sharma
3766cd1673
adding interface for custom responses
2016-05-20 12:11:56 +05:30
Zhen Zhang
a51db4cfa8
Implement trait-based ResourceThreads and clean up related naming issues
...
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
2016-05-20 08:00:16 +08:00
bors-servo
f9d9cd3aae
Auto merge of #8454 - jdm:media, r=KiChjang
...
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 -->
2016-05-03 16:42:46 -07:00
Josh Matthews
eae27adc4a
Implement basic media resource selection and fetching.
2016-05-03 16:25:24 -04:00
Ms2ger
703d018f23
Avoid some clones.
2016-04-29 14:55:49 +02:00
Rebecca
526525b835
Add referrer policy pass-through and referrer header logic
...
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
2016-04-25 16:41:06 -04:00
Josh Matthews
047bb060c1
Improve documentation for new methods.
2016-02-10 09:20:06 -05:00
Josh Matthews
e9b98ad5fa
Make iframes block the enclosing document's load event. Fixes #6663 .
2016-02-10 09:20:00 -05:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
David Rajchenbach-Teller
1e81b8c133
Resolves #4183 - Implemementing context-based MIME type sniffing
...
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 .
2015-12-31 07:45:03 -05:00
Ms2ger
0c61be7a57
Rustfmt some of script.
2015-11-18 11:14:05 +01:00
Abhishek Kumar
b7de946205
Check in for task 1,4 and 5
...
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
2015-11-05 00:17:24 -05:00
Eli Friedman
193d8f2dba
Remove dead load_sync function.
2015-11-03 12:01:09 -08:00
Till Schneidereit
a0c5d47910
Improve spec-compliance of script loading and execution during document startup
...
Including proper support for async and deferred scripts.
2015-10-26 21:35:09 +01:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Brandon Fairchild
d61a6e2161
Fix reported test-tidy errors
...
This fixes lines that were reported to have missing
space after a comma.
2015-09-01 16:30:42 -04:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Ravi Shankar
89153116fb
Splitting ScriptMsg into various enums; r=jdm
2015-08-15 02:00:48 +05:30
Josh Matthews
8620fe5995
Start reporting memory usage for Window and all nodes in all DOM trees for frame treese in script tasks.
2015-08-03 23:05:00 -04:00
Patrick Walton
61e3a9545e
script: Fix test failures.
2015-07-31 15:03:39 -07:00
Patrick Walton
44d13f7fd4
net: Use a thread for each AsyncResponseTarget
to avoid having to send
...
trait objects across process boundaries.
2015-07-31 11:27:49 -07:00
David Winslow
4cf46bff2d
Refactor #[jstraceable] to #[derive(JSTraceable)]
...
fixes #6524
2015-07-01 18:27:06 -04:00
Josh Matthews
ef8a127156
Update test expectations. Mark script loads as complete when the response is complete.
2015-05-21 09:53:19 -04:00
Josh Matthews
8082df7d0d
Make external script sources load asynchronously, yet still block further parsing. Hook up document loading to async networking events.
2015-05-20 14:22:09 -04:00
Josh Matthews
a1ae53a230
Delay stylesheet load in test to increase confidence.
2015-05-11 15:35:10 -04:00
Josh Matthews
32a89c9455
Make stylesheets block page load.
2015-05-11 13:41:52 -04:00
Josh Matthews
7f0706ed42
Implement a DocumentLoader type that tracks pending loads and notifies the script task when the queue is empty. Dispatch the document load event based on the DocumentLoader's notification.
2015-05-11 13:41:51 -04:00