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

805376 Коммитов

Автор SHA1 Сообщение Дата
Dana Keeler 51aa6b77a8 Bug 1784098 - make nsICacheEntry.securityInfo explicit as nsITransportSecurityInfo r=kershaw,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D154472
2022-08-22 16:32:02 +00:00
Dana Keeler 5a1655a87d Bug 1784098 - make nsISocketTransport.securityInfo explicit as nsISSLSocketControl r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D154257
2022-08-22 16:32:01 +00:00
Dana Keeler 0142f6d701 Bug 1784098 - move nsITLSServerConnectionInfo from nsISocketTransport.securityInfo to securityCallbacks r=necko-reviewers,kershaw
In preparation for making nsISocketTransport.securityInfo a concrete type
(nsITransportSecurityInfo), nsITLSServerConnectionInfo needs to be moved off of
securityInfo. securityCallbacks seems like a reasonable place.

Differential Revision: https://phabricator.services.mozilla.com/D154256
2022-08-22 16:32:01 +00:00
Marco Bonardo b98d9c21b2 Bug 1782854 - Don't store local uri favicons after pageShow. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D155217
2022-08-22 16:29:37 +00:00
Yulia Startsev 7e38c5af58 Bug 1784457 - Add documentation to worker kinds; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D154521
2022-08-22 16:22:05 +00:00
Yulia Startsev eeadeb575f Bug 1784457 - Implement IsTopLevel in place of IsMainWorkerModule; r=asuth
This implements the core of the change -- which is implementing an explicit IsTopLevel flag for
`WorkerLoadContexts`, and removing `mIsMainScript` from the loader. I've asked for some
clarification on this part of the spec from the whatwg editors, as I think this may be misnamed. It
is likely that what is meant here is `IsInitialScript` rather than `IsTopLevel` -- as there is a
note stating that this should be initialized with the agent cluster. Once this is clarified I may
update the name.

