Commit Graph

788350 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
dfee9ee22b Bug 1758424 - Fire XUL events on native menus. r=stransky
Web extensions etc use these to clean up their menu items, for example.

For context menus there's no need to fire popupshowing, it's been done
by the popup manager already.

Differential Revision: https://phabricator.services.mozilla.com/D140522
2022-03-15 08:07:43 +00:00
Claudia
10881177f1 Bug 1759202 - [devtools] Adds test for persistence of content on Custom request panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D140873
2022-03-15 08:04:43 +00:00
criss
077abf3e70 Backed out changeset a71c8679213f (bug 1759318) for causing xpcshell failures on test_unitConversion.js. CLOSED TREE 2022-03-15 09:22:06 +02:00
Henrik Skupin
3bf7a452a5 Bug 1759434 - [remote] Update Remote Protocol docs for running specific Puppeteer tests only. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D140958
2022-03-15 07:10:36 +00:00
Mozilla Releng Treescript
d0532f99b5 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
es-AR -> b22d90c025f5cbb802814b9c84bc597dfebbc64e
2022-03-15 06:59:22 +00:00
Timothy Nikkel
4c457eaf07 Bug 1758670. Correctly record checkerboard telemetry in base telemetry, not extended. r=botond
This data should be collected in release/base telemetry see https://searchfox.org/mozilla-central/rev/131f3af9a49d2203adb7b7ef30dcc37c9f1aa10b/toolkit/components/telemetry/Histograms.json#240

The reason it is not is that originally we only collected it in extended telemetry until bug 1539309. Bug 1539309 only changed Histograms.json but didn't update the C++ code.

Depends on D140642

Differential Revision: https://phabricator.services.mozilla.com/D140643
2022-03-15 06:51:29 +00:00
Nicolas Chevobbe
2c30298ecd Bug 1759414 - [devtools] Move Export Visible Messages context menu actions outside of their submenu. r=jdescottes.
We take this opportunity to rename the actions so they're
more consistent with the other entries.

Depends on D140804

Differential Revision: https://phabricator.services.mozilla.com/D140943
2022-03-15 06:26:39 +00:00
Cosmin Sabou
74d7d4ed0c Backed out changeset 49a22cd6d6ee (bug 1759408) for causing build bustages on SandboxTestingChildTests.h. CLOSED TREE 2022-03-15 08:09:09 +02:00
Haik Aftandilian
5500a5a34a Bug 1759408 - [macOS] Add sandboxing tests to more process types r=gerard-majax
Add the WindowServer test and process launch tests to each Mac child process type.

Differential Revision: https://phabricator.services.mozilla.com/D140941
2022-03-15 05:47:18 +00:00
Csoregi Natalia
6ae31a2e64 Backed out 15 changesets (bug 1757597, bug 1436400) for causing mochitest failures on test_bug1656248.html. CLOSED TREE
Backed out changeset 4be29c1eb5bc (bug 1436400)
Backed out changeset ffd9ddcef6b0 (bug 1436400)
Backed out changeset 5ac844508d8b (bug 1436400)
Backed out changeset 561aeb550892 (bug 1436400)
Backed out changeset 6f473bcf809a (bug 1436400)
Backed out changeset c33620854115 (bug 1436400)
Backed out changeset 8f894ea40eb2 (bug 1436400)
Backed out changeset cce080064d82 (bug 1436400)
Backed out changeset 001d8528ff96 (bug 1436400)
Backed out changeset dd2bb1b46f75 (bug 1436400)
Backed out changeset b1c2084042fa (bug 1436400)
Backed out changeset dd0fea93bcd7 (bug 1436400)
Backed out changeset e38a959648e1 (bug 1436400)
Backed out changeset 40b474d430e9 (bug 1436400)
Backed out changeset 5bef21ef1ba2 (bug 1757597)
2022-03-15 07:23:29 +02:00
Daniel Holbert
39e3163129 Bug 1758199: Add null-check for GetPresContext() in nsRefreshDriver::NotifyDOMContentLoaded. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D141054
2022-03-15 04:33:42 +00:00
Tooru Fujisawa
ebda826225 Bug 1436400 - Part 14: Add testcases for bytecode encoding and module with iframes. r=nbp
Depends on D140554

