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

773853 Коммитов

Автор SHA1 Сообщение Дата
Ping Chen a2ccfacac3 Bug 1736508 - Make TCPSocket work with ipv6 address again. r=valentin
Wrap ipv6 address in [ ] when constructing nsIURI.

Differential Revision: https://phabricator.services.mozilla.com/D128843
2021-10-19 11:33:55 +00:00
Emilio Cobos Álvarez 6c858f9e0c Bug 1736441 - Remove a bunch of dead plugins code from widget/. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D128863
2021-10-19 11:19:13 +00:00
Robert Mader 873d1bdc06 Bug 1644606 - Add a pref to select between GLES and desktop GL contexts on EGL, r=gfx-reviewers,nical
This preference was requested by driver developers, simplifying
debugging processes. It is especially useful on Linux, but may
be handy on other platforms as well.

As a side effect it also ensures the two places with fallback paths
behave the same again on Android.

Depends on D128411

Differential Revision: https://phabricator.services.mozilla.com/D128592
2021-10-19 11:11:47 +00:00
Emilio Cobos Álvarez aa65aacbd9 Bug 1736370 - Make inert use the union of the change hints of the properties it affects. r=jwatt
This is likely a bug in XUL layout, but this should restore the old
behavior and is the right thing to do.

Differential Revision: https://phabricator.services.mozilla.com/D128746
2021-10-19 10:52:11 +00:00
Valentin Gosu 8344ba5368 Bug 1735306 - Add nsCStringASCIICaseInsensitiveHashKey r=xpcom-reviewers,necko-reviewers,nika,hsivonen,dragana
Differential Revision: https://phabricator.services.mozilla.com/D116217
2021-10-19 10:49:46 +00:00
Emilio Cobos Álvarez 9f1b361b71 Bug 1736141 - Remove unneeded observer in devtools theme code. r=jdescottes
The toolbar pref change triggers eventually a look-and-feel-changed
notification, so no need to observe that directly.

Depends on D128674

Differential Revision: https://phabricator.services.mozilla.com/D128675
2021-10-19 10:48:53 +00:00
Gijs Kruitbosch 7fa72ca48d Bug 1735368 - ensure we also test saving closing windows when saving downloads to disk, r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D128629
2021-10-19 10:35:47 +00:00
Gijs Kruitbosch d197b20357 Bug 1735368 - fix browser_auto_close_window.js so it passes with download improvements enabled and when asking for all downloads, r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D128628
2021-10-19 10:35:46 +00:00
Marian-Vasile Laza 0f2876e6ca Backed out changeset 115b43608ec1 (bug 1736441) for causing build bustages on nsWindow.cpp. CLOSED TREE 2021-10-19 13:54:23 +03:00
Marian-Vasile Laza 35bb26d03e Backed out changeset af60c05d5dae (bug 1723134) for causing buid bustages on RenderCompositorEGL.cpp. 2021-10-19 13:52:26 +03:00
Paul Zuehlcke fa3d978f5d Bug 1696685 - r=xpcom-reviewers,necko-reviewers,valentin,nika
Differential Revision: https://phabricator.services.mozilla.com/D128630
2021-10-19 10:17:03 +00:00
Timothy Nikkel 35a0a509c6 Bug 1734571. Remove old unused layers tiling left over code bits. r=gfx-reviewers,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D127787
2021-10-19 10:12:25 +00:00
Emilio Cobos Álvarez c70d201838 Bug 1736441 - Remove a bunch of dead plugins code from widget/. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D128863
2021-10-19 10:06:50 +00:00
criss 2ee81d4656 Backed out changeset 346bcc20a94e (bug 1696685) for causing bustages on nsEscape.h. CLOSED TREE 2021-10-19 12:59:41 +03:00
Paul Zuehlcke 54d4322ca1 Bug 1696685 - r=xpcom-reviewers,necko-reviewers,valentin,nika
Differential Revision: https://phabricator.services.mozilla.com/D128630
2021-10-19 09:34:08 +00:00
Emilio Cobos Álvarez cfc9af581b Bug 1732674 - Assert on tree mutations. r=jfkthame
This should hopefully help catch misuse. Fix an iterator that was living
for too long in ScrollIntoView.