Differential Revision: https://phabricator.services.mozilla.com/D147319
2022-08-22 16:22:04 +00:00
Yulia Startsev 415c74a6cd Bug 1784457 - Split GetBaseURI into two functions; r=asuth
`GetBaseURI` will implement the virtual method `GetBaseURI` from ScriptLoaderInterface
(https://searchfox.org/mozilla-central/rev/6ec440e105c2b75d5cae9d34f957a2f85a106d54/js/loader/ModuleLoaderBase.h#64)
-- but the behavior needed there is only ever for child modules. By splitting this, we remove
contextual information which is only used for the initial script.

Differential Revision: https://phabricator.services.mozilla.com/D154520
2022-08-22 16:22:04 +00:00
Yulia Startsev 472e3c8cf5 Bug 1784457 - Remove unused mLoadingWorkerScript atomic boolean from WorkerPrivate; r=asuth
After investigating this a bit, I found that this wasn't used. It seems safe to remove.

Differential Revision: https://phabricator.services.mozilla.com/D154519
2022-08-22 16:22:04 +00:00
Norisz Fay 352fb67ada Backed out changeset 7cc5332b0fdf (bug 1786284) for causing build bustage on COLRFonts.cpp CLOSED TREE 2022-08-22 19:33:18 +03:00
Olli Pettay 78641fd90d Bug 1785109, mark CustomElementRegistry as multizone holder, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D154878
2022-08-22 16:12:26 +00:00
Nika Layzell 58fa28bce4 Bug 1781129 - Part 4: Fix issues caused by Shmem arguments no longer being visible to ipdl, r=ipc-reviewers,jld
Due to Shmem implementing ParamTraits, it is possible for a Shmem argument to
not be visible to the IPDL compiler as it is only serialized within an opaque
type included with `using`. If that happens, it would cause the construction of
the Shmem to fail on the other side, in a hard to diagnose manner. This changes
the logic to always allow any actor to manage shmems, to make it more in line
with the `AllocShmem` method being directly declared on IProtocol.

This specifically caused issues after this patch stack with PContent, which no
longer has any shmem arguments visible to IPDL after these changes, but still
is used as a manager for Shmems included in some messages.

Differential Revision: https://phabricator.services.mozilla.com/D151855
2022-08-22 15:38:16 +00:00
Nika Layzell e1c2681a2f Bug 1781129 - Part 3: Remove Shmem overload of GetSurfaceData, r=edgar
After the previous changes there was only one consumer left of the Shmem
version of GetSurfaceData, which could easily be changed to use BigBuffer,
removing the need for that overload.

After that consumer is removed, the interface was also simplified as the
generic logic in the implementation was no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D151854
2022-08-22 15:38:15 +00:00
Nika Layzell f8a40edbb1 Bug 1781129 - Part 2: Use BigBuffer for ShmemImage, r=edgar
The ShmemImage type was previously implemented using a Shmem, however due to
the usage patterns, `BigBuffer` is probably a better fit, and allows unifying
more code in nsContentUtils.

Differential Revision: https://phabricator.services.mozilla.com/D151853
2022-08-22 15:38:15 +00:00
Nika Layzell 6c8af6eff5 Bug 1781129 - Part 1: Use BigBuffer for IPCDataTransfer, r=edgar
The IPCDataTransfer type is used to transfer Clipboard/Drag & Drop payloads
over IPC to allow them to be written to or read from the relevant system
interfaces. Previously, the system which was used was somewhat complex, and
tried to use Shmem in some cases to store buffers out of line. Now that
BigBuffer is available, it can be simplified substantially.

In addition, this change removed the memory buffer overload of GetSurfaceData,
as the only consumer was using it to immediately send the payload over IPC as a
nsCString. It was changed to instead use `BigBuffer` as that is more efficient
in a large buffer situation, and reduces the number of required copies.

Differential Revision: https://phabricator.services.mozilla.com/D151852
2022-08-22 15:38:14 +00:00
Nika Layzell 373e6ff98e Bug 1694993 - Part 5: Add a simple test for javascript URIs with noopener, r=smaug
Depends on D154566

Differential Revision: https://phabricator.services.mozilla.com/D154567
2022-08-22 15:35:28 +00:00
Nika Layzell 182e87b678 Bug 1694993 - Part 4: Copy session storage before loading, and only for newly created windows, r=smaug
Previously we would copy session storage even if we were not opening a new
window, meaning that a targeted load could re-trigger a copy. This was not
specified in the standard so is being changed to only copy when a new window is
created. In addition, the copy was moved before navigaton starts, again for
more consistency with ordering for the standard, such that things like
`javascript:` URI loads will oberve the up-to-date session storage.

Depends on D154565

Differential Revision: https://phabricator.services.mozilla.com/D154566
2022-08-22 15:35:28 +00:00
Nika Layzell 12a31a7f46 Bug 1694993 - Part 3: Rename some variables in nsWindowWatcher for clarity, r=smaug
The `newBC` and `newDocShell` variables were potentially confusing, as they
could also be existing windows selected by named targeting or the window
provider, so they have been renamed. Some other variables were also renamed for
consistency and clarity.

Depends on D154564

Differential Revision: https://phabricator.services.mozilla.com/D154565
2022-08-22 15:35:28 +00:00
Nika Layzell e245126ac8 Bug 1694993 - Part 2: Explicitly select the principal for newly created windows in nsWindowWatcher, r=smaug
When opening a window with `noopener`, we will no longer inherit the
subject principal into the newly created window's initial about:blank
document, instead creating a new null principal.

This patch also makes the system/expanded principal -> null principal
translation happen earlier (it previously happened in
SetInitialPrincipalToSubject), so that it can be followed more easily
when reading the code.

Finally, the load started by nsWindowWatcher in new windows is updated
to specify `LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL` when noopener is
specified such that the explicit about:blank load also cannot inherit
the subject principal.

This change does make it so that the global is not re-used between the
initial and loaded about:blank document, however this shouldn't be
visible due to `noopener` being specified, preventing any references to
the initial document from existing.

Noopener loads with `javascript:` URIs will be rejected early during the
load due to the mismatch between the triggering principal and the
initial about:blank document's principal.

Depends on D154563

Differential Revision: https://phabricator.services.mozilla.com/D154564
2022-08-22 15:35:27 +00:00
Nika Layzell 4c195ef117 Bug 1694993 - Part 1: Be more explicit about principals used when creating pop-up windows, r=smaug
Previously we would pull this information frequently from the subject
principal, which is unreliable. With this new approach, we more explicitly pass
the principals around as-needed into where they're going to be used.

Some assertions about the subject principal were introduced to ensure that
assumptions made about chrome windows and the system principal are not
incorrect.

Differential Revision: https://phabricator.services.mozilla.com/D154563
2022-08-22 15:35:27 +00:00
Cosmin Sabou ad546f5143 Merge mozilla-central to autoland. 2022-08-22 18:27:52 +03:00
Cosmin Sabou 49ea5a9b56 Merge autoland to mozilla-central. a=merge 2022-08-22 18:25:51 +03:00
Norisz Fay 211a6e89ae Backed out changeset 879e2ae70979 (bug 1748975) for causing reftest failures on key-enter-single-summary.html CLOSED TREE 2022-08-22 18:16:34 +03:00
Norisz Fay 4382443ef8 Backed out changeset 9fcfb99bfb91 (bug 1739381) for causing build bustage on AudioNodeEngine.cpp 2022-08-22 18:15:21 +03:00
Jonathan Kew 29a2bea9fd Bug 1786284 - Improve handling of errors in COLRv1 font tables. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155211
2022-08-22 15:00:51 +00:00
amabb c96585de9f Bug 1739381 - Add TRACE macros in all AudioNodeEngine sub classes ProcessBlock and ProcessBlocksOnPorts methods. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D145167
2022-08-22 14:54:46 +00:00
Paul Zuehlcke f285b38a20 Bug 1786305 - Add members.rally.mozilla.org redirect to Firebase sign-in shim. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D155092
2022-08-22 14:50:19 +00:00
Sergey Galich 3537015cd1 Bug 1559205, 1611093, 1748828 - support moz-proxy in about:logins r=dimi
Uri.host throws when scheme is moz-proxy://
This leads to a series of bugs on about:logins when creating or editing moz-proxy URLs.

This patch is supposed to close bug 1559205, bug 1611093 and bug 1748828.

Differential Revision: https://phabricator.services.mozilla.com/D154925
2022-08-22 14:49:32 +00:00
Dão Gottwald aed8fc030d Bug 1786011 - Show the "List all tabs" button unconditionally. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D155076
2022-08-22 14:48:49 +00:00
Olivia Hall 8454981589 Bug 1771012 - GeckoView Open Tabs Test Utility r=geckoview-reviewers,owlish
Adds event "GeckoView:Test:NewTab”, which allow testers to create tabs.

`GeckoViewTestUtils.jsm` sends the event from the JavaScript side for
use in testing.

A `ServiceWorkerDelegate` is required to be set for the
`GeckoRuntime` to use these events, which was setup on the test
runner.

Differential Revision: https://phabricator.services.mozilla.com/D152891
2022-08-22 14:44:38 +00:00
Mozilla Releng Treescript 00e5040835 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-08-22 14:31:36 +00:00
Mozilla Releng Treescript 9a6741e1f7 No bug - tagging 6c21710d688563963ed9b143e6794274354f1508 with FIREFOX_NIGHTLY_105_END a=release DONTBUILD CLOSED TREE 2022-08-22 14:31:28 +00:00
Adam Vandolder f809dd4291 Bug 1748975 - Don't trigger click event on untrusted keypresses for buttons and summaries. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D154942
2022-08-22 14:27:36 +00:00
Emilio Cobos Álvarez 9df7e6bca8 Bug 1782596 - Propagate preferred color-scheme to non-top frames. r=jwatt
The ColorSchemeMode::Preferred change doesn't make a difference (that
is, always use the preferred one), since when we only propagate from
top's embedder the embedder is chrome, which always has the preferred
color-scheme.

