aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix(script): the condition for exposing a cross-origin setter is ↵yvt2021-08-171-6/+0
| | | | | | | | | | | | | | | | | | `CrossOriginWritable`, not `CrossOriginReadable` The expression `crossOriginIframe.contentWindow.location.href = "new href"` takes the following steps: (1) Get the setter for `href` by invoking `[[GetOwnProperty]]` on `crossOriginIframe.contentWindow. location`. (2) Call the setter, passing `crossOriginIframe. contentWindow` and `"new href"`. Since the target `Location` is cross origin, getting the setter succeeds only if the `CrossOriginWritable` extended attribute is present on the `href` attribute, and it's present. However, instead of `CrossOriginWritable`, `CrossOriginReadable` was checked mistakenly. Since `Location#href` has `CrossOriginWritable` but not `CrossOriginReadable`, this bug rendered `Location#href` inaccessible from a cross-origin document.
* test: update expectationsyvt2021-08-074-14/+1
|
* test: update expectationsyvt2021-07-177-108/+0
| | | | | | | | | | | | | No improvements are seen in `/html/browsers/origin/cross-origin- objects/cross-origin-objects.html` because each included test case tests both `Location` and `WindowProxy`, the latter of which isn't implemented correctly yet. In fact, the first test case "Basic sanity- checking" passes if it's reduced to only check `Location` as follows: addTest(function(win) { assert_equals(B.location.pathname, path, "location.href works same-origin"); assert_throws("SecurityError", function() { win.location.pathname; }, "location.pathname throws cross-origin"); }, "Basic sanity-checking");
* test: re-enable ↵yvt2021-07-161-2/+222
| | | | `/html/browsers/origin/cross-origin-objects/cross-origin-objects.html`
* fix(script): Set `DedicatedWorkerGlobalScope`'s origin correctlyyvt2021-07-134-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model> > 10.2.4 Processing model > > When a user agent is to run a worker for a script with `Worker` or > `SharedWorker` object `worker`, [...] it must run the following steps. > > [...] > > 8. Set up a worker environment settings object with `realm execution > context` and `outside settings`, and let `inside settings` be the > result. <https://html.spec.whatwg.org/multipage/workers.html#script-settings-for-workers> > To **set up a worker environment settings object**, given a JavaScript > execution context `execution context` and environment settings object > `outside settings`: > > 1. Let `inherited origin` be `outside settings`'s origin. > > 2. Let `realm` be the value of `execution context`'s Realm component. > > 3. Let `worker global scope` be `realm`'s global object. > > 4. Let `settings object` be a new environment settings object whose > algorithms are defined as follows: > > **The origin** Return a unique opaque origin if `worker global > scope`'s url's scheme is "data", and `inherited origin` otherwise.
* Auto merge of #27805 - halvko:html_progress_element, r=jdmbors-servo2021-07-104-49/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properly implement HTMLProgressElement DOM code <!-- Please describe your changes on the following line: --> The DOM code for HTMLProgressElement have been implemented, according to https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element . As mentioned in #23201, tests already exists for this element in tests/wpt/web-platform-tests/html/semantics/forms/the-progress-element/, which now passes (tested on Linux). --- <!-- 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. -->
| * Remove passing ProgressElement tests from harnessErik Funder Carstensen2021-03-314-49/+1
| | | | | | | | Signed-off-by: Erik Funder Carstensen <fundererik@gmail.com>
* | test: update expectationsyvt2021-07-0916-70/+5
| |
* | test: update expectationsyvt2021-06-1988-1026/+47
| |
* | Amend test expectations.Paulo E. Castro2021-04-2843-346/+1935
|/
* Add port blocking for tftp, netbios-ns, snmp, rtsp, h323gatestat, ↵Vincent Ricard2021-03-291-96/+0
| | | | | | h323hostcall, pptp, sane-port Spec update: https://github.com/whatwg/fetch/pull/1148
* Auto merge of #27851 - ghostd:fix-nosniff, r=jdmbors-servo2021-03-291-3/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. -->
| * Fix some 'nosniff' testsVincent Ricard2021-03-081-3/+0
| |
* | Merge branch 'master' into mastersagu2021-03-15149-1698/+3087
|\ \
| * \ Auto merge of #28236 - pecastro:winit_0_24_surfman, r=jdmbors-servo2021-03-141-2/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. -->
| | * | Update to winit 0.24.Josh Matthews2021-03-051-2/+0
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Paulo E. Castro <pecastro@wormholenet.com>
| * | | Update to 3/12 rustc nightly.Josh Matthews2021-03-141-0/+30
| | | |
| * | | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-11148-1732/+3069
| | | | | | | | | | | | | | | | b'ac590e83f80632559480abda677db69b17f6ece1'
* | | | Update test results.sagudev2021-03-1510-74/+61
|/ / /
* | | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-1070-962/+2772
| | | | | | | | | | | | b'0e0fe1b20da0d80eacadc326dec726138fd5aa83'
* | | Remove intermittent error.Josh Matthews2021-03-091-2/+2
| | |
* | | Remove intermittent failure.Josh Matthews2021-03-091-4/+0
| | |
* | | Remove intermittent wdspec error.Josh Matthews2021-03-091-2/+2
| | |
* | | Remove intermittent wdspec error.Josh Matthews2021-03-091-4/+0
| | |
* | | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-0992-2081/+1617
| | | | | | | | | | | | b'0339b7e9ebef65f3288f07167a17c123a782c66f'
* | | Add PRECONDITION_FAILED to grouping_formatter.pyVincent Ricard2021-03-081-0/+3
| |/ |/|
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-0865-196/+2857
| | | | | | | | b'0f46f31799cccd7421a588d053d054138513ccdd'
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-0750-712/+510
| | | | | | | | b'f02e5df558aa05be8f192ffbeb1654d1f509ac9d'
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-0683-892/+2138
| | | | | | | | b'79fa4cf76e0d39e3fc1b7ead85e067b0a064b892'
* | Revert intermittent crash.Josh Matthews2021-03-051-1/+1
| |
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-0566-451/+611
| | | | | | | | b'e055b8d439d6f4b09635f1f0c3180e17cf368071'
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-04197-2131/+2076
| | | | | | | | b'e58cde68851afa192214f60a021f1e56b4172b7a'
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-03116-309/+2107
| | | | | | | | b'b964db08565d01d21c778783da8e9b5d403de3d4'
* | Add linux failure.Josh Matthews2021-03-021-1/+2
| |
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-03-0280-1584/+1469
|/ | | | b'75b1ecef754b4c81ab92f9dd7d0663fbf3d16afe'
* Update web-platform-tests to revision ↵WPT Sync Bot2021-03-0173-197/+1545
| | | | b'd05fefcf165fd03947238957b00b0ca35c45213c'
* Delete 2020 failure.Josh Matthews2021-02-281-2/+0
|
* Update web-platform-tests to revision ↵WPT Sync Bot2021-02-28122-1043/+2790
| | | | b'd04481569b4924284b8dd53b6430ef67de54073f'
* Auto merge of #28217 - servo:gecko-sync, r=emilio,jdmbors-servo2021-02-2738-1276/+30
|\ | | | | | | style: Sync changes from mozilla-central.
| * Keep not parsing conic gradient, update WPT expectations.Emilio Cobos Álvarez2021-02-2731-1272/+6
| |
| * selectors: Cherry-pick some fixes that got lost.Emilio Cobos Álvarez2021-02-272-0/+2
| |
| * Miscellaneous build / tidy fixes.Emilio Cobos Álvarez2021-02-265-4/+22
| |
* | Remove intermittent crash.Josh Matthews2021-02-261-1/+0
| |
* | Revert intermittent crash.Josh Matthews2021-02-261-1/+1
| |
* | Update web-platform-tests to revision ↵WPT Sync Bot2021-02-26543-693/+24196
|/ | | | b'fef1c092193085ce2fa64fd116484ba0f3c0dbb1'
* Add 2020 failure.Josh Matthews2021-02-251-0/+2
|
* Add 2020 failure.Josh Matthews2021-02-251-0/+3
|
* Update web-platform-tests to revision ↵WPT Sync Bot2021-02-25263-1212/+6761
| | | | b'51407aaa3d17aa440f6807caef5e390dc779087a'
* Auto merge of #27619 - servo:rustup, r=jdmbors-servo2021-02-251-8/+8
|\ | | | | | | | | | | Upgrade to rustc 1.48.0-nightly (623fb90b5 2020-09-26) https://github.com/rust-lang/hashbrown/pull/159 reduced `size_of::<HashMap>()`
| * Upgrade to rustc 1.48.0-nightly (623fb90b5 2020-09-26)Simon Sapin2021-01-261-8/+8
| |