Differential Revision: https://phabricator.services.mozilla.com/D140864
2022-03-15 04:24:54 +00:00
Tooru Fujisawa
f21003a9e1 Bug 1436400 - Part 13: Add testcases for bytecode encoding and module with SRI fallback. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140554
2022-03-15 04:24:53 +00:00
Tooru Fujisawa
f1448ea279 Bug 1436400 - Part 12: Add testcases for bytecode encoding and module with import. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140553
2022-03-15 04:24:53 +00:00
Tooru Fujisawa
0797981ac8 Bug 1436400 - Part 11: Modify test_script_loader_js_cache.html to test basic module script. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140552
2022-03-15 04:24:52 +00:00
Tooru Fujisawa
d09fb8acd5 Bug 1436400 - Part 10: Support bytecode cache for module script. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140297
2022-03-15 04:24:52 +00:00
Tooru Fujisawa
4d4aa8001e Bug 1436400 - Part 9: Support restarting module load request. r=jonco
After enabling bytecode cache for module script, we need to handle
the SRI mismatch on bytecode cache, that requires reloading the script source
again.

Differential Revision: https://phabricator.services.mozilla.com/D140551
2022-03-15 04:24:52 +00:00
Tooru Fujisawa
bd3852013b Bug 1436400 - Part 8: Add code path for bytecode encoding module scripts. r=nbp
The module scripts are scanned immediately before executing, and if the
module script is not yet executed, and it matches the requirement for encoding
(size, fetch count, etc), it's marked as encode,
and they're scanned again immediately after executing, and marked scripts are
queued for bytecode encoding.

This patch doesn't actually enable the encoding, given ShouldCacheBytecode
returns false because the caching is not enabled for the channel and
GetCacheTokenFetchCount fails.

Differential Revision: https://phabricator.services.mozilla.com/D140296
2022-03-15 04:24:51 +00:00
Tooru Fujisawa
5c2b6e6337 Bug 1436400 - Part 7: Split ScriptLoader::MaybePrepareForBytecodeEncoding into 2 parts. r=nbp
As a preparation to use the bytecode encoding in the module evaluation code,
ScriptLoader::MaybePrepareForBytecodeEncoding is split into 2 parts:
  * one for performing preparation before executing script
  * one for queuing the request for bytecode encoding after executing script

In module's case, the bytecode encoding handling must be done on the entire
import tree, and also the module object's ScriptSlot is cleared on execution.
So, the script reference must be copied to the corresponding script load request
field before execution, and the script source must be queued for bytecode
encoding after executing the top-level script, so that incremental encoding
reflects functions called there.

Differential Revision: https://phabricator.services.mozilla.com/D140295
2022-03-15 04:24:51 +00:00
Tooru Fujisawa
c001d51db9 Bug 1436400 - Part 6: Add JS::IsModuleEvaluated. r=jonco
Module's ScriptSlot is cleared after evaluating the top-level script.
In order to skip modules imported multiple times when encoding, added
JS::IsModuleEvaluated.

Differential Revision: https://phabricator.services.mozilla.com/D140294
2022-03-15 04:24:51 +00:00
Tooru Fujisawa
6aec9a0a75 Bug 1436400 - Part 5: Add bytecode MIME type for regular script and module. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D140293
2022-03-15 04:24:50 +00:00
Tooru Fujisawa
ea5bbd2533 Bug 1436400 - Part 4: Add ScriptLoader::BytecodeMimeTypeFor static method to get bytecode MIME type for given request. r=nbp
Module bytecode should use different MIME type, to avoid mixing up script/module
bytecodes for single JS file.

This patch adds a static method that simply returns the current bytecode MIME
type.
The later patch adds a new MIME type for module bytecode and modify the
ScriptLoader::BytecodeMimeTypeFor method to return corresponding MIME type.

