Граф коммитов

743522 Коммитов

Автор SHA1 Сообщение Дата
Butkovits Atila e0344a1cd5 Backed out changeset aefbe65483ef (bug 1460299) for causing failures cors-filtering.sub.any.worker.html. CLOSED TREE 2021-02-04 17:35:11 +02:00
Yaron Tausky e50c13a6ff Bug 1682928 - Remove TSan suppression r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D103048
2021-02-04 14:34:56 +00:00
Yaron Tausky 4c3b1acb4d Bug 1682928 - Protect shared memory locations behind a mutex r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D101582
2021-02-04 14:34:47 +00:00
Yaron Tausky 3623b4a196 Bug 1682928 - Make some data members atomic or const r=asuth,dom-workers-and-storage-reviewers,sg
With this commit a few of EventSource's and EventSourceImpl's data
members are now atomic, since a mutex isn't really necessary for
their use case. Also, several data members are now marked const.

Differential Revision: https://phabricator.services.mozilla.com/D101210
2021-02-03 15:03:54 +00:00
Yaron Tausky 6f6201cee5 Bug 1682928 - Remove some potential data races r=asuth,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D101163
2021-02-03 15:03:40 +00:00
Jens Stutte 33a534362f Bug 1682928: P1 Reduce the use of EventSourceImpl raw pointers r=dom-workers-and-storage-reviewers,ytausky
Differential Revision: https://phabricator.services.mozilla.com/D100010
2021-02-03 15:03:47 +00:00
Simon Giesecke 25b4bffa70 Bug 1689349 - Report QM_TRY failures to telemetry only on the first initialization attempt. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D103893
2021-02-04 13:27:36 +00:00
Simon Giesecke 5993084bb3 Bug 1690560 - Explicitly close lsArchiveTmpConnection and propagate any errors. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D103904
2021-02-04 13:35:07 +00:00
Nicolas Silva 4ddd3c50c9 Bug 1649386 - Add a bit of documentation to scene building. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D81663
2021-02-04 14:15:48 +00:00
Jonathan Kew bc2c71f27e Bug 1690771 - Adjust test metadata r=jrmuizel
Depends on D104046

Differential Revision: https://phabricator.services.mozilla.com/D104047
2021-02-04 13:51:21 +00:00
Jonathan Kew dbaf0d8121 Bug 1690771 - Use Skia backend rather than Cairo in RecvMakeSnapshot r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D104046
2021-02-04 13:50:15 +00:00
Forrest 59d353f4d6 Bug 1460299 - Add content-length as a CORS-safelisted response header. r=valentin,baku
Reference: https://fetch.spec.whatwg.org/#cors-safelisted-response-header

Differential Revision: https://phabricator.services.mozilla.com/D58492
2021-02-04 14:12:10 +00:00
Jan-Erik Rediger a141e81771 Bug 1690774 - Upgrade to Glean v34.1.0 to get a bugfix. r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D104049
2021-02-04 13:21:52 +00:00
Neil Deakin 4d51f17e31 Bug 259640, fix highlightAll reference, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D104050
2021-02-04 12:49:46 +00:00
James Graham 03953dc05e Bug 1690398 - Require Python 3 for wpt lint, r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D104048
2021-02-04 12:35:56 +00:00
Simon Giesecke 989362a57a Bug 1690234 - Treat ERROR_FILE_CORRUPT errors like non-existent files in GetDirEntryKind. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D103762
2021-02-04 12:14:45 +00:00
Simon Giesecke c1c05c7017 Bug 1690291 - Handle NS_ERROR_STORAGE_IOERR when opening a database like NS_ERROR_FILE_CORRUPTED. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D103898
2021-02-04 11:43:22 +00:00
moz-wptsync-bot 586ec4371f Bug 1690398 - [wpt-sync] Update web-platform-tests to d47b8fbabcc1de1eca266a9aee12f6d348eee93f, a=testonly
MANUAL PUSH: wpt sync bot

wpt-head: d47b8fbabcc1de1eca266a9aee12f6d348eee93f
wpt-type: landing
2021-02-04 12:08:31 +00:00
Xianzhu Wang 2ed6b9a815 Bug 1690171 [wpt PR 27436] - Ignore layout shifts for adding/removing position:fixed, a=testonly
Automatic update from web-platform-tests
Ignore layout shifts for adding/removing position:fixed

- Treat position:fixed in scrolling LayoutView as layout shift root
  (by checking CompositingReason::kScrollDependentPosition, which
  also covers the previous sticky position condition).

