Commit Graph

793494 Commits

Author SHA1 Message Date
Mathieu Leplatre
1e8942f6d1 Bug 1718083 - Load dump if newer than local data r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D141955
2022-05-03 15:32:48 +00:00
Frederik Braun
e0e7fe2c04 Bug 1767395 disallow loading http/https scripts for systemprincipal r=ckerschb,tjr
This copies over the behavior for style & subdocument restrictions.
Admittedly, with this if/else spagetthi, it would be preferable to
turn this into restriction levels or lump some of the known-to-be-safe
prefs together, but I would prefer we wait a couple of cycles to
make sure this makes it all the way to release before we refactor.

Differential Revision: https://phabricator.services.mozilla.com/D145306
2022-05-03 15:28:34 +00:00
Nika Layzell
daa77d1cda Bug 1767321 - Preserve content-disposition filename through cross-process redirects, r=smaug,Gijs
The relevant information was already being set on the final channel when
not performing a process switch [1], but it was not copied for
cross-process redirects, despite being sent to the child process. This
wasn't a problem previously, as we would handle downloads in the parent
process, but with the download panel improvements, it is an issue.

This issue led to the wrong filename being selected by default when
clicking on the save icon in a downloaded PDF from a blob URL, as the
information was lost before being passed to the pdf.js stream filter.

[1]: https://searchfox.org/mozilla-central/rev/87ecd21d3ca517f8d90e49b32bf042a754ed8f18/netwerk/ipc/DocumentChannelChild.cpp#308-315

Differential Revision: https://phabricator.services.mozilla.com/D145255
2022-05-03 15:02:12 +00:00
Serge Guelton
7648a84eba Bug 1765593 - Cleanup mozilla-unified includes r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D144202
2022-05-03 14:57:45 +00:00
Alex Finder
41b9fe7ba7 Bug 1755491 Disable connection to upstream server to look up certificate details when using mitmproxy 7 r=perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D144004
2022-05-03 14:23:11 +00:00
Cristian Tuns
333465c319 Backed out changeset 389fef3e4368 (bug 1767334) for causing mochitest failures on GMPServiceParent.cpp CLOSED TREE 2022-05-03 10:08:13 -04:00
Cristian Tuns
c39878171b Backed out 2 changesets (bug 1767170) for causing mochitest failures on test_peerConnection_stats.html
Backed out changeset 6a9644bbebed (bug 1767170)
Backed out changeset cdaeac6adf56 (bug 1767170)
2022-05-03 10:07:29 -04:00
Paul Zuehlcke
2963d46a35 Bug 1767440 - Clean up obsolete rollout search param prefs. r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D145324
2022-05-03 13:44:39 +00:00
Tom Ritter
b3eebfc6a7 Bug 1766866: Restricting other preferences we don't want in the content process r=bholley
This list contains items that contain actual user data like
their device name or their downloads path, items that contain
UUIDs that could be used to track users across different
origins, sessions, or private browsing, and values that
either change occassionally or don't have enough entropy to
serve as a long-lived UUID, but do have enough entropy to be
used as a short-term correlatable identified to e.g.
de-anonymize someone use the VPN feature of containers.

Depends on D145259

Differential Revision: https://phabricator.services.mozilla.com/D145260
2022-05-03 13:42:57 +00:00
Tom Ritter
323263f1e3 Bug 1766866: Improve assertions for Static Preferences r=KrisWright
During testing I started hitting these cases that were not
well-documented for the person hitting the crash, so let's
improve them.

Differential Revision: https://phabricator.services.mozilla.com/D145259
2022-05-03 13:42:57 +00:00
Mitchell Hentges
be8b9cb5ec Bug 1765361: Only resolve objdir from virtualenv if mozinfo not ancestor r=glandium
Virtualenv-based objdir detection doesn't work for instrumented builds,
as instrumentation-specific objdirs aren't created.

Resolve this by:
* Removing redundant cwd-based topsrcdir resolution - the
  `__file__`-based code path below covers this case.
* Only using virtualenv-based resolving if topsrcdir isn't resolved.
* Documenting that virtualenv-based resolution is problematic for
  instrumented builds.

Differential Revision: https://phabricator.services.mozilla.com/D144030
2022-05-03 13:40:15 +00:00
Tom Ritter
903cce1100 Bug 1766948 - Add cargo to the Updatebot Docker image r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D145127
2022-05-03 13:37:19 +00:00
Ed Lee
a44d3fcd75 Bug 1767361 - Skip some colorway tests if none are available for testing r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D145288
2022-05-03 13:35:19 +00:00
stransky
d8febb7fc5 Bug 1766797 Add AV1 test to TestMediaDataDecoder r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D144929
2022-05-03 13:25:56 +00:00
pankaj28988
d1becba15c Bug 1762795 - Removed dead links in contribution doc. r=sylvestre DONTBUILD
Updated links to Bugzilla and added links to Developer Guide