Differential Revision: https://phabricator.services.mozilla.com/D154931
2022-08-22 14:23:09 +00:00
Pat McGhen 69fb388a9e Bug 1743334 - [devtools] Add check for Android devices, allow for version number without sub version. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154657
2022-08-22 14:16:59 +00:00
Tom Ritter 84ac1b408c Bug 1785824: Fix Telemetry for XSLTProcessor r=janerik,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D154984
2022-08-22 13:59:41 +00:00
Mozilla Releng Treescript 44ea73b99d No bug - tagging 9f2aa726b7c2c3be6bd8116645cd2b8367086bdc with FIREFOX_BETA_105_BASE a=release DONTBUILD CLOSED TREE 2022-08-22 13:45:31 +00:00
ffxbld 6cb19f9e34 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D155203
2022-08-22 13:44:16 +00:00
Jonathan Kew 5839530325 Bug 1786281 - Use AutoHBBlob for temporary blobs in various places, to replace manual destruction. r=gfx-reviewers,lsalzman
Depends on D155208

Differential Revision: https://phabricator.services.mozilla.com/D155209
2022-08-22 13:36:16 +00:00
Jonathan Kew 166dab3f9d Bug 1786281 - Expose AutoHBBlob as a public helper in gfxFontUtils. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D155208
2022-08-22 13:36:16 +00:00
Cosmin Sabou 326adff110 Bug 1784343 - temporarily disable browser_feature_callout.js for frequent failures until it's fixed. r=mviar DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D155207
2022-08-22 13:15:33 +00:00
Hubert Boma Manilla 2f089e563b Bug 1782672 - [devtools] Make sure codemirror document still exists during component update/unmount r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153456
2022-08-22 12:12:12 +00:00
Cosmin Sabou 0e21c4a31c Bug 1784931 - Disable mozilla/test_restyles.html on linux tsan and android debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D155192
2022-08-22 12:07:25 +00:00
Jan-Niklas Jaeschke 423f372d5f Bug 1754298 - Allow Select options starting with whitespaces to be selected with keyboard. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D155075
2022-08-22 12:01:20 +00:00
Yulia Startsev 09daba2264 Bug 1783190 - Replace WorkerPrivate usage on CacheLoadHandler with ThreadSafeWorkerRef; r=asuth
Cleanup, Optional, Same as the NetworkLoadHandler.