- Check whether an object was a layout shift root at the
  beginning of PaintPropertyTreeBuilder::UpdateForSelf(). Previously
  was_layout_shift_root was incorrect if UpdateFragments() removed
  PaintProperties() of the FragmentData.

- Update layout_shift_root_changed in both UpdateForSelf() and
  UpdateForChildren(), so that the flag also applies to the object
  itself if any paint properties in UpdateForSelf() affected
  layout shift root status.

Bug: 1150657
Change-Id: I74a5e3bab93e66483b47eb27a04e7bf2277ee1c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2665761
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849650}

--

wpt-commits: d47b8fbabcc1de1eca266a9aee12f6d348eee93f
wpt-pr: 27436
2021-02-04 12:08:30 +00:00
moz-wptsync-bot 05a24e14aa Bug 1689765 [wpt PR 27406] - Update wpt metadata, a=testonly
wpt-pr: 27406
wpt-type: metadata
2021-02-04 12:08:30 +00:00
Aaron Krajeski d0bea5a32b Bug 1689765 [wpt PR 27406] - Add interface and test for the transform (concatenate) method, a=testonly
Automatic update from web-platform-tests
Add interface and test for the transform (concatenate) method

Bug: 1140535
Change-Id: I12fc6011ef36a98af8a98c41031a7075b800ad59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2659355
Reviewed-by: Yi Xu <yiyix@chromium.org>
Reviewed-by: Xida Chen <xidachen@chromium.org>
Commit-Queue: Aaron Krajeski <aaronhk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849613}

--

wpt-commits: 284cfb03143ba2296b6010987688e12d170a28b4
wpt-pr: 27406
2021-02-04 12:08:29 +00:00
moz-wptsync-bot 093b7faaaa Bug 1689430 [wpt PR 27372] - Update wpt metadata, a=testonly
wpt-pr: 27372
wpt-type: metadata
2021-02-04 12:08:29 +00:00
Mike Taylor 9d0af71a39 Bug 1689430 [wpt PR 27372] - Rewrite wpt/cookies/http-state/domain-tests.html, a=testonly
Automatic update from web-platform-tests
Rewrite wpt/cookies/http-state/domain-tests.html

Here's a mapping from the domains the legacy tests expected to their
current equivalent, as used in the tests:

example.org =>                {{host}}
home.example.org =>           {{domains[www]}}
sibling.example.org =>        {{domains[www1]}}
subdomain.home.example.org => {{domains[www2.www]}}

Here's a mapping from the legacy http-state/domain-tests.html to their
new location which will have a cookie with some variation of test=N in
it.

(All found in wpt/cookies/attributes/resources/domain-child.sub.html)

(Apologies to future readers, it can be a little confusing to follow)

domain0001 => test=1
domain0002 => test=2
domain0003 => test=3
domain0004 => test=4
domain0005 => test=5
domain0006 => test=6
domain0007 => test=7
domain0008 => test=8
domain0009 => test=9
domain0010 => test=10
domain0011 => test=11
domain0012 => test=12
domain0013 => test=13
domain0014 => test=14
domain0015 => test=15
domain0016 => test=16
domain0017 => test=17
domain0018 => test=18
domain0019 => test=19
domain0020 => test=20
domain0021 => test=21
domain0022 => test=22
domain0023 => test=23
domain0024 => test=24
domain0025 => test=25
domain0026 => test=26
domain0027 => test=27
domain0028 => test=28
domain0029 => test=29
optional-domain0030 => test=30
domain0031 => Duplicate of domain0025
domain0032 => (this doesn't exist, don't go hunting for it)
domain0033 => test=31
domain0034 => test=32
domain0035 => test=33
domain0036 => test=34
domain0037 => test=35
domain0038 => test=36
domain0039 => test=37
domain0040 => test=38
domain0041 => test=39
domain0042 => test=40
optional-domain0041 => test=41
optional-domain0042 => test=42
optional-domain0043 => test=43

And here's some leftovers:
mozilla0011 => test=26 (wpt/cookies/attributes/invalid.html)

Bug: 1159858
Change-Id: I7e5d0bb4a0dd2cc77993a3a10ca0a619f763d44c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2654317
Commit-Queue: Mike Taylor <miketaylr@chromium.org>
Reviewed-by: Lily Chen <chlily@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849610}

--

