Commit graph

25052 commits

Author SHA1 Message Date
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
Erik Funder Carstensen
85ac792fc0 Properly implement HTMLProgressElement DOM code
Signed-off-by: Erik Funder Carstensen <fundererik@gmail.com>
2021-03-31 19:03:37 +02: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
Mihai Alexandru Michis
e9c1d490a9 style: Fix lint error in matching.rs a=lint-fix
CLOSED TREE
2021-02-26 16:44:05 +01:00
Sylvestre Ledru
a95ce79554 style: Fix clippy warnings
Depends on D96634

Differential Revision: https://phabricator.services.mozilla.com/D96636
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
191d5226a3 style: Implement complex :not().
This fixes the failures in bug 1671573 and just works thanks to the
invalidation improvements I did for :is / :where.

Added a couple tests for invalidation which is the tricky bit. 001 is a
very straight-forward test, 002 is the :is test but with :is() replaced
by double-:not().

This also fixes default namespaces inside :is() / :where(), which are
supposed to get ignored, but aren't. Added tests for that and for the
pre-existing :not() behavior which Chrome doesn't quite get right.

Differential Revision: https://phabricator.services.mozilla.com/D94142
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
7e6d70f314 style: Allow :is() and :where() to have better error recovery.
Adjust is-where-parsing.html to work with both the new and old behavior,
and add a test for the new behavior.

Depends on D90049

Differential Revision: https://phabricator.services.mozilla.com/D90050
2021-02-26 16:44:05 +01:00
Mihai Alexandru Michis
b1dbbb2969 Backed out 2 changesets (bug 1664718) for causing wpt and bc failures.
CLOSED TREE

Backed out changeset 62e71d3b6b32 (bug 1664718)
Backed out changeset c8a8791a26ed (bug 1664718)
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
6728aad0c6 style: Fix selectors unit tests.
MANUAL PUSH: Fix BR bustage. CLOSED TREE
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
5980525139 style: Allow :is() and :where() to have better error recovery.
Adjust is-where-parsing.html to work with both the new and old behavior,
and add a test for the new behavior.

Depends on D90049

Differential Revision: https://phabricator.services.mozilla.com/D90050
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
89c2e39dd9 style: Minor cleanup: Use shorthand initialization in selectors.
Differential Revision: https://phabricator.services.mozilla.com/D90049
2021-02-26 16:44:05 +01:00
Masatoshi Kimura
639bada63a style: Replace :-moz-native-anonymous-no-specificity with :where(:-moz-native-anonymous).
Differential Revision: https://phabricator.services.mozilla.com/D88255
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
9ce200a924 style: Implement :-moz-any() as an alias of :is().
This is strictly better and more flexible, but can change specificity so
have a pref in case it causes trouble. I doubt it will though, the
specificity rules of :is() make more sense, and my gut feeling is that
:-moz-any is not very used on the wild.

Make it early-beta-or-earlier for now to minimize risk, once this is on
nightly for a bit we can enable it everywhere.

Differential Revision: https://phabricator.services.mozilla.com/D86696
2021-02-26 16:44:05 +01:00
Emilio Cobos Álvarez
919ff06445 style: Fix Gecko nightly warning. 2021-02-26 16:44:05 +01:00