Commit graph

24853 commits

Author SHA1 Message Date
bors-servo
50f8e664ef
Auto merge of #28388 - zhengrenzhe:master, r=jdm
support Apple ARM base mac build and run

<!-- Please describe your changes on the following line: -->
i fixed build errors on apple m1 macbook, build and running both successful, but because of this issue: https://github.com/servo/surfman/issues/226, the surfman version must be updated locally by cargo [patch.crates-io]. so this pr is waiting for surfman release new version, and related dependencies update the surfman version.

@jdm

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] 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. -->
2021-04-24 14:31:13 -04:00
zhengrenzhe
7aca943d5b feat: fix build error on apple m1 2021-04-24 19:15:59 +08:00
Bastien Orivel
20a3a09b54 Bump selectors
Releasing this will help updating dependencies in crates that depend on
selectors.
2021-04-21 18:50:20 +02:00
bors-servo
3cd1121a7d
Auto merge of #28373 - ghostd:fix-port-block-10080, r=jdm
Block port 10080

See https://github.com/whatwg/fetch/issues/1191

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [ ] 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. -->
2021-04-20 11:08:49 -04:00
sagudev
fd3bbc7ec9 Fix error 2021-04-17 18:19:02 +02:00
sagudev
13095741c5 Fix for bindgen 2021-04-17 17:53:11 +02:00
sagu
9b8e9d5d63
Update Cargo.toml 2021-04-17 17:06:41 +02:00
sagu
bd918238e5
Merge branch 'master' into patch-2 2021-04-17 17:05:10 +02:00
sagudev
13e9785f1c Do not use deprecated bindgen methods 2021-04-17 07:11:25 +02:00
sagu
68b10e27cc
Update Cargo.toml 2021-04-17 07:05:56 +02:00
Vincent Ricard
3148b8553e Block port 10080
See https://github.com/whatwg/fetch/issues/1191
2021-04-16 18:05:46 +02:00
sagudev
19be2cd3fa Update mozjs to 88 2021-04-14 09:20:58 +02:00
Josh Matthews
3dd34f0b7b
Compile fix. 2021-04-07 16:07:37 -04:00
Josh Matthews
7fae9097a1
Try to work around windows unit test failures. 2021-04-07 09:20:59 -04:00
Josh Matthews
8ffacd7e41
Disasable net unit test on windows. 2021-04-04 10:23:35 -04:00
bors-servo
c52d84dafa
Auto merge of #28300 - sagudev:master, r=jdm
Update mozjs to 87

Depends on: https://github.com/servo/rust-mozjs/pull/540
2021-03-30 07:38:57 -04:00
sagu
3ef3ee5a62
Fix warning 2021-03-30 12:09:18 +02:00
sagudev
5f91ab07da fmt 2021-03-30 11:38:33 +02:00
sagu
61d7775673
Update imagedata.rs 2021-03-30 06:21:05 +02:00
bors-servo
94e337f22f
Auto merge of #28308 - philip-lamb:phil-ime-textentry, r=jdm
Improve IME messaging to embedder with insertion point index and mult…

…iline flag.

<!-- Please describe your changes on the following line: -->
This improves handling of IME requests in the embedder by passing the location of the insertion point along with the current text, and a boolean flag 'multiline' (true for HTML textarea, false otherwise) which allows the embedder to be more clever about handling of the 'enter' or 'return' keys.

Tested and working in an embedding example.

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] 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. -->
2021-03-29 23:10:17 -04:00
Vincent Ricard
2e7be21ee1 Add port blocking for tftp, netbios-ns, snmp, rtsp, h323gatestat, h323hostcall, pptp, sane-port
Spec update: https://github.com/whatwg/fetch/pull/1148
2021-03-29 20:30:31 +02:00
sagudev
b3126eaa3f Update mozjs 2021-03-29 19:53:54 +02:00
bors-servo
970a3b60da
Auto merge of #27851 - ghostd:fix-nosniff, r=jdm
Fix some 'nosniff' tests

This PR implements some standard function to work with headers, hence it fixes some 'nosniff' test/