Differential Revision: https://phabricator.services.mozilla.com/D143998
2022-05-03 13:19:54 +00:00
Jeff Muizelaar
acd2c0f52f Bug 1767334. Add some telemetry about whether H264 encoding is available in the parent. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D145265
2022-05-03 13:17:43 +00:00
Norisz Fay
114c4be082 Bug 1767170 - Linting fix r=fix CLOSED TREE 2022-05-03 16:24:46 +03:00
Andrew McCreight
1aa3d5d504 Bug 1624031 - Ignore leaks in the webdriver/new_session directory. r=intermittent-reviewers,webdriver-reviewers,jgraham
This is failing frequently, and leaks from webdriver restarting the
browser or whatever probably aren't really important.

Differential Revision: https://phabricator.services.mozilla.com/D145278
2022-05-03 13:00:32 +00:00
Jeff Muizelaar
4e9620adae Bug 1767170 - Add some more outbound-rtp stats. r=ng,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D145177
2022-05-03 12:51:36 +00:00
Emilio Cobos Álvarez
997a56b018 Bug 1759686 - Extend part 4 to resolve keyword sizes correctly, and reuse existing code to turning lengths into absolute pixels. r=jfkthame
I think it doesn't make sense to support em/percentages without
supporting smaller/bigger/other font-relative things.

I have many questions about how other units like viewport-units etc are
supposed to behave. Blink seems to resolve viewport units to zero:

  https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/resolver/font_style_resolver.cc;l=15-27;drc=5e62802ab420dc1743a1824ec4b537a730b2b24b

Which might be reasonable, but I think keeping a simple model consistent
with what other code like DOMMatrix does seems better for now.

Differential Revision: https://phabricator.services.mozilla.com/D144455
2022-05-03 12:39:10 +00:00
Jonathan Kew
746059b94b Bug 1759686 - patch 4 - Extend ServoCSSParser::ParseFontShorthandForMatching to (optionally) return font size in addition to family/style. r=emilio
When running in a Worker, the canvas2d SetFontInternal method can't call GetFontStyleForServo
because it doesn't have a canvasElement or presShell to pass. But we can use the method
ServoCSSParser::ParseFontShorthandForMatching to parse the canvas 'font' property, if we
extend it so as to also return the size from the font shorthand.

