Layout 2020: Implement basic white-space: pre support
With these changes `<pre>` and `<br>` preserve spaces and force line breaks appropriately.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix#26440
- [x] There are tests for these changes
Fixed usage of wrong delete
<!-- 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
- [X] These changes fix # 27398
<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they edit existing code.
<!-- 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. -->
Layout 2020: Implement `clip: rect`
This implements `clip: rect`
Unfortunately, none of the tests pass yet, they are all broken due to https://github.com/servo/servo/issues/27387
Additionally, currently `clip` does not seem to clip the element itself, only its children. I'm not quite sure what to do about that, I patterned this off of the code in the layout 2013 which handled clip immediately after scroll overflow.
Removed unnecessary conversion from UTF-8 to UTF-16
<!-- Please describe your changes on the following line: -->
Changed Spidermonkey API calls to remove need for UTF-16 conversion.
---
<!-- 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#27331 (GitHub issue number if applicable)
<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because they simply optimize existing code for speed.
<!-- 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. -->
Make reload button clear the network cache.
The developer workflow in FxR is frustrating right now because of bugs like https://github.com/servo/servo/issues/24385. To allow us to put out a new release soon that addresses this papercut, these changes make the reload button clear the network cache in FxR.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix (kind of) #26411.
- [x] These changes do not require tests because can't test FxR.
Move secondary view support into a pref
Needs https://github.com/servo/webxr/pull/188
Adds a `dom.webxr.first_person_observer_view` pref that toggles FPO views.
build(deps): bump loom from 0.3.4 to 0.3.5
Bumps [loom](https://github.com/tokio-rs/loom) from 0.3.4 to 0.3.5.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tokio-rs/loom/blob/master/CHANGELOG.md">loom's changelog</a>.</em></p>
<blockquote>
<h1>0.3.5 (July 26, 2020)</h1>
<h3>Fixed</h3>
<ul>
<li>An example in the README failing to compile (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/132">#132</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Updated <code>scoped-tls</code> to 1.0.0 (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/153">#153</a>)</li>
</ul>
<h3>Added</h3>
<ul>
<li><code>Send</code> and <code>Sync</code> impls for <code>JoinHandle</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/145">#145</a>)</li>
<li><code>Default</code> impls for <code>Mutex</code>, <code>RwLock</code>, and <code>Condvar</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/138">#138</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="af4386b028"><code>af4386b</code></a> prepare to release 0.3.5 (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/160">#160</a>)</li>
<li><a href="2632f929d2"><code>2632f92</code></a> update scoped-tls to 1.0.0 (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/153">#153</a>)</li>
<li><a href="dc9e91c0a9"><code>dc9e91c</code></a> Fix compilation error on README.md (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/132">#132</a>)</li>
<li><a href="871ff01288"><code>871ff01</code></a> Implement Default for Mutex, RwLock and Condvar (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/138">#138</a>)</li>
<li><a href="0b092a2e52"><code>0b092a2</code></a> Make JoinHandle Send + Sync (<a href="https://github-redirect.dependabot.com/tokio-rs/loom/issues/145">#145</a>)</li>
<li>See full diff in <a href="https://github.com/tokio-rs/loom/compare/v0.3.4...v0.3.5">compare view</a></li>
</ul>
</details>
<br />
[](https://dependabot.com/compatibility-score/?dependency-name=loom&package-manager=cargo&previous-version=0.3.4&new-version=0.3.5)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
</details>
Handle `inset: auto` values for absolutely positioned elements
Fixes#27387
This is the same as https://github.com/servo/servo/pull/27397 , but written to share the box offset data instead of bubbling the hoisted box up based on comments from @SimonSapin.
Update user agent strings
<!-- 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: -->
- [ ] `./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. -->
Remove unit test that triggers frequent intermittent failure.
This works around #26895 by removing the test that triggers it. The underlying cause of the failure isn't clear, but it's something to do with the hyper server and doesn't appear to impact the way that Servo's HTTP stack functions. The unit test itself is testing one particular property of the way CORS requests are made with HEAD requests, and that's not a property that is critical functionality if we stop testing it.