Keith Yeung
72cb856e31
Properly implement TaskSource for NetworkingTaskSource
2016-11-11 14:50:42 -08:00
bors-servo
e3f07dfa16
Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjang
...
Update CORS naming from 'CORS' to 'Cors'.
As per:
https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430]
Acronyms should be considered one word and not all caps.
<!-- 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/14156 )
<!-- Reviewable:end -->
2016-11-10 14:43:36 -06:00
Anthony Ramine
330263bf2c
Update html5ever to 0.10.1
2016-11-10 14:58:10 +01:00
Corey Farwell
bf8752ac9e
Update CORS naming from 'CORS' to 'Cors'.
...
As per:
https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430]
Acronyms should be considered one word and not all caps.
2016-11-09 18:30:30 -05:00
Simon Sapin
53b638c0e2
Update to string-cache 0.3
2016-11-03 16:23:05 +01:00
Anthony Ramine
0b3ab875f4
Remove intrinsic Root::r()
2016-10-11 19:44:32 +02:00
Anthony Ramine
d8e92bb271
Rename Reflectable::global_scope to global
2016-10-06 21:36:41 +02:00
Anthony Ramine
9c04eb60bd
Move JS evaluation functions to GlobalScope
2016-10-06 21:35:50 +02:00
Anthony Ramine
ae6af5172b
Introduce Reflectable::global_scope
2016-10-06 21:35:38 +02:00
Anthony Ramine
27f100b1d4
Introduce GlobalScope::pipeline_id
2016-10-06 20:59:13 +02:00
Anthony Ramine
fcb59d3057
Make reflect_dom_object take a &GlobalScope
2016-10-06 20:59:09 +02:00
bors-servo
b80769dbf5
Auto merge of #13571 - servo:simplify-fetching, r=nox
...
Simplify fetching code.
<!-- 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/13571 )
<!-- Reviewable:end -->
2016-10-04 08:05:44 -05:00
Ms2ger
59689475af
Avoid PendingAsyncLoad in fetch_async.
2016-10-04 11:17:05 +02:00
Ms2ger
e8e4a570ba
Remove duplicated definition of 'doc'.
...
The same line exists higher up in the function.
2016-10-04 10:32:23 +02:00
Anthony Ramine
dd5c527689
Replace ScriptHelpers by GlobalRef methods
2016-10-03 11:42:21 +02:00
Jan Zerebecki
95a7482d26
Remove same-origin-data-url flag from fetch implementation
...
The spec removed it. Check the scheme instead, data is always same origin now,
except for workers.
This also updates the comments to make step numbers match the spec.
Closes #13362
2016-10-01 00:27:03 -07:00
bors-servo
9b7708063a
Auto merge of #13397 - aochagavia:dispatch-event, r=Ms2ger
...
Return an enum instead of a boolean from dispatch_event
Fixes #13196
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13196 .
- [X] These changes do not require tests because the functionality hasn't changed
<!-- 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/13397 )
<!-- Reviewable:end -->
2016-09-26 12:09:48 -05:00
Adolfo Ochagavía
6c8bfdb774
Return an enum instead of a boolean from dispatch_event
...
Fixes #13196
2016-09-26 17:52:38 +02:00
Keith Yeung
07c9cfecec
Add FetchMetadata and update corresponding methods
2016-09-21 14:26:03 -07:00
Keith Yeung
4dcf693a75
Use fetch infrastructure to load external scripts
2016-09-21 11:50:55 -07:00
Keith Yeung
4c616dad90
Add crossorigin attribute and implement step 14 of prepare a script
...
Add WPT test for HTMLScriptElement crossOrigin IDL attribute
2016-09-21 11:50:51 -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
Arthur Marble
883902bd97
Most of the code refactoring needed to be done is done with this commit.
2016-09-18 03:41:16 -05:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Malisa Smith
faf32a7cfb
dom::Response implementation
2016-09-06 19:58:32 -07:00
Anthony Ramine
7ad51dcd7a
Update serde to 0.8 ( fixes #12659 )
2016-08-12 18:37:27 +02:00
Ms2ger
b65240d730
Stop destructuring load in HTMLScriptElement::execute().
2016-07-16 12:33:52 +02:00
Ms2ger
91b9bcd125
Turn ScriptOrigin into a struct.
2016-07-16 12:24:36 +02:00
Ms2ger
a13318fb2c
Convert script source to DOMString earlier.
2016-07-16 12:24:35 +02:00
Ms2ger
4896200467
Pull HTMLScriptElement::load inside-out.
2016-07-16 12:24:34 +02:00
Ms2ger
180569f65f
Update step numbers in HTMLScriptElement::execute().
2016-07-16 12:24:32 +02:00
Alan Jeffrey
d1e5bafef0
Replace any errors caused by content-provided URLs by warnings.
2016-07-15 09:50:40 -05:00
Ms2ger
f696f311dc
Remove TODO comment in ScriptContext::response_complete().
...
We already do what it suggests.
2016-07-14 14:07:43 +02:00
Ms2ger
7489f82a9b
Handle script encoding more in line with the specification.
2016-07-14 13:56:21 +02:00
Ms2ger
20a8c97cf0
Extract some code into a new fetch_a_classic_script function.
2016-07-14 13:40:03 +02:00
Ms2ger
1feeff2972
Update step numbers in HTMLScriptElement::prepare().
2016-07-14 13:34:19 +02:00
Ms2ger
f45b8bc53e
Remove an unnecessary variable from HTMLScriptElement::prepare().
2016-07-14 13:16:42 +02:00
Kuba Birecki
85f4da18a6
Inline DOM element creation into box expressions in components/script/dom/
2016-07-14 08:44:22 +02:00
Connor Brewster
5f7324a9a5
Make all task source runnables cancellable
...
Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable
2016-07-13 09:59:51 -06:00
Connor Brewster
315ffe7677
Make network listener runnable cancellable
2016-07-08 09:00:59 -06:00
Anthony Ramine
8ecb5962f3
Move util::str to style
2016-07-05 10:43:54 +02:00
Eduard Burtescu
0db1faf876
Switch to using the new rooted!/RootedGuard API for rooting.
2016-07-04 20:59:01 +03:00
Manish Goregaokar
d4f428ad95
Abstractify the Listener abstractions further
2016-06-10 20:53:19 +05:30
bors-servo
51d41c5161
Auto merge of #11496 - GuillaumeGomez:range, r=nox
...
Implement Range::createContextualFragment
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11496 )
<!-- Reviewable:end -->
2016-06-03 05:32:42 -05:00
Guillaume Gomez
2ef1437457
Replace HTMLScriptElement::mark_script_already_started by set_script_already_started
2016-06-03 01:31:52 +02:00
Connor Brewster
9980acf2c5
removed unused imports
2016-06-02 16:18:13 -06:00
Keith Yeung
05fc799f92
Clean up DOMManipulationTaskSource
2016-06-02 15:27:08 -04:00
Anthony Ramine
cdc7bca944
Move DOMString back to script
...
This entirely removes the 'non-geckolib' feature of the util crate.
2016-05-24 10:54:57 +02:00
Per Lundberg
2f7ed1d73e
Removed unused imports
...
This fixes #11185 .
2016-05-15 22:24:26 +03:00
Keith Yeung
33acb1937c
Remove extraneous script_chan parameter from Trusted::new
2016-04-28 10:52:44 +02:00