Commit Graph

793522 Commits

Author SHA1 Message Date
Neil Deakin
2596b808fa Bug 1746052, add methods to the mime service that compute and validate a filename for a given content type, r=Gijs
The code in SanitizeFilename will be expanded upon in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D135951
2022-05-03 19:44:24 +00:00
Neil Deakin
976c5b23db Bug 1746052, add a means to get the filename that should be used for saving an image to disk, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D135950
2022-05-03 19:44:24 +00:00
David Shin
30d6445f84 Bug 1766886 - Use mozilla::variant in ComputedTimingFunction to contain the function implementation. r=boris
Also minor refactorings:
- Less Init() calls
- Remove unused `Compare` functions
- Add explicit casts to narrowing conversions

Differential Revision: https://phabricator.services.mozilla.com/D145014
2022-05-03 19:41:37 +00:00
Mark Banner
aab0a0ff9c Bug 1767479 - Copy the staged node_modules for eslint-plugin-mozilla when running ESLint on CI to ensure the node task runs correctly. r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D145347
2022-05-03 19:41:02 +00:00
Andrew McCreight
62572a8431 Bug 1767354 - Print out less information when leakcheck passes. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D145349
2022-05-03 19:30:21 +00:00
Manuel Bucher
abf74c8a01 Bug 1753730 - Test that the cached image from the early hint preload is used r=necko-reviewers,ckerschb,dragana,kershaw
* Test that the preloaded image is actually used and that no preload requests
  are made if the resource shouldn't be preloaded

Differential Revision: https://phabricator.services.mozilla.com/D139740
2022-05-03 19:24:42 +00:00
Manuel Bucher
2952cf8ce7 Bug 1753730 - Add EarlyHintPreloader to load 103 Early Hint responses into the cache r=necko-reviewers,ckerschb,dragana,kershaw
Currently only same origin requests are preloaded and preloads in the
secure context. This may change in the future to match W3C decisions and
Chromes behavior.

Also only images get preloaded. This will change in the future to cover
asset types.

Currently the anchor isn't parsed correctly yet[1], so this will be
fixed in a future patch.

On non-2xx responses of the main document all ongoing preloads get
canceled. Already completed preloads don't get affected and are in the
cache.

It is currently untested whether unused preloads don't have side effects.

Another future patch should cover adding the preload to the devtools.

[1]: https://datatracker.ietf.org/doc/html/rfc8288#section-3.2

Differential Revision: https://phabricator.services.mozilla.com/D137885
2022-05-03 19:24:42 +00:00
Manuel Bucher
d2e465a0b2 Bug 1753730 - Fix early hint not propagating with http proxy r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D141760
2022-05-03 19:24:41 +00:00
Edgar Chen
177354af27 Bug 1756388; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D144193
2022-05-03 19:11:30 +00:00
Tom Ritter
527680376d Bug 1767335: Fix mach vendor pattern replacement r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D145360
2022-05-03 19:09:12 +00:00
Drew Willcoxon
6c9788ddd7 Bug 1765595 - Add a Nimbus variable to load Firefox Suggest suggestions with a different type on RS. r=nanj
This adds a new `quickSuggestRemoteSettingsDataType` Nimbus variable whose value
will be used as the `type` filter when fetching data from remote settings.

Differential Revision: https://phabricator.services.mozilla.com/D145266
2022-05-03 18:23:56 +00:00
Neil Deakin
18f85bb221 Bug 1742648, remove special case for downloading pdfs in subframes, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D145233
2022-05-03 18:13:52 +00:00
Emilio Cobos Álvarez
b8634fa5f9 Bug 1673140 - Wait for screen coords to be ready in browser_datetime_datepicker.js. r=handyman
As per comments in the bug I never managed to reproduce this locally or
in pernosco, but given the structure of the test (open tab, get element
position, show picker, check picker position in screen coords), it makes
some amount of sense that it could hit this race.

I'm confirming on try that this reduces or fixes the intermittent race
but given it's a oneliner I don't feel too bad sending it for review
early :)