Differential Revision: https://phabricator.services.mozilla.com/D140292
2022-03-15 04:24:50 +00:00
Tooru Fujisawa
aaeb81d7b9 Bug 1436400 - Part 3: Remove nsJSUtils::CompileModule and directly use JSAPI with stencil. r=nbp
To add conditional JS::StartIncrementalEncoding, and also to add a bytecode
decoding branch, replace nsJSUtils::CompileModule with raw JSAPI calls with
Stencil.

Differential Revision: https://phabricator.services.mozilla.com/D140291
2022-03-15 04:24:49 +00:00
Tooru Fujisawa
518074add7 Bug 1436400 - Part 2: Simplify ModuleLoader::CompileOrFinishModuleScript code flow. r=jonco
As a preparation to add bytecode case to CompileOrFinishModuleScript, removed
the shared nsresult variable and make each branch directly return, and also
do early return for error case.

Differential Revision: https://phabricator.services.mozilla.com/D140290
2022-03-15 04:24:49 +00:00
Tooru Fujisawa
d02a32e588 Bug 1436400 - Part 1: Remove Unused parameter from ExecuteCompiledScript. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D140289
2022-03-15 04:24:49 +00:00
Tooru Fujisawa
bc93412a17 Bug 1757597 - Rename ScriptLoadRequest.mScript to mScriptForBytecodeEncoding. r=jonco
mScript field is used only for bytecode encoding, and this field is used as a
flag for whether the script load request has bytecode-encoding-related
references.

Differential Revision: https://phabricator.services.mozilla.com/D140288
2022-03-15 04:24:48 +00:00
Daisuke Akatsuka
6a574a072a Bug 1759318: Change some timezones to timezones that does not have summer time. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D140937
2022-03-15 03:37:59 +00:00
Paul Bone
aa363a88ac Bug 1707499 - Fix uninitialised member r=jld
Differential Revision: https://phabricator.services.mozilla.com/D113470
2022-03-15 03:22:41 +00:00
Daisuke Akatsuka
fb8ec06e2d Bug 1757376: Continue post processing of Enter key when any keyup event is detected on search bar. r=adw
Depends on D140908

Differential Revision: https://phabricator.services.mozilla.com/D141058
2022-03-15 02:16:41 +00:00
Daisuke Akatsuka
0056382545 Bug 1757376: Continue post processing of Enter key when any keyup event is detected on URL bar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D140908
2022-03-15 02:16:40 +00:00
stevehagopian
1d7c795ec6 Bug 1188382 - fixed drag/drop link in reader mode. r=niklas,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D136063
2022-03-15 01:58:38 +00:00
Botond Ballo
c5c4837ed9 Bug 1749190 - Add a crashtest. r=tnikkel
Depends on D137944

Differential Revision: https://phabricator.services.mozilla.com/D137945
2022-03-15 00:56:00 +00:00
Botond Ballo
e18d4a2814 Bug 1749190 - Try harder to avoid cyclic scroll metadata annotations when building WRScrollData. r=tnikkel
Depends on D137943

Differential Revision: https://phabricator.services.mozilla.com/D137944
2022-03-15 00:56:00 +00:00
Botond Ballo
cde428ad83 Bug 1749190 - Rename a variable to be more precise. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D137943
2022-03-15 00:55:59 +00:00
Emilio Cobos Álvarez
e2c1c8b0b1 Bug 1759201 - Fix a webext xpcshell test to not stringify really complex objects. r=extension-reviewers,zombie
test_ext_contexts_gc.js calls Assert.ok(context, "..."). That in turn
computes the assert message (even if the assert passes), by calling
JSON.stringify(context).

The context object here is really complex and serialization depends on
the component order because it holds a Cu.Sandbox object among other
stuff. If enumerating a member throws, then we don't get to enumerate
other potentially problematic stuff.

But changing the order of enumeration made it so that we enumerated
nsFocusManager.activeWindow _before_ throwing, which asserts in debug
builds getting my previous patch backed out. Amazing.

Depends on D140975

Differential Revision: https://phabricator.services.mozilla.com/D141057
2022-03-15 00:35:05 +00:00
Emilio Cobos Álvarez
332b56e27d Bug 1759201 - Add a text recognition component. r=dminor,gregtatum
This adds just the boilerplate, and doesn't implement the OS-specific
bits. It's still useful tho.