wpt-commits: a92fea00e5a1b13654d2c123a47f349e86dfa9aa
wpt-pr: 27372
2021-02-04 12:08:28 +00:00
Stephen McGruer 7b80963bb3 Bug 1690241 [wpt PR 27442] - [python3] Cleanup some references to unsupported Python versions, a=testonly
Automatic update from web-platform-tests
[python3] Cleanup some references to unsupported Python versions (#27442)

--

wpt-commits: f71ef8b690985f3d5cba7463389aba710415d47d
wpt-pr: 27442
2021-02-04 12:08:28 +00:00
Rune Lillesveen ac77a3dee9 Bug 1690226 [wpt PR 27440] - Tree-scoped references from external SVG use, a=testonly
Automatic update from web-platform-tests
Tree-scoped references from external SVG use

Fix DCHECK failure. A tree-scoped reference may come from a different
document when the style is applied from sheets in an external reference
for SVG <use>.

Bug: 1172059
Change-Id: Ie687ca54d217ba37fa38471bb7e5024a1b4481f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2665727
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849563}

--

wpt-commits: 28de62292316f8edaec2f0b80359c4c9bf8dae6d
wpt-pr: 27440
2021-02-04 12:08:27 +00:00
moz-wptsync-bot 32058b46e2 Bug 1689629 [wpt PR 27388] - Update wpt metadata, a=testonly
wpt-pr: 27388
wpt-type: metadata
2021-02-04 12:08:27 +00:00
Ilya Nikolaevskiy 945a6d8c4f Bug 1689629 [wpt PR 27388] - Add WPT test for relay of WebGL canvas captureStream stream, a=testonly
Automatic update from web-platform-tests
Add WPT test for relay of WebGL canvas captureStream stream

Bug: 1132965,1156408
Change-Id: I7ef02c1cb997f061da81845bd753de1d4ab76fc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2656040
Reviewed-by: Henrik Boström <hbos@chromium.org>
Commit-Queue: Henrik Boström <hbos@chromium.org>
Auto-Submit: Ilya Nikolaevskiy <ilnik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849556}

--

wpt-commits: a2fe8660a41d5a99333846c601e49daae2c914d3
wpt-pr: 27388
2021-02-04 12:08:27 +00:00
Anders Hartvoll Ruud 20b634130a Bug 1689575 [wpt PR 27386] - Don't crash when serializing empty CSSUnparsedValues, a=testonly
Automatic update from web-platform-tests
Don't crash when serializing empty CSSUnparsedValues

The "tokens_" list (which despite its name is really a list of
CSSUnparsedSegments) can be non-empty, but still produce an empty
sequence when tokenized. We're not taking this into account, and can
therefore end up with an empty CSSParserTokenRange, which will DCHECK
when passed to CSSVariableData::Create.

To fix this, move the empty-check until after the CSSParserTokenRange
has been created.

Fixed: 1169941
Change-Id: I3eac2b46dca9999ba5f4b509f8293f604f678198
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2656036
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#849551}

--

