bors-servo
8eddb60150
Auto merge of #24137 - gterzian:fix_error_throwing_on_unknown_js_arg, r=jdm
...
Codegen: throw type error when encountering an unknown argument
<!-- Please describe your changes on the following line: -->
FIX #24130
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- 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/24137 )
<!-- Reviewable:end -->
2019-09-05 13:39:52 -04:00
Gregory Terzian
5149aefd85
codegen: throw type error when encountering an unknown argument
2019-09-05 18:29:02 +08:00
Kagami Sascha Rosylight
5695ee94a5
Add [Default] toJSON() to performance interfaces
2019-09-01 23:23:57 +09:00
Simon Sapin
98e4a53b72
Upgrade to rustc 1.39.0-nightly (f7af19c27 2019-08-15)
2019-08-23 08:23:21 +02:00
bors-servo
4275420a56
Auto merge of #23844 - saschanaz:tojson, r=Manishearth
...
Support default toJSON in WebIDL
<!-- Please describe your changes on the following line: -->
Ported related lines from gecko.
---
<!-- 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 #22781
<!-- Either: -->
- [x] There are tests for these changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- 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/23844 )
<!-- Reviewable:end -->
2019-08-20 17:27:14 -04:00
marmeladema
357b6c54ff
Use safe JSContext in callbacks
2019-08-09 00:43:29 +01:00
marmeladema
0703a1ad6d
Use safe JSContext as first argument for throw_dom_exception
2019-08-09 00:43:28 +01:00
marmeladema
6c26518f61
Remove usage of various unsafe keyword
2019-08-09 00:43:28 +01:00
marmeladema
78034a90d0
Use safe JSContext when possible in interface.rs
2019-08-09 00:43:24 +01:00
marmeladema
b18fa8b8a7
Use safe JSContext in compartments
2019-08-09 00:02:10 +01:00
marmeladema
8968286aa1
Don't mark new methods as unsafe in code generation
2019-08-09 00:02:09 +01:00
marmeladema
51e22fbc26
Remove some usage of unsafe code in Promise
2019-08-09 00:02:07 +01:00
Simon Sapin
c38c964f1b
Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)
2019-07-31 13:34:01 +02:00
Simon Sapin
0215d09ccb
Generate apis.html and css-properties.json for docs as part of crates’ build scripts
...
… rather than as an extra step after `cargo doc`.
This helps always using the correct set of CSS properties
(for layout 2013 v.s. 2020).
2019-07-30 08:37:33 +02:00
Simon Sapin
f1300bb98b
Auto-generate CSSStyleDeclaration.webidl for CSS properties based on the style crate
2019-07-29 17:37:03 +02:00
Josh Matthews
410d5bc772
Update SpiderMonkey bindings for Windows arm64 crash fix.
2019-07-25 20:23:21 -04:00
Kagami Sascha Rosylight
bf70decdd3
remove redundant extra scoping
2019-07-25 12:43:43 +09:00
Kagami Sascha Rosylight
87cc409579
use SafeJSContext
2019-07-25 11:14:21 +09:00
Kagami Sascha Rosylight
caf7a2488e
Merge branch 'master' into tojson
2019-07-25 10:09:33 +09:00
Kagami Sascha Rosylight
16b4e3446b
Support default toJSON in WebIDL
2019-07-24 22:01:55 +09:00
marmeladema
2c5d0a6ebc
Convert CGTraitInterface to use safe JSContext instead of raw JSContext
2019-07-24 08:24:50 +01:00
marmeladema
808fa65aef
Convert internal methods to handle safe JSContext instead of raw JSContext
2019-07-24 08:18:22 +01:00
marmeladema
2fb3f1f983
Callbacks now uses safe JSContext instead of raw JSContext
2019-07-24 08:18:22 +01:00
marmeladema
6e4caf1153
DefineDOMInterfaceMethod now takes a SafeJSContext instead of a JSContext
...
as first argument.
2019-07-24 08:18:22 +01:00
marmeladema
aa0e4f5c76
GetPerInterfaceObject methods now takes a SafeJSContext instead of a JSContext
...
as first argument.
2019-07-24 08:18:22 +01:00
marmeladema
0a5a9bc7bc
CreateInterfaceObjects now takes a SafeJSContext instead of a JSContext
...
as first argument.
2019-07-24 08:18:21 +01:00
marmeladema
35dc5320ab
Wrap(Global)Method now takes a SafeJSContext instead of a JSContext
...
as first argument.
2019-07-24 08:18:21 +01:00
marmeladema
cd0eb88a3e
ConstructorEnabled now takes a SafeJSContext instead of a JSContext
...
a first argument. The function cannot be made safe because of call
to unsafe function is_exposed_in.
2019-07-24 08:18:20 +01:00
sreeise
871239a3e3
Change bindings generation to make Exposed annotation aware of members/partial interfaces
2019-07-14 09:24:43 -04:00
Kagami Sascha Rosylight
01151274f1
Require default dictionary value for optional dicts
2019-07-12 12:16:09 +09:00
Kagami Sascha Rosylight
56f31c85ef
Sync WebIDL.py with gecko
2019-07-12 12:14:06 +09:00
Kagami Sascha Rosylight
40dbb2c100
Implement DOMPoint.fromPoint
2019-07-06 01:15:24 +09:00
Manish Goregaokar
3c7ceff46d
Improve support for nested dictionaries
2019-06-27 18:13:23 -07:00
Josh Matthews
63714c90fb
Upgrade to Spidermonkey 67.
2019-06-26 18:10:46 -04:00
Bastien Orivel
b7e10a8224
Make tidy happy
2019-05-25 23:23:42 +02:00
Bastien Orivel
292d468cd1
Use the newly added inCompartments option everywhere it can be
2019-05-25 17:28:07 +02:00
Bastien Orivel
0b29caa554
Add support for attributes to the inCompartments binding parameter
2019-05-25 14:43:44 +02:00
Bastien Orivel
7dbff6efb7
Add an inCompartments config for bindings
2019-05-24 23:02:38 +02:00
bors-servo
3f30720bba
Auto merge of #23363 - Darkspirit:https, r=jdm
...
More https
* Disabled unused legacy TLS.
It will be disabled for Nightly 72 or 73 in 5-7 months and ride the [trains](https://wiki.mozilla.org/Release_Management/Calendar ).
https://blog.mozilla.org/security/2018/10/15/removing-old-versions-of-tls/
* Updated MPL license in a few files.
It would be nice if a new version of https://pypi.org/project/servo_tidy/ could be released to update WebRender as well.
* Switched servo-deps.s3.amazonaws.com back to https.
This was recently regressed by 10585be25c
and fc28073dfb
.
* Made https the default protocol for address bar on desktop.
Press Ctrl+L on the Glutin port and enter `example.com`:
Servo previously assumed you meant `http://example.com/ `, now it is `https://example.com/ `.
---
- [x] `./mach build --release` does not report any errors
- [x] `./mach test-tidy` does not report any errors
<!-- 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/23363 )
<!-- Reviewable:end -->
2019-05-14 08:21:17 -04:00
Josh Matthews
4328713f71
Update to SpiderMonkey 66.
2019-05-10 22:43:43 -04:00
Jan Andre Ikenmeyer
97deef4e19
Update MPL license to https
2019-05-10 15:03:19 +02:00
Peter Hall
8bfd4dc1e2
#8539 Config preferences backend restructure
2019-03-20 15:01:26 +00:00
Anthony Ramine
4d527b20ee
Simplify RootedReference and make it specifically about slicesIt's now called DomSlice<T>.
2019-03-11 16:25:39 +01:00
Anthony Ramine
1744a42dad
Don't use RootedReference for Option<T> in codegen anymore
2019-03-10 18:24:35 +01:00
Anthony Ramine
5fe5e5d6de
Remove most RootedReference uses
...
We can replace all uses of RootedReference for Option<T> by Option::deref calls.
2019-03-10 17:51:35 +01:00
Manish Goregaokar
ce635b715b
Add support for default dict values being boolean, use in MediaStreamConstraints
2019-03-04 15:31:47 +05:30
Manish Goregaokar
caa05948bf
Add aspect/frameRate/sampleRate parameters
2019-03-04 15:31:47 +05:30
Manish Goregaokar
7b48df53a1
Update WebIDL.py to 4166cae81546
...
4166cae815
Pulls in changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1359269
2019-03-04 14:03:31 +05:30
Manish Goregaokar
5fa80a8be0
Move pref-main-thread.patch back
2019-03-02 11:43:56 +05:30
Manish Goregaokar
8f5db8a7e1
Update webidl.py from upstream
2019-03-01 16:58:46 +05:30