Emilio Cobos Álvarez
92ba0b9c39
codegen: Don't unconditionally set non-required dictionary attributes
2016-05-13 09:42:51 +02:00
David Zbarsky
2bf016ff14
Implement GetVertexAttrib
2016-05-12 23:56:10 -07:00
bors-servo
42141870e7
Auto merge of #10714 - KiChjang:user-interaction-task, r=Ms2ger
...
Implement user interaction task source
Part of #7959 .
<!-- 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/10714 )
<!-- Reviewable:end -->
2016-05-12 09:00:14 -07:00
Emilio Cobos Álvarez
203898c941
codegen: Use the non-mangled name in set_dictionary_property
...
Fixes #11152
2016-05-12 15:39:54 +02:00
Keith Yeung
cc049515dc
Implement user interaction task source
2016-05-11 10:12:25 -04:00
Josh Matthews
293d465c59
Make debug logging for tracing JS objects more informative.
2016-05-11 08:34:48 -04:00
bors-servo
b054cb82a6
Auto merge of #9890 - AgostonSzepessy:update-webidl-tests, r=nox
...
update.sh downloads all *.py tests from mozilla central
components/script/dom/bindings/codegen/parser/update.sh downloads all *.py tests from https://dxr.mozilla.org/mozilla-central/source/dom/bindings/parser/tests
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9890 )
<!-- Reviewable:end -->
2016-05-09 05:04:57 -07:00
bors-servo
2c69278067
Auto merge of #10756 - servo:smup, r=Ms2ger
...
Update SpiderMonkey
<!-- 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/10756 )
<!-- Reviewable:end -->
2016-05-03 15:46:40 -07:00
Anthony Ramine
eb94f1a918
Update SpiderMonkey
2016-05-03 18:36:11 +02:00
bors-servo
8255e74a61
Auto merge of #10081 - jdm:interfacepref, r=nox
...
Support controlling interface and member visibility via preferences
This was easier to throw together than per-attribute/method support, and it gets rid of some nonstandard properties from our globals.
Fixes #7626 .
r? @Ms2ger
<!-- 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/10081 )
<!-- Reviewable:end -->
2016-05-02 11:35:38 -07:00
Josh Matthews
cb5bad63dc
Implement hiding of interface members via Pref annotations.
2016-05-02 14:32:56 -04:00
Josh Matthews
88059acd7e
Start generating arrays of specs for easier implementation of preference checks.
2016-05-02 14:32:55 -04:00
Josh Matthews
f4c1529f56
Forbid unconditionally-exposed interfaces that inherit from conditionally-exposed ones.
2016-05-02 14:32:53 -04:00
Zhen Zhang
0385f60310
fix docs
2016-05-02 11:17:35 +08:00
Josh Matthews
bb47f72f25
Support controlling the visibility of WebIDL interfaces via the Pref annotation.
2016-04-29 11:03:15 -04:00
Ms2ger
897be5f6ee
Reduce channel cloning.
2016-04-29 14:55:52 +02:00
Keith Yeung
33acb1937c
Remove extraneous script_chan parameter from Trusted::new
2016-04-28 10:52:44 +02:00
bors-servo
34900814fc
Auto merge of #10696 - rebstar6:referrerPolicy, r=jdm
...
Referer header
PR1 for https://github.com/servo/servo/issues/10311
This puts the code and data structures in place to set the Referer header based on the Referrer Policy for a given document. Note that document:: get_referrer_policy() always returns the 'No Referrer' option, so for now, this should have no impact on production code, and that policy requires that the Referer header is not added.
Later PRs will determine the policy and edit that get_referrer_policy() accordingly.
<!-- 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/10696 )
<!-- Reviewable:end -->
2016-04-25 13:52:01 -07: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
Anthony Ramine
4c2ca7a8c9
Refactor the call
hook on non-callback interface objects ( fixes #10744 )
...
It's now set through the intermediate InterfaceConstructorBehavior structure,
which lets us improve the abstraction around NonCallbackInterfaceObjectClass
a bit better.
When the interface's constructor is supposed to always throw, the error for
calling `Foo()` without new is "Illegal constructor.". when the interface
actually defines an interface, the error is instead
"This constructor needs to be called with `new`.".
2016-04-25 11:44:59 +02:00
Anthony Ramine
a45f117838
Make NonCallbackInterfaceObjectClass::new unsafe
2016-04-25 10:51:07 +02:00
Michael Howell
7940b22158
compositing/script: Do not dispatch the resize event when initially loading.
...
No bug report corresponds to this, but I noticed it while trying to
reduce #10593
2016-04-22 13:36:43 -07:00
bors-servo
f051028ee8
Auto merge of #9942 - jdm:load_error, r=ms2ger
...
Moving the error handling out of network loader
Rebase of #8851 . Fixes #8678 . Fixes #9944 .
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9942 )
<!-- Reviewable:end -->
2016-04-20 22:19:22 +05:30
Ravi Shankar
5e6f32a59b
Propagating the load errors from network loader
2016-04-20 12:38:35 -04:00
Ms2ger
03d4bacc05
Use num-traits in script.
2016-04-20 15:23:43 +02:00
Matt Brubeck
6882ce8ec1
Lower the logging level of a really chatty fn
2016-04-19 12:16:43 -07:00
Keith Yeung
c6b6d2c84e
Avoid generating parameter names that are Rust keywords
2016-04-17 19:37:42 -04:00
Zbynek Winkler
b6dc34862a
Use os.path.basename instead of split('/')[-1]
...
Fixes #10596 .
2016-04-17 17:37:29 +02:00
Josh Matthews
a8233a135e
Implement origin concept.
2016-04-13 10:37:55 +02:00
bors-servo
bbcbd35095
Auto merge of #10546 - stjepang:fix-typo-in-jsrs, r=Ms2ger
...
Fix typo: `cannot not outlive` -> `cannot outlive`
A `Root` cannot outlive the `RootCollection` it is recorded in.
The docs were saying otherwise.
r? @jdm
<!-- 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/10546 )
<!-- Reviewable:end -->
2016-04-13 06:30:59 +05:30
Stjepan Glavina
524bf440e7
Fix typo: cannot not outlive
-> cannot outlive
2016-04-12 19:20:44 +02:00
Arnaud Marant
315120d6e8
remove unreachable code in codegen
...
code is unreachable after return, and identical to the upper block
2016-04-12 19:10:10 +02:00
bors-servo
f0014bd9cd
Auto merge of #10224 - emilio:shader-type-validations, r=jdm
...
webgl: Add attribute validations and other nits
Fixes https://github.com/servo/servo/issues/9958
Depends on a bunch of prs, and needs a test.
r? @jdm
<!-- 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/10224 )
<!-- Reviewable:end -->
2016-04-12 05:18:49 +05:30
bors-servo
07304235cc
Auto merge of #10502 - KiChjang:fix-open-url-base, r=Ms2ger
...
Add API base url method to global objects
This adds an `api_base_url` function to global objects, which fixes `open-url-base.htm` under XMLHttpRequest.
<!-- 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/10502 )
<!-- Reviewable:end -->
2016-04-11 17:57:02 +05:30
Keith Yeung
c75079eff3
Add API base url method to global objects
2016-04-11 07:49:31 -04:00
Ms2ger
0d732ebb5f
Implement Clone for Root.
2016-04-11 10:29:13 +02:00
Joe Wilm
229b176321
Implement Worker#terminate() ( fixes #4427 ).
...
Adds support for terminating DOM workers. A closing flag was added to
WorkerGlobalScope per the spec.
2016-04-07 18:54:32 -04:00
Rahul Sharma
2caa9a2a76
refactors entities from script_thread into script_runtime
2016-04-06 12:46:49 +05:30
Paul Rouget
df6e7394d4
forcetouch events support
...
This enables Apple forcetouch DOM events. It requires the preference dom.forcetouch.enabled.
The DOM events are described here:
- https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/RespondingtoForceTouchEventsfromJavaScript.html
The Cocoa mechanism is documented here:
- https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/#//apple_ref/doc/uid/20000016-SW274
2016-04-05 18:42:28 +08:00
Emilio Cobos Álvarez
6fcc03c965
webgl: Make the api return the context limits and use them for validations
...
This allows keeping the VertexAttrib* calls asynchronous.
Another option would be to do the validation in the apply() function,
but that'd require us passing an unnecessary channel around and add
extra synchronization.
The counterpart of this is that it has to be updated when the context
changes, but that's less problem.
2016-04-03 01:21:56 +02:00
bors-servo
524a004e77
Auto merge of #10291 - jfhumann:10211, r=emilio
...
<!-- 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/10291 )
<!-- Reviewable:end -->
2016-04-01 01:57:20 +05:30
Jan-Fabian Humann
d778562844
#10211 : Stop re-exporting webrender_traits WebGL types from canvas_traits
2016-03-30 20:05:16 +02:00
Josh Matthews
042883eac2
Enable dictionaries in WebIDL sequences. Fixes #10282 .
2016-03-30 11:07:37 -04:00
faineance
418842faf9
use self.0 instead of destructing single item tuple structs
2016-03-27 11:50:08 +01:00
bors-servo
edcf24fd4d
Auto merge of #10152 - jdm:9511-rebase, r=nox
...
Fix #9511 . Export webidl enums using "pub use".
Change typedef codegen to export the underlying enum itself, rather
than an alias. Works around https://github.com/rust-lang/rust/issues/31355
Rebase of #9691 .
<!-- 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/10152 )
<!-- Reviewable:end -->
2016-03-24 10:40:44 +05:30
Ben
2477f6a363
Fix #9511 . Export webidl enums using "pub use".
...
Change typedef codegen to export the underlying enum itself, rather
than an alias. Works around https://github.com/rust-lang/rust/issues/31355
2016-03-23 12:49:34 -04:00
AgostonSzepessy
d3528ffce4
components/script/dom/bindings/codegen/parser/update.sh now downloads all
...
the latest *.py tests from
https://hg.mozilla.org/mozilla-central/archive/tip.tar.gz/dom/bindings/parser/tests/
2016-03-22 23:13:30 -04:00
bors-servo
e95368df62
Auto merge of #10096 - GuillaumeGomez:fun_to_string, r=nox
...
Make all interface objects share the same funToString
Fixes #9280
<!-- 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/10096 )
<!-- Reviewable:end -->
2016-03-21 16:50:44 +05:30
Guillaume Gomez
b6feab97e0
Make all interface objects share the same funToString
2016-03-21 11:57:48 +01:00
Ms2ger
6f679c124c
Update to Rust 2016-03-18.
2016-03-20 10:05:45 +01:00