Differential Revision: https://phabricator.services.mozilla.com/D128855
2021-10-19 09:29:13 +00:00
Jonathan Kew a6be3734b3 Bug 1732674 - Make nsLineIterator a lightweight wrapper for an nsLineList_iterator instead of building a separate array. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D126671
2021-10-19 09:29:13 +00:00
Marian-Vasile Laza 3883f0ad91 Backed out changeset f3cf8baf4f0a (bug 1731582) for causing build bustages. CLOSED TREE 2021-10-19 12:36:47 +03:00
Nicolas Silva d3c8057ea3 Bug 1723134 - Make SwapInterval configurable via prefs for EGL and GLX. r=gfx-reviewers,jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D128476
2021-10-19 09:22:01 +00:00
André Bargull 84875cdcbe Bug 1736409 - Part 3: Return void instead of bool from initFromTemplateObject(). r=iain
Both `initFromTemplateObject()` methods are always returning `true`, so we might
as well change the return type to `void`.

Depends on D128765

Differential Revision: https://phabricator.services.mozilla.com/D128766
2021-10-19 09:19:56 +00:00
André Bargull 7748d3a5f4 Bug 1736409 - Part 2: Inline visitObjectGuard() into visitGuardShape(). r=iain
The other caller to `visitObjectGuard()` was removed when unboxed objects were
removed, so we can move the function back into `visitGuardShape()`.

Depends on D128764

Differential Revision: https://phabricator.services.mozilla.com/D128765
2021-10-19 09:19:56 +00:00
André Bargull 99cd8c4e6f Bug 1736409 - Part 1: Use MDefinitionIterator when iterating over definitions. r=iain
`ArgumentsReplacer::run()` ignores any resume points, so we can directly use
`MDefinitionIterator` to iterate over all definitions.

Differential Revision: https://phabricator.services.mozilla.com/D128764
2021-10-19 09:19:56 +00:00
André Bargull e5b87e74e0 Bug 1736405: Remove MLoadElementHole::needsHoleCheck. r=jandem
`MLoadElementHole::needsHoleCheck` is never set to `false`.

Drive-by change:
- Remove two method declarations without definitions.

Differential Revision: https://phabricator.services.mozilla.com/D128762
2021-10-19 09:19:49 +00:00
Jan de Mooij 0e2b3de693 Bug 1736353 part 1 - Remove barrier after megamorphic property gets. r=iain
We added a speculation barrier after calls into C++ from ICs (bug 1444473).
In hindsight, it seems we were overly cautious with the calls for megamorhic property
gets because the slot number comes from the shape's property map. This makes it very
different from the typical Spectre v1 attack with a user-controlled index into a
(typed) array, where the bounds check then gets delayed/speculated.

Furthermore, this happens in C++ code that's not user-controlled and it'd need a
large speculation window that includes the return to JIT code. There we have
additional mitigations when unboxing the returned Value.

This barrier has a large impact on performance: on a simple micro-benchmark it
increases our numbers from 75 ms to 170 ms on Linux x64, more than a 2x slowdown
for one of our hottest code paths. This makes it hard to justify keeping it.

Differential Revision: https://phabricator.services.mozilla.com/D128744
2021-10-19 09:12:48 +00:00
Emilio Cobos Álvarez 4b713033ac Bug 1736141 - Make Document::PreferredColorScheme safe to call off-main-thread. r=mstange
Document::GetBrowsingContext uses a WeakPtr<nsIDocShell> so we can't do
that. But we have all the other media emulation data and so on in the
pres context which we can access off the main thread for style, so move the
override code there.

Differential Revision: https://phabricator.services.mozilla.com/D128673
2021-10-19 09:00:42 +00:00
Jan de Mooij 33dfe17cd2 Bug 1735993 - Use HeapPtr instead of GCPtr in ShapeSnapshot. r=jonco
Not adding the test case because it's so large, and this is just a testing function.

Differential Revision: https://phabricator.services.mozilla.com/D128724
2021-10-19 08:46:16 +00:00
Jon Coppeard 3fd29393b3 Bug 1736396 - Replace sweeping with traceing weak edges in NurseryAwareHashMap r=sfink
Depends on D128759