I create a PR as Draft because i have some questions:
* i added the code info the `net` module instead of `script::dom::headers` to avoid some cyclic dependencies... but i'm not sure about this choice. Is there another potential location to put this code?
* i used String object to match the spectification (it states to collect sequences of "code points", but some code use byte arrays. Should i change the code to work with bytes?

---
<!-- 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
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [x] 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. -->
2021-03-29 01:42:33 -04:00
Philip Lamb
b8a74e89cf Improve IME messaging to embedder with insertion point index and multiline flag. 2021-03-29 17:55:54 +13:00
sagudev
b921cd14df Fix errors 2021-03-19 07:01:46 +01:00
sagudev
3ad28f6714 Update mozjs 2021-03-18 17:27:51 +01:00
sagudev
c8921e1c6c Update source repo 2021-03-16 07:21:16 +01:00
sagu
b0b2acb8f8
Merge branch 'master' into master 2021-03-15 07:04:48 +01:00
bors-servo
d467ce715b
Auto merge of #28271 - servo:jdm-patch-46, r=jdm
Disable hanging hang monitor tests on windows

This avoids long-running builds due to #28270.
2021-03-14 23:46:35 -04:00
Josh Matthews
9e1f6ee332
Ignore warnings. 2021-03-14 22:24:48 -04:00
bors-servo
68e200a581
Auto merge of #28236 - pecastro:winit_0_24_surfman, r=jdm
Winit 0.24.0 and surfman

<!-- Please describe your changes on the following line: -->
I've updated Servo to Winit 0.24.0 based on the previous work in #26394.
I've basically rebased master onto his jdm/winit branch which had the bulk of the work and I brute forced it till it built correcting things here and there as I could.
The build reports a few warnings:

```
00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged
00:04:59 Mar 03 10:20:06    --> ports/winit/headed_window.rs:753:12
00:04:59 Mar 03 10:20:06     |
00:04:59 Mar 03 10:20:06 753 |         if input.modifiers.shift() {
00:04:59 Mar 03 10:20:06     |            ^^^^^^^^^^^^^^^
00:04:59 Mar 03 10:20:06     |
00:04:59 Mar 03 10:20:06     = note: `#[warn(deprecated)]` on by default
00:04:59 Mar 03 10:20:06
00:04:59 Mar 03 10:20:06 warning: use of deprecated field `winit::event::KeyboardInput::modifiers`: Deprecated in favor of WindowEvent::ModifiersChanged
00:04:59 Mar 03 10:20:06    --> ports/winit/keyutils.rs:263:34
00:04:59 Mar 03 10:20:06     |
00:04:59 Mar 03 10:20:06 263 |         modifiers: get_modifiers(input.modifiers),
00:04:59 Mar 03 10:20:06     |                                  ^^^^^^^^^^^^^^^
00:04:59 Mar 03 10:20:06
00:07:06 Mar 03 10:22:13 warning: 2 warnings emitted
00:07:06 Mar 03 10:22:13
00:07:06 Mar 03 10:22:13    Completed servo v0.0.1 bin "servo" in 132.7s
00:07:06 Mar 03 10:22:13     Finished dev [unoptimized + debuginfo] target(s) in 6m 59s
00:07:08 Mar 03 10:22:15 [Warning] Could not generate notification!
00:07:08 Mar 03 10:22:15 Build Completed in 0:07:01
```

And there are a few commits namely b27e09e009 which I'm not entirely sure of.
I've intentionally left the surfman patch in Cargo.toml so someone else can validate this branch.
Unit tests and smoke test run successfully.
Servo runs but I'm not familiar enough with it to validate how well it does. The window opens and content loads though.

My Rust foo is not great and I could use some help fixing those warnings.

Regards,

PECastro

---
<!-- 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
A few warnings ...
- [x ] `./mach test-tidy` does not report any errors
A few duplicate version statements but no errors.
- [x] These changes fix #26394
- [x] There are tests for these changes
-  [ ] 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. -->
2021-03-14 19:26:04 -04:00
Josh Matthews
129c583799 Update to 3/12 rustc nightly. 2021-03-14 13:24:21 -04:00
sagudev
d8c398c457 fmt 2021-03-13 13:00:50 +01:00
sagudev
d424eaae91 Fix ModuleEvaluate 2021-03-13 12:56:41 +01:00
Josh Matthews
2e35fc5cb9
Disable hanging hang monitor tests on windows 2021-03-12 16:49:36 -05:00
sagudev
a265a2a7e6 Formating 2021-03-12 18:30:13 +01:00
sagudev
425057c432 Fix errors 2021-03-12 16:26:27 +01:00
sagudev
05d5eff26c Update mozjs 2021-03-12 07:37:31 +01:00
bors-servo
5dd0cba51d
Auto merge of #27865 - servo:github-actions-dev, r=jdm
Add Github Actions workflow for mac/linux/windows builds
2021-03-11 21:08:05 -05:00
Vincent Ricard
3b3824078d Fix some 'nosniff' tests 2021-03-08 21:24:08 +01:00
delosrogers
4ebbec0bb5 Add space between parameters
Signed-off-by: Mattias de los Rios Rogers <delosrogers@gmail.com>
2021-03-07 14:19:28 -08:00
delosrogers
b1d72f65ee Use swap() instead of load()/store() in get_and_reset_text_shaping_performance_counter()
Signed-off-by: Mattias de los Rios Rogers <delosrogers@gmail.com>
2021-03-07 14:07:49 -08:00
Josh Matthews
49ddc5ea3d Only request synchronous repaint when a resize will actually occur. 2021-03-05 20:00:30 -05:00
Josh Matthews
10231573be Update to winit 0.24.
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: Paulo E. Castro <pecastro@wormholenet.com>
2021-03-05 20:00:30 -05:00
Emilio Cobos Álvarez
fd51cddf96 Keep not parsing conic gradient, update WPT expectations. 2021-02-27 05:58:37 +01:00
Emilio Cobos Álvarez
aa4d2b0b0d selectors: Cherry-pick some fixes that got lost. 2021-02-27 05:58:37 +01:00
Emilio Cobos Álvarez
31e8e418ea Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
Emilio Cobos Álvarez
5158f65810
Revert euclid update. 2021-02-26 17:15:33 +01:00
Sylvestre Ledru
3bcde6fd91
style: Fix clippy warnings
Depends on D96634

Differential Revision: https://phabricator.services.mozilla.com/D96636
2021-02-26 17:15:33 +01:00
Emilio Cobos Álvarez
484cf5771b style: Avoid some allocations in selector serialization.
The allocations in display_to_css_identifier show up in the profiles of
bug 1675628.

Differential Revision: https://phabricator.services.mozilla.com/D97856
2021-02-26 16:44:05 +01:00