Co-Authored-By: Greg Tatum <tatum.creative@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D140975
2022-03-15 00:35:05 +00:00
Mike Hommey
03e9935f48 Bug 1758782 - Force-use DWARF-4 debug info. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D140795
2022-03-15 00:24:25 +00:00
Olli Pettay
571d443e4d Bug 1755006, reduce framerate if the main thread is busy handling also other tasks, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D140046
2022-03-14 23:28:33 +00:00
Emilio Cobos Álvarez
cc96c01559 Bug 1759494 - Remove some dead code introduced for PDFium. r=dholbert
IsSyncPagePrinting() only had one implementation which unconditionally
returned true.

So, any code that was conditioned on !IsSyncPagePrinting() is necessarily
dead/unreachable.

These are also crashing due to a null deref in mPrintTarget which might
happen if print is aborted.

Differential Revision: https://phabricator.services.mozilla.com/D140988
2022-03-14 23:18:22 +00:00
Brad Werth
2246a606bd Bug 1745492 Part 8: Update reftest expectations. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D140661
2022-03-14 22:57:13 +00:00
Brad Werth
0b1378323b Bug 1745492 Part 7: Set the color primaries and transfer functions for macOS HD and HDR video. r=media-playback-reviewers,bryce
This also reorders the colorspace if-elses to explicitly check for bt601,
bt709, and bt2020 in that order. This ensures that anything with the Identity
colorspace will be left with no attachments.

Differential Revision: https://phabricator.services.mozilla.com/D140576
2022-03-14 22:57:13 +00:00
Csoregi Natalia
548f3cc217 Backed out changeset a9c9bf312a6f (bug 1759201) for causing xpcshell failures on test_ext_contexts_gc.js CLOSED TREE 2022-03-15 02:15:47 +02:00
Emilio Cobos Álvarez
cdfb1ace17 Bug 1758425 - Fix native menu position on X11. r=stransky
Position needs to be relative to the GdkWindow.

On Wayland, where there are no global screen coordinates that already
worked, but on X11 it didn't.

Differential Revision: https://phabricator.services.mozilla.com/D140520
2022-03-14 22:47:50 +00:00
Kershaw Chang
1c3bcc4bc1 Bug 1723866 - Wait until socket process is launched, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D140330
2022-03-14 22:22:27 +00:00
Daisuke Akatsuka
c7d67eda40 Bug 1757353: Add browser usage telemetry for links in about:preferences. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D139808
2022-03-14 21:54:03 +00:00
Shane Caraveo
4642ee6fb5 Bug 1759295 adapt alarms api to ExtensionAPIPersistent r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D140916
2022-03-14 21:53:58 +00:00
Emilio Cobos Álvarez
e23a3fd1f8 Bug 1759201 - Add a text recognition component. r=dminor,gregtatum
This adds just the boilerplate, and doesn't implement the OS-specific
bits. It's still useful tho.

Co-Authored-By: Greg Tatum <tatum.creative@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D140975
2022-03-14 21:37:09 +00:00
Iulian Moraru
e80f7ccf6d Merge mozilla-central to autoland on a CLOSED TREE 2022-03-14 23:50:58 +02:00
Emilio Cobos Álvarez
7ae76472af Bug 1759121 - Adjust an accessibility test that depended on a selectable block being after a <br>. r=morgan
An alternative would be to adjust the test expectation to not include
the trailing newline, but this seemed more likely to be what the test
wanted to test.

Differential Revision: https://phabricator.services.mozilla.com/D140954
2022-03-14 21:22:30 +00:00
Emilio Cobos Álvarez
9e6489d77a Bug 1759121 - Make custom-content-container content not selectable by default. r=smaug
See bug 1741740 for a case where this caused issues.

It doesn't react to pointer-events by default so it also makes sense for
it to not be selectable. Also, our selection code doesn't deal
particularly well with anonymous content being selected, specially in a
non-independent selection.

Differential Revision: https://phabricator.services.mozilla.com/D140830
2022-03-14 21:22:30 +00:00