Differential Revision: https://phabricator.services.mozilla.com/D128760
2021-10-19 08:43:21 +00:00
Jon Coppeard 8d9c758b46 Bug 1736396 - Replace sweeping with tracing weak edges in the FinalizationRegistry implementation r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D128759
2021-10-19 08:43:20 +00:00
Jon Coppeard 03ccf4bce6 Bug 1736396 - Fix SweepingTracer to work correctly on things in zones that are not being swept r=sfink
Most of the time we only sweep things in zones that are being swept, but there
are a couple of places where this isn't true. This fixes the sweeping tracer to
take account of that.

Differential Revision: https://phabricator.services.mozilla.com/D128758
2021-10-19 08:43:20 +00:00
lyavor c8821c3179 Bug 1731971 - https-first causes slow http: sites on non-standard ports to time-out too fast. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D127940
2021-10-19 08:36:45 +00:00
Zhao Jiazhong 5d18f2ec27 Bug 1735772 - Fix some 32-bit value sign-extension issues when computing hash. r=anba
On mips64, when 64-bit GPRs carrying 32-bit values, the upper bits are the sign extension
of the lower bits, and 32-bit instructions will check this invariant.
But on x64 and arm64, the upper bits are zero, and 32-bit instructions don't care about
the upper 32 bits of the inputs.

So when some 32-bit operations like mul32 are used, we should keep the inputs sign-extended.
And if we want a zero-extended 32-bit value, like for some bitwise operations, an explicit
zero-extension is needed.

Differential Revision: https://phabricator.services.mozilla.com/D128564
2021-10-19 08:16:45 +00:00
Andi-Bogdan Postelnicu da72439c02 Bug 1731582 - Move to clang-13 r=firefox-build-system-reviewers,mhentges
Join work with glandium.

Differential Revision: https://phabricator.services.mozilla.com/D126208
2021-10-19 08:00:30 +00:00
Yoshi Cheng-Hao Huang ec665f1714 Bug 1719551 - Part 2: Unify Intl API in OSPreferences. r=platform-i18n-reviewers,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D128461
2021-10-19 07:34:01 +00:00
Yoshi Cheng-Hao Huang e08bac2c1d Bug 1719551 - Part 1: Add DateTimePatternGenerator::GetPlaceholderPattern. r=platform-i18n-reviewers,anba,gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D128460
2021-10-19 07:34:00 +00:00
Mike Hommey e3df5fd682 Bug 1736458 - Upgrade python-zstandard to 0.16.0. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D128807
2021-10-19 07:00:36 +00:00
Tim Huang 4b0282ede1 Bug 1736401 - Compute `IsThirdPartyToTopWindow` in StoragePrincipalHelper::GetPrincipal(). r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D128783
2021-10-19 06:33:10 +00:00
Tim Huang 67d59a991c Bug 1731982 - Part 10: Use AntiTrackingUtils::IsThirdPartyContext() to check third party in AntiTrackingUtils::IsThirdPartyWindow() if the channel is not available. r=pbz
We used to use the ThirdPartyUtil::IsThirdPartyWindow() to check third
party if the document or the channel is not available. However, this
could be incorrect in the case where the channel is not available
because the WindowContext is not ready yet. To address this issue, we
use the browingContext of the document to check third party.

Differential Revision: https://phabricator.services.mozilla.com/D128601
2021-10-19 06:33:10 +00:00
Tim Huang ca46281924 Bug 1731982 - Part 9: Modify the test browser_partitionedServiceWorkers.js. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D127842
2021-10-19 06:33:09 +00:00
Tim Huang c078a3227a Bug 1731982 - Part 8: Ignoring the partitionKey when verify loadingPrincipal with clientInfo. r=asuth,necko-reviewers
Given that we use the partitioned Principal in the third-party context
and the loading principal won't have it, we should ignore the
partitionKey when doing the verfication.

Differential Revision: https://phabricator.services.mozilla.com/D127841
2021-10-19 06:33:09 +00:00
Tim Huang 54fa907186 Bug 1731982 - Part 7: Use the client's principal to verify client in localStorage. r=asuth
Currently, we use the script principal to verify the client to prevent
the principal forgery. After we moving to use foreign partitioned
principal for the Client, this no longer works. Instead, we can directly
use the client's principal to verify client.