wpt-commits: 0b172748d83874a2a8facb588e6a17ac423dd85d
wpt-pr: 27386
2021-02-04 12:08:26 +00:00
Nayeem Rahman 78b1a1d0c7 Bug 1689701 [wpt PR 27394] - Replace most `.__proto__` with `Object.getPrototypeOf()`, a=testonly
Automatic update from web-platform-tests
Replace most `.__proto__` with `Object.getPrototypeOf()` (#27394)

Co-authored-by: Philip Jägenstedt <philip@foolip.org>
--

wpt-commits: 59d28c8f2d91d12533cfd0371acbe473b1825967
wpt-pr: 27394
2021-02-04 12:08:26 +00:00
autofoolip 6ef86093e6 Bug 1690207 [wpt PR 27438] - Update interfaces/scroll-animations.idl, a=testonly
Automatic update from web-platform-tests
Update interfaces/scroll-animations.idl (#27438)

Source: https://github.com/w3c/webref/blob/ed73fbd/ed/idl/scroll-animations.idl
Build: https://travis-ci.org/w3c/webref/builds/215717396
--

wpt-commits: 82cbb79329375ab84c8725db3e4096268c9b333d
wpt-pr: 27438
2021-02-04 12:08:25 +00:00
Stephen McGruer 1b9f55bad8 Bug 1690036 [wpt PR 27426] - [wpt] Reject python versions <3.6, a=testonly
Automatic update from web-platform-tests
[wpt] Reject python versions <3.6 (#27426)

This commit changes the entrypoint to reject any Python version that is
not 3.6 or higher. It also removes the --py2 and --py3 flags.

We are deliberately doing a rejection rather than a fallback to Python 3
to quickly find any remaining entrypoints using Py2.
--

wpt-commits: 92b1c270d0e8831e84d7264e4cfeb1332fdaec5d
wpt-pr: 27426
2021-02-04 12:08:24 +00:00
Rob Buis 0f1059e27d Bug 1690214 [wpt PR 27439] - FormData should not contain an entry for the submitter, a=testonly
Automatic update from web-platform-tests
FormData should not contain an entry for the submitter (#27439)

FormData should not contain an entry for the submit button that was used to submit the form.
--

wpt-commits: c134161fc0bf764b6371189b3aca0f3660f15f24
wpt-pr: 27439
2021-02-04 12:08:24 +00:00
Timothy Nikkel cf811ba8b1 Bug 1690433. Update display port expiry to handle minimal display ports. r=botond
If the activate_all_scroll_frames pref is on we want to never remove a minimal display port, and when a regular display port expires we want to downgrade it to minimal.

If the pref is off it's the same as before except we want to also remove the minimal property when on expiry.

Differential Revision: https://phabricator.services.mozilla.com/D103859
2021-02-04 11:17:16 +00:00
Timothy Nikkel 39d4570796 Bug 1690433. If in PrepareForSetTargetAPZCNotification we go from a minimal display port to a regular display port return the painted status of the existing (minimal) display port instead of always telling the caller to wait for a refresh. r=botond
In the case that we have a painted minimal display port apzc knows about the scroll frame already, it just has the minimal amount of painted content. So we can tell apz right away. Note that the async transform for minimal dp's are still the identity so we'll still jank minimap dp's before the painted regular dp reaches the apzc.

Differential Revision: https://phabricator.services.mozilla.com/D103858
2021-02-04 11:17:09 +00:00
Timothy Nikkel d2930b87f0 Bug 1690433. Prefer to jank minimal display ports until we can set a proper display port over checkerboarding them. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103857
2021-02-04 11:17:06 +00:00
Timothy Nikkel 1be3156679 Bug 1690433. Update code that looks for the presence of a display port for new minimal display ports. r=botond
This patch is the result of auditing all places that look at the presence or absence of a display port to handle minimal display ports (HasDisplayPort, GetDisplayPort, etc).

Broadly speaking the places were in two categories:
1) things related to painting, that want to consider minimal display ports as display ports for purposes of things like sending over metadata and separating out layers.
2) things that care about async scrolling, and so actually want to have a properly sized display port.

Type 1) were not changed by this patch. Type 2) were changed to consider minimal display ports as not display ports.

Again, we are aiming to leave behaviour unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D103856
2021-02-04 11:16:59 +00:00
Timothy Nikkel e2f27ec58a Bug 1690433. Create a minimal display port type. r=botond
We introduce a new type of display port, a minimal display port. It is controlled via a property on the content element. When the property is present any other display port specified on the element is ignored and instead the display port rect is computed by assuming 0 display port margins and no alignment (this reuses the existing code for display port suppression).

We then add code to set a minimal display port on every scroll frame that is painted that has WantAsyncScroll() when certain prefs are set (the prefs are disabled as of this patch though).

We then need to manage removing the minimal display port property when, before this patch, we would have created a regular display port. As well we need to add the minimal display port property when, before this patch, we would have removed a regular display port.

In order to do this I audited all sites where we set the display port rect and display port margins property. The changes to the code for handling the removal display ports happens in a later patch.

My audit found that all of the places we set a display port want to clear the minimal display port property except:
-UpdateSub/RootFrame in APZCCallbackHelper
-UpdateDisplayPortMarginsForPendingMetrics in DisplayPortUtils

UpdateDisplayPortMarginsForPendingMetrics is basically a fast path of the UpdateSub/RootFrame code. These are the places where we handle calls to RequestContentRepaint from apz. By adding an assert and running it through try server I found that UpdateSub/RootFrame can create a display port in the following cases:
-a scroll info layer
-a scroll frame with !WantAsyncScroll() (the main thread never creates a display port for a scroll frame with !WantAsyncScroll()) (for example if the main thread creates a scroll id and sends over metadata via nsLayoutUtils::GetRootMetaData, and then the scroll rect changes, that will cause a RequestContentRepaint call)
-a few instances that don't fall into the above that happened on try server but didn't reproduce for me locally, so I don't know more about them.
It's not very important whether we clear the minimal display port property for these cases or not (the first two cases we don't async scroll the scroll frame at all, the last case seems quite rare).