Differential Revision: https://phabricator.services.mozilla.com/D145305
2022-05-03 18:01:51 +00:00
Emilio Cobos Álvarez
f3edc98c4b Bug 1765423 - Make tooltips look nicer with default window themes. r=dao
For that, make the Windows rounded-rect code apply to tooltips as well.

Differential Revision: https://phabricator.services.mozilla.com/D145327
2022-05-03 17:30:45 +00:00
Emilio Cobos Álvarez
ae63baa75c Bug 1765423 - Use Window/WindowText for tooltips in the default Windows theme. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D145323
2022-05-03 17:30:44 +00:00
Doug Thayer
04d1c8fd1e Bug 1756823 - Replace ConsoleAPIStorage observer calls with js array r=nchevobbe,webdriver-reviewers,geckoview-reviewers,agi,jdescottes
See the comment in the file explaining it. For a case of logging 100k numbers,
this dropped the time per number from 15 microseconds to 9 with the console
closed, and 55 microseconds to 38 with the console open. I think we could shave
off more with a native approach, but I don't know that it's worth it and it's
much more likely for that to introduce bugs.

Differential Revision: https://phabricator.services.mozilla.com/D143782
2022-05-03 17:21:59 +00:00
Thomas Wisniewski
e5f2d78d34 Bug 1762851 - Have the SmartBlock Google Publisher Tags shim report non-empty slots and clear them as sites expect; r=webcompat-reviewers,ksenia
Differential Revision: https://phabricator.services.mozilla.com/D145342
2022-05-03 17:02:28 +00:00
Kershaw Chang
9cbcc4dab4 Bug 1766683 - Disable websocket over h2 tests, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D145019
2022-05-03 16:39:39 +00:00
Cristian Tuns
4c7ece1339 Backed out changeset e2908f3e5373 (bug 1718228) for causing mochitest failure in test_webauthn_loopback.html CLOSED TREE 2022-05-03 12:44:19 -04:00
Barret Rennie
217dd347c1 Bug 1767266 - Make ExtensionDoorhanger.schema.json more lenient r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D145241
2022-05-03 16:37:19 +00:00
Yury Delendik
7b78f5e339 Bug 1766806 - Avoid checkIntegrity failure in f32.copysign wasm instruction. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D145009
2022-05-03 16:32:07 +00:00
Cristian Tuns
ffa4c47716 Backed out changeset f691cceafea6 (bug 1718083) for causing mochitest failures in test_autocomplete_autofill_related_realms_no_dupes.html CLOSED TREE 2022-05-03 12:31:24 -04:00
Matthew Gaudet
6f1f2aa943 Bug 1767342 - Enable user defined byte stream by default r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D145340
2022-05-03 16:10:08 +00:00
Lars T Hansen
a7fcf7f104 Bug 1767177 - Accommodate catch values. r=yury
Differential Revision: https://phabricator.services.mozilla.com/D145196
2022-05-03 16:03:14 +00:00
R. Martinho Fernandes
7775acb534 Bug 1718228 - Make CollectedClientData follow the spec r=dveditz,baku
Differential Revision: https://phabricator.services.mozilla.com/D136881
2022-05-03 15:52:36 +00:00
Emilio Cobos Álvarez
351616349b Bug 1469174 - Implement media feature expression multi-range syntax. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D145231
2022-05-03 15:50:13 +00:00
Molly Howell
e19b26be6c Bug 1767464 - Enable PIP captions on all channels. r=pip-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D145343
2022-05-03 15:43:26 +00:00
Jamie Nicol
696fe23ef3 Bug 1766990 - Redirect stdout and stderr to file for wrench tests on Android. r=gfx-reviewers,nical
On Android long lines are truncated by logcat, meaning the base64
images output by wrench's reftest harness get truncated. The glue code
used by the old version of cargo-apk automatically split long lines,
which we then stitched back together again when parsing the
log. However, the glue used by the new cargo-apk no longer does this.

While we could manually split the long strings ourselves, this method
has always been unreliable. Instead, this patch makes us additionally
write stdout and stderr to a file as well as logcat. The test runner
script then pulls this file from the device and scrapes it rather than
the logcat.

Differential Revision: https://phabricator.services.mozilla.com/D145076
2022-05-03 15:37:49 +00:00
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