Differential Revision: https://phabricator.services.mozilla.com/D154385
2022-08-22 11:43:02 +00:00
Yulia Startsev 0334d49d7e Bug 1783190 - Replace WorkerPrivate usage on NetworkLoadHandler with ThreadSafeWorkerRef; r=asuth
Cleanup, optional. Repeating the same work on the NetWorkLoaderHandler as on the WorkerScriptLoader.

Previously, this was considered "safe" because the assumption is that the NetworkLoadHandler is
shorter lived than the WorkerScriptLoader. Rather than assuming this, if we end up in a situation
where this does out-live the WorkerScriptLoader, then we will end up leaking.

Differential Revision: https://phabricator.services.mozilla.com/D154384
2022-08-22 11:43:02 +00:00
Yulia Startsev 6b185b9350 Bug 1783190 - Replace WorkerPrivate usage with ThreadSafeWorkerRef usage; r=asuth
Cleanup, optional. It seems strange to have two ways to access the WorkerPrivate, and
ThreadSafeWorkerRef seems like the more reasonable choice.

Differential Revision: https://phabricator.services.mozilla.com/D154383
2022-08-22 11:43:02 +00:00
Yulia Startsev e6dd426bff Bug 1783190 - Hold a ThreadSafeWorkerRef on WorkerScriptLoader; r=asuth
This addresses part of the issue, by holding a strong ref until we shutdown, so that we do not end
up in a situation where the worker closes before we finish cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D154381
2022-08-22 11:43:01 +00:00
Norisz Fay 14fd7ed50b Merge autoland to mozilla-central a=merge 2022-08-22 12:35:31 +03:00
harshrai654 b6c5f1c902 Bug 1776377 changed MessageHandler classes to use private class fields. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D154885
2022-08-22 07:23:08 +00:00
Mozilla Releng Treescript 4da7344816 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
en-GB -> 6d2d67a7006598c337fb4530827e5dd29f3981b4
hr -> b85b9b32c8c8caa109f89033544671e3f4854c0c
hsb -> 90d1f8b4b1f84d437e91229e305e077c93105083
tg -> 7eafb455ada2a06a35ced63321931bfc63c12b12
zh-TW -> 7770d4676d41f64810017ba6ab7cae25e864e67b
2022-08-22 06:57:09 +00:00