Also, the patch rename StoragePrincipalHelper::VerifyValidStoragePrincipalInfoForPrincipalInfo() to
StoragePrincipalHelper::VerifyValidPartitionedPrincipalInfoForPrincipalInfo()
and fix a problem in the function that it should ignore the PartitionKey
instead of the FirstPartyDomain.

Differential Revision: https://phabricator.services.mozilla.com/D127840
2021-10-19 06:33:08 +00:00
Tim Huang 8dc576c3d0 Bug 1731982 - Part 6: Using foreign partitioned principal when creating clientSource in ServiceWorkerManager. r=asuth
Currently, the ServiceWorkerManager creates a content prinipcal based
on the regular originAttributes when dispatch the fetch event. This
patch changes to use the foreign partitioned originAttributs.

Note that we don't add tests for this because the change doesn't change
the behavior. And we don't enable partitioned third-party Service Worker.
So, the existing test cases is enough for this.

Differential Revision: https://phabricator.services.mozilla.com/D127632
2021-10-19 06:33:08 +00:00
Tim Huang 33102401a7 Bug 1731982 - Part 5: Using StoragePrincipalHelper::GetPrincipal() in ClientChannelHelper. r=asuth
To support foreign partitioned prinicpal for Client, we use
StoragePrincipalHelper::GetPrincipal() to get the foreign partitioned
principal from the channel in the ClientChannelHelper. And use it to
create client.

Differential Revision: https://phabricator.services.mozilla.com/D127631
2021-10-19 06:33:08 +00:00
Tim Huang a224b370aa Bug 1731982 - Part 4: Using foreign partitioned principal when creating clientSource in nsGlobalWindowInner. r=asuth
Currently, we use the node principal to create clientSource in
nsGloblaWindowInner. This patch change this to use foreign partitioned
principal.

Differential Revision: https://phabricator.services.mozilla.com/D127630
2021-10-19 06:33:07 +00:00
Tim Huang 2116f04511 Bug 1731982 - Part 3: Use partitioned principal for creating initial client source if needed in nsDocShell. r=asuth
Currently, we are using the regular principal and inherited regular
principal to create clientSource in nsDocShell. This patch makes the
nsDocshell to use the partitioned principal if needed.

Differential Revision: https://phabricator.services.mozilla.com/D127629
2021-10-19 06:33:07 +00:00
Tim Huang 094104068d Bug 1731982 - Part 2: Implement StoragePrincipalHelper::ShouldUsePartitionPrincipalForServiceWorker(). r=dimi
We implement
StoragePrincipalHelper::ShouldUsePartitionPrincipalForServiceWorker() to
help with deciding the principal needed to be used when creating a
initial clientSource in docShell.

Differential Revision: https://phabricator.services.mozilla.com/D127628
2021-10-19 06:33:07 +00:00
Tim Huang ce1e22ffeb Bug 1731982 - Part 1: Implement AntiTrackingUtils::IsThirdPartyContext(). r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D127627
2021-10-19 06:33:06 +00:00
Julian Descottes 8130ddcaa7 Bug 1735660 - [devtools] Ensure tests within devtools/client/netmonitor are https-first compliant r=bomsy
A lot of tests need to disable https-first because of the proxy issue.

Differential Revision: https://phabricator.services.mozilla.com/D128640
2021-10-19 06:20:49 +00:00
James Teh 72a9e32e30 Bug 1735952 part 2: Support IAccessible::accLocation for RemoteAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D128561
2021-10-19 03:58:57 +00:00
James Teh a2353ff109 Bug 1735952 part 1: Support QueryInterface to IAccessibleValue for RemoteAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D128560
2021-10-19 03:58:56 +00:00
James Teh f0399f75aa Bug 1735953: Temporary a11y state hacks to get NVDA to render virtual buffers for cached documents. r=morgan
1. Don't return an error from IAccessible2::states. Otherwise, NVDA assumes the Accessible is defunct.
2. Return STATE_SYSTEM_READONLY for all documents in IAccessible::get_accState. Otherwise, NVDA doesn't treat the document as browseable.

Differential Revision: https://phabricator.services.mozilla.com/D128556
2021-10-19 03:58:14 +00:00