(This is incomplete by itself; Emilio's following patch fixes it up, so the intention is to land them together.)

Depends on D144186

Differential Revision: https://phabricator.services.mozilla.com/D144187
2022-05-03 12:39:09 +00:00
Jonathan Kew
0cf6fb1bdd Bug 1759686 - patch 3 - Ensure prefs that may be accessed by canvas2d text code are atomic. r=lsalzman
These need to be atomic so that they can be accessed by canvas code when running on a worker thread
without calling main-thread-only Preferences APIs.

Depends on D144185

Differential Revision: https://phabricator.services.mozilla.com/D144186
2022-05-03 12:39:09 +00:00
Jonathan Kew
723077462f Bug 1759686 - patch 2 - Remove redundant null-checks in CanvasRenderingContext2D, as GetPresShell() will check these members. r=lsalzman
We don't need to null-check the mCanvasElement and mDocShell members in these methods,
and bail out if neither is provided, because in that case the following GetPresShell() call
will return null and we'll bail out there anyhow.

Removing these extra checks will simplify the changes involved in enabling the canvas code
to be used in a Worker context, where it is not connected to a document.

Depends on D144184

Differential Revision: https://phabricator.services.mozilla.com/D144185
2022-05-03 12:39:08 +00:00
Jonathan Kew
6209edec06 Bug 1759686 - patch 1 - Remove unused mPresContext member from CanvasRenderingContext2D. r=lsalzman
Nothing uses this member, so remove it to make it clear we don't need to provide it
when setting up a CanvasRenderingContext2D.

Differential Revision: https://phabricator.services.mozilla.com/D144184
2022-05-03 12:39:08 +00:00
Meg Viar
d1e43f8a73 Bug 1766286 - messaging-sytem/onboarding pings often contain top-level 'id' field r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D145246
2022-05-03 12:27:16 +00:00
Nika Layzell
2cef287b86 Bug 1766682 - Request longer timeout for browser_download_open_with_internal_handler.js, r=Gijs DONTBUILD
The patch appears to have caused an increase in timeouts, but based on a
quick scan of the log, it appears it's due to the test running right
against the time limit, rather than due to the test deadlocking or
similar.

Differential Revision: https://phabricator.services.mozilla.com/D145235
2022-05-03 12:02:31 +00:00
Cristian Tuns
31102d1c1c Backed out changeset 79f782edbda9 (bug 1718083) for causing xpcshell failures in test_supports_filter_expressions CLOSED TREE 2022-05-03 08:06:36 -04:00
Shane Hughes
e35a0919fb Bug 1767367 - Fix inverted useDownloadDir pref. r=dao,preferences-reviewers,Gijs
I forgot to add a property in bug bug 1762775.
This patch just resolves that.

Differential Revision: https://phabricator.services.mozilla.com/D145289
2022-05-03 11:57:08 +00:00
Daisuke Akatsuka
d0a712aba3 Bug 1765508: Support negative numbers for unit converter. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D144529
2022-05-03 11:44:14 +00:00
Jan Varga
2b350c618a Bug 1750933 - Add testing infrastructure for OPFS; r=dom-storage-reviewers,jari
Differential Revision: https://phabricator.services.mozilla.com/D136317
2022-05-03 11:38:15 +00:00
Mathieu Leplatre
a7af2dc794 Bug 1718083 - Load dump if newer than local data r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D141955
2022-05-03 11:30:43 +00:00
Paul Zuehlcke
2867b7f2bd Bug 1766828 - Enable external protocol sandbox restrictions in release config. r=ckerschb,annevk
Differential Revision: https://phabricator.services.mozilla.com/D145073
2022-05-03 10:58:59 +00:00
Yulia Startsev
94d3495581 Bug 1764598 - Cleanup: Use IsDebuggerScript instead of accessing field; r=asuth
Small Cleanup: We have this function but sometimes we manually check the type.

Differential Revision: https://phabricator.services.mozilla.com/D144960
2022-05-03 10:16:59 +00:00
Yulia Startsev
3c43ebe140 Bug 1764598 - Cleanup: Migrate GetBaseURI function to WorkerScriptLoader method; r=asuth
Small cleanup: GetBaseURI is one of the methods of a ScriptLoadInterface. This also makes it easier
to split these into files (done separately)

Differential Revision: https://phabricator.services.mozilla.com/D144835
2022-05-03 10:16:58 +00:00
Yulia Startsev
1758f28850 Bug 1764598 - LoadHandler part 4: Rename CacheScriptLoader and LoaderListener to {Cache,Network}LoadHandler; r=asuth
This makes the relationship between these classes and the dom ScriptLoadHandler clearer. Once we
move to ScriptLoadRequests, these three classes will share a loadhandler class which will take care
of script decoding.

Differential Revision: https://phabricator.services.mozilla.com/D145063
2022-05-03 10:16:58 +00:00
Yulia Startsev
e4f349024b Bug 1764598 - LoadHandler part 3: Move {DataReceivedFromCache,DataReceived} from WorkerScriptLoader to CacheScriptLoader; r=asuth
Similar to what was done with the prior patch, this can be described as the companion method to
loading from the network in the LoaderListener, with special requirements in terms of how it populates the loaded request
data and updates the WorkerPrivate. At some point, it may make sense to have the service worker loader as a child class of the
main worker loader, but that won't be done here (I hope anyway).

Differential Revision: https://phabricator.services.mozilla.com/D144838
2022-05-03 10:16:57 +00:00
Yulia Startsev
20a6a24d22 Bug 1764598 - LoadHandler Part 2: Rename LoaderListener {OnStartRequest, OnStreamComplete}Internal methods; r=asuth
We don't have a correlation to these methods in the ScriptLoadHandler on the DOM side. For now,
rename them to make the difference clear.

Differential Revision: https://phabricator.services.mozilla.com/D144837
2022-05-03 10:16:57 +00:00
Yulia Startsev
7edb053e01 Bug 1764598 - LoadHandler Part 1: Move onStreamComplete and onStartRequest methods from WorkerScriptLoader to LoaderListener; r=asuth
The LoaderListener is currently used to forward events to WorkerScriptLoader. It fills a similar
role to the ScriptLoadHandler on the DOM both for OnStartRequest and OnStreamComplete. In the case
of the DOM loader, the responsibility for performing certain channel related tasks is left to the
ScriptLoadHandler, in particular the decoding of the string into UTF8 or UTF16.

While the decoding is embedded in the onStreamCompleteInternal method, it is not a 1:1 mapping.
Some of the responsibilities handled in the `OnStreamCompleteInternal` method are instead handled in
`ScriptLoader::PrepareLoadedRequest`, such as populating the SourceMaps field, managing the channel,
etc are normally handled within the ScriptLoader.

However, in the case of the WorkerScriptLoader we have two paths to reach a completed load:
* from the network
* from the cache

These have different requirements in terms of preparing the loaded request, for example the cache
does not forward a SourceMap.

In the interest of not complicating things too much, for now the method is moved wholesale into
LoaderListener. In a separate PR I will handle renaming. The next step will be to do a similar move
for the CacheScriptLoader.

Differential Revision: https://phabricator.services.mozilla.com/D144836
2022-05-03 10:16:57 +00:00
Yulia Startsev
a1630217f7 Bug 1764598 - WSL Part 6: Rename WorkerScriptLoader Evaluation methods; r=asuth
This just brings us a bit closer to the DOM pattern of Script Loading. One difference is that we
evaluate a source buffer instead of a JSScript, so rather than "Execute", we will still ahandle data
using "Evaluate". Maybe later we can make these two methods on the SpiderMonkey side a bit more
descriptive. For now this gets us pretty close to the goal of "if you know the DOM script loader, you know the
Worker Script loader" and vice-versa.

Differential Revision: https://phabricator.services.mozilla.com/D145065
2022-05-03 10:16:56 +00:00
Yulia Startsev
5b4be177f5 Bug 1764598 - WSL Part 5: Rename ExecuteFinishedScripts to "DispatchProcessPendingRequests"; r=asuth
This is mostly to bring us in line with the naming of everything else, and also make it clear that
we are crossing a thread boundary.

Differential Revision: https://phabricator.services.mozilla.com/D144990
2022-05-03 10:16:56 +00:00
Yulia Startsev
e6c5265f9b Bug 1764598 - WSL Part 4: Move contents of Prerun and WorkerRun to named functions on WorkerScriptLoader; r=asuth
Continuation of integrating methods from the ScriptExecutorRunnable into the WorkerScriptLoader. In this
case, the primarily function being moved here is the batch evaluation of scripts. This roughly
aligns with the ProcessPendingRequests. The function has been renamed to reflect the similarity of
responsibilities between the two classes.

As a driveby change -- the prerun function now only has one responsibility, and it is related to
loading so this has been moved and named.

Differential Revision: https://phabricator.services.mozilla.com/D144961
2022-05-03 10:16:56 +00:00
Yulia Startsev
8019adc26f Bug 1764598 - WSL Part 3: Move ScriptExecutorRunnable methods to WorkerScriptLoader; r=asuth
Part 1 of integrating the operations that the ScriptExecutorRunnable was doing on the
WorkerScriptLoader into the WorkerScriptLoader itself. This first pass moves some of the smaller,
contained functions over to the WorkerScriptLoader: The shutdown, evaluate and logging methods.

Differential Revision: https://phabricator.services.mozilla.com/D144327
2022-05-03 10:16:55 +00:00
Yulia Startsev
dca426a430 Bug 1764598 - WSL Part 2: Create a DispatchLoadScripts method; r=asuth
This encompasses the dispatching of the loader runnable as part of the api of WorkerScriptLoader.
The same pattern will be used for the ScriptExecutorRunnable. We might be able to just use an NS
runnable method instead here, if that is preferred.

Differential Revision: https://phabricator.services.mozilla.com/D144991
2022-05-03 10:16:55 +00:00
Yulia Startsev
735cde82b9 Bug 1764598 - WSL Part 1: Separate Runnable from WorkerScriptLoader; r=asuth
We are gradually moving closer towards a ScriptLoader implementation based on the DOM ScriptLoader.

The patch is done in three parts:

* WorkerScriptLoader adjustments (WSL Parts 1-6)
* LoaderHandler class adjustments (LoadHandler Parts 1-4)
* Cleanups

The class ScriptLoaderRunnable was being passed between runnables to access information
that was shared. That role will now be done by the WorkerScriptLoader which will eventually inherit
from ScriptLoaderInterface. This is the basis for building up the Module Loader implementation for
workers. This first patch splits the responsibility of the runnable and the data holding class.

In the next few patches, methods from the ScriptExecutorRunnable will also be moved into this class,
and the runnables themselves will no longer hold execution information. Instead, they will be used
as dispatchers to have the work run in the correct place. In the next step, the same pattern will be
done with the ScriptExecutorRunnable.

Differential Revision: https://phabricator.services.mozilla.com/D144326
2022-05-03 10:16:55 +00:00
Cristian Tuns
34c585cc43 Merge mozilla-central to autoland on a CLOSED TREE 2022-05-03 05:44:41 -04:00
Cristian Tuns
31dae823a3 Merge autoland to mozilla-central. a=merge 2022-05-03 05:40:42 -04:00
Max Vollmer
ed87c3414b Bug 1761456 - Add natvis file for Visual Studio projects and update debugging documentation r=mhentges,handyman DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D143183
2022-05-03 09:04:48 +00:00
Serge Guelton
c836a68f76 Bug 1764408 - Cleanup toolkit/mozapps/update includes r=application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D143531
2022-05-03 09:03:29 +00:00
Dan Robertson
4c5bf0dcba Bug 1767025 - Remove undesirable extensions from mercurial docs. r=sheehan DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D145090
2022-05-03 09:02:25 +00:00
Timothy Nikkel
13eda1a6f0 Bug 1762881. Add test. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D143434
2022-05-03 08:56:47 +00:00