Note that we intentionally do not change the existing behaviour of zero margin display ports set via SetZeroMarginDisplayPortOnAsyncScrollableAncestors as we are aiming for no behaviour changes with this patch (until we flip the pref). A later patch in a different bug handles changing these display ports over to minimal display ports.

Differential Revision: https://phabricator.services.mozilla.com/D103855
2021-02-04 11:16:44 +00:00
Kershaw Chang 8373d6cfc5 Bug 1682555 - Add a probe for echConfig sucessful rate r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103340
2021-02-04 10:49:35 +00:00
Kershaw Chang d2340e9ce4 Bug 1690220 - Don't query https rr when proxy CONNECT is in use r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103781
2021-02-03 10:32:34 +00:00
Alexandre Poirot 22f652b35a Bug 1690221 - [devtools] Remove unused Connector.setPreferences method. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103751
2021-02-04 09:06:41 +00:00
Alexandre Poirot a212b7b7b5 Bug 1690221 - [devtools] Merge FirefoxConnector into Connector. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103750
2021-02-04 10:37:20 +00:00
Alexandre Poirot 1e919fbc8d Bug 1690221 - [devtools] Remove unused chrome connector. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103749
2021-02-04 00:16:31 +00:00
Sylvestre Ledru f3bf06a03a Bug 1690745 - mozlint: Update to autopep8 1.5.5 r=linter-reviewers,marco,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D104007
2021-02-04 10:00:13 +00:00
Simon Giesecke 495067f772 Bug 1685677 - Refactor QuotaManager::CollectOriginsForEviction. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D101182
2021-02-04 09:24:27 +00:00
sachinchauhan2889@gmail.com 9834c92a95 Bug 1688511 - do not use 'else' after 'return'. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D103970
2021-02-04 09:24:19 +00:00
Asumu Takikawa 12e78a4a8b Bug 1690510 - fix unused definition when wasm exceptions are off r=rhunt
This patch fixes release/beta builds where the compile flag
for Wasm exceptions are turned off.

Differential Revision: https://phabricator.services.mozilla.com/D103935
2021-02-04 04:02:04 +00:00
Andrew Nicols 8eacaa4fde Bug 1686663: Set the value of buttons based on provided event r=smaug
Currently the default value of buttons is set to
MOUSE_BUTTONS_NOT_SPECIFIED, which defers calculation of the value to
the DOMWindowUtils GetButtonsFlagForButton function. This calculates a
default value based upon the value of the button key.

By specifying a default button value of 0, which has a meaning of
ePrimary, the buttons value is calculated as the
ePrimaryFlag (1), suggesting that a button was pressed.

This patch changes the behaviour to set the value of buttons based on
the original value of button before the default was applied. The value
of buttons also considers the event type to ensure that a mousedown
event has a default value calculated by DOMWindowUtils.

With the new behaviour:
- if a value was explicitly set for buttons, this is used
- if a value was explicitly set for button, then the not-specified
  constant is used to defer calculation to DOMWindowUtils
- if an event type was specified and that event type was not the
  'mousedown' event, then the no-button constant is used
- if an event type was not specified or it was for the 'mousedown'
  event, then the not-specified constant is used to defer calculation to
  DOMWindowUtils

Differential Revision: https://phabricator.services.mozilla.com/D101690
2021-02-04 00:59:54 +00:00
Nils Ohlmeier [:drno] f982032c7c Bug 1690200: pick SCTP init processing fix from upstream. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D103744
2021-02-04 06:53:06 +00:00
Butkovits Atila d8adfd3bef Backed out 2 changesets (bug 1302991) for causing failures on empty.html. CLOSED TREE
Backed out changeset e4734e2b38b6 (bug 1302991)
Backed out changeset fd4ba1eeec00 (bug 1302991)
2021-02-04 09:11:58 +02:00
Makoto Kato e197d51302 Bug 1684967 - Don't dispose GeckoEditableChild during JNI call. r=geckoview-reviewers,aklotz
This is a regression by bug 1651705.

After landing it, we use read-write lock to access GeckoEditableChild object.
But when using form submission with target=_blank, since we use some nested
event loop to open new window in same process, we may try to dispose
GeckoEditableChild even if it is still used. Then, it may be dead lock.

So I add a blocker class helper not to dispose GeckoEditableChild immediately.

Differential Revision: https://phabricator.services.mozilla.com/D103742
2021-02-04 06:23:54 +00:00