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

798717 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange 23f6ddfed5 Bug 1774674 - Flesh out the documentation for getting Instruments to pick up macOS kernel symbols. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D149561
2022-06-16 19:36:38 +00:00
Barret Rennie cc22f98900 Bug 1746458 - Unenroll from Nimbus experiments and rollouts when disabling telemetry r=emcminn,preferences-reviewers
The checkbox for studies in about:preferences is now gated behind the telemetry
checkbox (like the extension recommendation checkbox). This pref is now
required to be set to enroll in telemetry and if it becomes unset, users will
be unenrolled from all Nimbus experiments and rollouts.

Differential Revision: https://phabricator.services.mozilla.com/D149297
2022-06-16 19:27:11 +00:00
Barret Rennie 66e6436d19 Bug 1772733 - Remove OS.File.setCurrentDirectory r=Gijs
This method was only used in xpcshell.

Differential Revision: https://phabricator.services.mozilla.com/D148978
2022-06-16 19:14:02 +00:00
Barret Rennie fa2f90fc19 Bug 1772733 - Change directory in xpcshell without OS.File r=jmaher,nika
Instead of relying on OS.File.setCurrentDirectory in the xpcshell test harness
we instead provide a function to directly change directory.

Differential Revision: https://phabricator.services.mozilla.com/D148977
2022-06-16 19:14:01 +00:00
Steve Fink 4036bec2bb Bug 1774650 - Basic comment on what I have figured out so far. r=dpalmeiro
Differential Revision: https://phabricator.services.mozilla.com/D149552
2022-06-16 18:56:12 +00:00
Steve Fink 4dfa558d7e Bug 1774650 - Define perfstats metrics with a macro list to allow adding metrics with a single change r=dpalmeiro
Differential Revision: https://phabricator.services.mozilla.com/D149551
2022-06-16 18:56:12 +00:00
Michael Ratcliffe 7860244360 Bug 1772718 - Reduce mozilla/reject-scriptableunicodeconverter eslint warnings in DevTools code r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D148346
2022-06-16 18:24:17 +00:00
Rob Lemley 36a20b7fab Bug 1772945 - Enable "css-masonry" feature for Thunderbird. r=Gijs,preferences-reviewers
The new address book layout in Thunderbird 102 uses masonry layout.
The UI team has requested that the feature be turned on as another
approach would not work as well due to the dynamic and modular
nature of the new UI.

Differential Revision: https://phabricator.services.mozilla.com/D148451
2022-06-16 18:23:36 +00:00
Rob Lemley 722c381737 Bug 1772945 - Allow targeting gated features to Thunderbird. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D148450
2022-06-16 18:23:35 +00:00
Joel Maher a0d9f9ccd1 Bug 1773763 - support conditioned profiles variant in xpcshell harness. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D148947
2022-06-16 18:14:48 +00:00
criss 915e00a5a7 Backed out changeset c5ce4a2b9ddb (bug 1764120) for causing for causing mochitest failures on browser_fontSize_change.js. CLOSED TREE 2022-06-16 21:59:53 +03:00
criss bd5fdde02e Backed out changeset 7c0e462cb0ba (bug 1772136) for causing mochitest failures on browser_remotesettingsexperimentloader_remote_defaults.js 2022-06-16 21:58:55 +03:00
criss a3c52529a8 Backed out 5 changesets (bug 1770363) for causing mochitest failures on browser_ext_addon_debugging_netmonitor.js
Backed out changeset d29f5041fd98 (bug 1770363)
Backed out changeset a91879be9b4a (bug 1770363)
Backed out changeset 27e78762006f (bug 1770363)
Backed out changeset 18a6433fd24a (bug 1770363)
Backed out changeset 5cdcd2318a9f (bug 1770363)
2022-06-16 21:57:46 +03:00
Emilio Cobos Álvarez 6c24f16e7c Bug 1774495 - Avoid hitting minimum PiP width on Windows by using a smaller scale.
MANUAL PUSH: hopefully trivial orange fix CLOSED TREE
2022-06-16 20:41:42 +02:00
Sergey Galich 67cd3f4ef3 Bug 1774648 - Fix markup on AboutLogins.html r=Itiel DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D149553
2022-06-16 17:59:12 +00:00
Niklas Baumgardner a64d340499 Bug 1764120 - Subtitle font size settings in PiP window. r=pip-reviewers,desktop-theme-reviewers,mhowell,sfoster,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D144754
2022-06-16 17:49:35 +00:00
Mathieu Leplatre 2447fc9ac2 Bug 1772136 - Add option to throw if .get() fails to obtain records r=gbeckley,barret
Differential Revision: https://phabricator.services.mozilla.com/D148637
2022-06-16 17:34:44 +00:00
Alexandre Poirot f66447e8f4 Bug 1770363 - [devtools] Fix iframe dropdown on target destruction from the MBT r=nchevobbe
This only fail on MBT because it still uses non-EFT
and the top level document is displayed in the iframe dropdown
via the old "listFrames/frameUpdate" codepath.
So that its frameData's id isn't related to a target actor
but rather to a frame of the parent-process/window-global target actor...

I'm adding test coverage for the regular web toolbox,
but the fix only reproduce in the context of the browser toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D148793
2022-06-16 17:19:07 +00:00
Alexandre Poirot b1e9c1549c Bug 1770363 - [devtools] Cover browser toolbox scope feature with a test around the iframe dropdown. r=nchevobbe
This add some minimal test coverage for the UI bits.

But more detailed test should rather be done around the TargetCommand API (browser_target_command_scope_flag.js).

Differential Revision: https://phabricator.services.mozilla.com/D149257
2022-06-16 17:19:06 +00:00
Alexandre Poirot ccce618e97 Bug 1770363 - [devtools] Allow to pass any JSON value to ToolboxTask.spawn. r=nchevobbe
When passing an array, only booleans and number were accepted.
Also arrays were stringified to list of value coma separated,
as if arrays were refering to list of arguments.
That while passing a primitive value would be passed as a unique argument.

Clarify this by explicitely accepting arrays refering as list of argument,
or a primitive value being a unique argument.

I'm also fixing an issue with exceptions not being correctly reported.

Differential Revision: https://phabricator.services.mozilla.com/D149256
2022-06-16 17:19:06 +00:00
Alexandre Poirot bc48a30433 Bug 1770363 - [devtools] Introduce on-demand multiprocess browser toolbox. r=nchevobbe
This introduces a checkbox in the iframe dropdown to enable/disable multiprocess debugging live.
Switching between:
 - debugging only the main process (all documents, workers and priviledged JS)
 - debugging all the processes (same, for each process, we will debug documents, workers, JS, ...)

This helps significantly speed up the browser toolbox when debugging only parent process resources,
while still allowing to switch to debug everything when required.

Differential Revision: https://phabricator.services.mozilla.com/D148527
2022-06-16 17:19:06 +00:00
Alexandre Poirot 599be925bc Bug 1770363 - [devtools] Implement on-demand multiprocess debugging in TargetCommand API. r=nchevobbe
This new feature will only work in the "MBT", when devtools.browsertoolbox.fission is true.

It is based on yet another preference, devtools.browsertoolbox.scope,
which is meant to be toggle by DevTools UI only (see next patches).

When the new pref is set to "everything", we will observe FRAME and PROCESS targets
and so debug everything running in content processes.
But when it is set to "parent-process", we will only observe WORKER
and be restricted to parent process resources only.

Differential Revision: https://phabricator.services.mozilla.com/D146891
2022-06-16 17:19:05 +00:00
Itiel 00db92e7d2 Bug 1770013 - Add full HCM support for reader mode r=desktop-theme-reviewers,morgan,Gijs,dao
Differential Revision: https://phabricator.services.mozilla.com/D146722
2022-06-16 17:16:37 +00:00
Thomas Wisniewski 405b85d6dc Bug 1760754 - add a SmartBlock shim for the Nielsen tracker; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149534
2022-06-16 17:06:17 +00:00
Molnar Sandor c1ae6857f8 Backed out 9 changesets (bug 1769002, bug 1768870, bug 1771097, bug 1771092, bug 1768819) for causing lint failures. CLOSED TREE
Backed out changeset 829df1dfad70 (bug 1769002)
Backed out changeset f0537d333adc (bug 1771092)
Backed out changeset 25b43856bc00 (bug 1771092)
Backed out changeset a49f754ca73f (bug 1771092)
Backed out changeset 164f85686a32 (bug 1769002)
Backed out changeset ef5cf9ceb915 (bug 1768819)
Backed out changeset c64e6c1fbfe7 (bug 1771097)
Backed out changeset f85393f988a8 (bug 1768870)
Backed out changeset fe708d13cc1d (bug 1768870)
2022-06-16 20:15:14 +03:00
Bryan Thrall 482eccfa22 Bug 1773335 - Pass LifoAlloc to CompileGlobalScriptToStencil() as parameter r=arai
Differential Revision: https://phabricator.services.mozilla.com/D149278
2022-06-16 16:59:17 +00:00
Molnar Sandor 61f9c8f237 Bug 1769002 - FIx lint failure. a=lint-fix CLOSED TREE 2022-06-16 19:57:21 +03:00
Alexandre Poirot b74044da3c Bug 1773258 - [devtools] Avoid modifying sourcesWithUrls when sources without a URL is removed. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149235
2022-06-16 16:34:39 +00:00
Alexandre Poirot 428d2014ae Bug 1773258 - [devtools] Merge getDisplayedSources selectors into a unique one and ensure it is memoized. r=bomsy
At the end getDisplayedSources wasn't correctly memoized and generates new array instances
even if the content of the source tree doesn't change.
That's because internaly, it crafts an array which is always a new array instance.

Let's merge the two intermediate selectors into a single one so that we can more easily memoize it.

This should also help try to followup and attempt at generating the data structure needed for ManagedTree.
That, instead of generated the data for addToTree/updateTree which then feeds ManagedTree.

Differential Revision: https://phabricator.services.mozilla.com/D148526
2022-06-16 16:34:39 +00:00
Tooru Fujisawa 0ef5f61970 Bug 1771092 - Part 3: Add tests JSM and ESM URIs combination. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D147851
2022-06-16 16:20:38 +00:00
Tooru Fujisawa f2683bc098 Bug 1771092 - Part 2: Add tests for process/window actors with ESM. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D147587
2022-06-16 16:20:38 +00:00
Tooru Fujisawa 4c6997d3f0 Bug 1771092 - Part 1: Add esModuleURI key to ProcessActorSidedOptions/WindowActorSidedOptions and support loading system ESM. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D147422
2022-06-16 16:20:38 +00:00
Tooru Fujisawa 591472f193 Bug 1769002 - Support ESM in components.conf. r=kmag
Also ESM-ify SimpleServices.jsm as an example, given an empty array is not
allowed inside StaticComponents.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D147414
2022-06-16 16:20:37 +00:00
Tooru Fujisawa 3d15caadb4 Bug 1768819 - Add Cu.{isJSModuleLoaded,isESModuleLoaded,loadedJSModules,loadedESModules}. r=kmag
Added 4 new functions, into Cu, for the following reasons:
  * Cu.isModuleLoaded and Cu.loadedModule is kept for backward compatibility
  * Cu.isModuleLoaded and Cu.loadedModule uses shim (bug 1769029 and
    bug 1768922), and loaded ESM (.sys.mjs) is visible as JSM (`.jsm`) there

Differential Revision: https://phabricator.services.mozilla.com/D146167
2022-06-16 16:20:37 +00:00
Tooru Fujisawa a1c76f5683 Bug 1771097 - Add ESLint rule for ChromeUtils.defineESModuleGetters lazy object name. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D147400
2022-06-16 16:20:36 +00:00
Tooru Fujisawa 3fddc2b25a Bug 1768870 - Part 2: Add ChromeUtils.defineESModuleGetters. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146212
2022-06-16 16:20:36 +00:00
Tooru Fujisawa 88deafb9fa Bug 1768870 - Part 1: Rename JSM-specific module_getter functions. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D146211
2022-06-16 16:20:35 +00:00
Marian-Vasile Laza 309d28caf1 Backed out changeset 1d248d1692ab (bug 1770013) for causing bc failures on browser_parsable_css.js. CLOSED TREE 2022-06-16 19:37:57 +03:00
Itiel 7e2f80af84 Bug 1770013 - Add full HCM support for reader mode r=desktop-theme-reviewers,morgan,Gijs,dao
Differential Revision: https://phabricator.services.mozilla.com/D146722
2022-06-16 15:28:33 +00:00
Jon Coppeard 06ca14c576 Bug 1774249 - Fallibly generate unique ID for new prototypes in JSObject::setProtoUnchecked r=jandem
Generate unique IDs for objects that are used as prototypes ahead of time, so
we can do it fallibly.

Differential Revision: https://phabricator.services.mozilla.com/D149356
2022-06-16 15:24:25 +00:00
Jon Coppeard 01f312e1ec Bug 1771678 - Part 2: Re-add the renamed ChromeUtils.importESModule method r=smaug
This reverses the action of bug 1771112, with the method renamed to importESModule.

Differential Revision: https://phabricator.services.mozilla.com/D147681
2022-06-16 15:05:35 +00:00
Jon Coppeard fd5d5a4c7c Bug 1771678 - Part 1: Rename ImportModule methods to ImportESModule r=arai
Differential Revision: https://phabricator.services.mozilla.com/D147680
2022-06-16 15:05:35 +00:00
Emilio Cobos Álvarez 51f628a0e1 Bug 1773823 - Remove devPixelsPerPx special cases in LookAndFeel. r=stransky
LookAndFeel::GetFont should always return CSS font sizes.

Differential Revision: https://phabricator.services.mozilla.com/D149491
2022-06-16 14:55:35 +00:00
Emilio Cobos Álvarez 084ca332be Bug 1774495 - Fix PiP sliding calculations in HiDPI screens. r=mconley
This caused the test change in bug 1773813 to be backed out. I included the
test change here since it now covers both changes. Also, simplify some bits of
it a bit.

Differential Revision: https://phabricator.services.mozilla.com/D149447
2022-06-16 14:55:03 +00:00
Mirko Brodesser f765ef90ad Bug 1744524: part 6) Add mochitest-browser for `navigator.clipboard.readText()`. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D146157
2022-06-16 14:43:42 +00:00
Mirko Brodesser 574daa1ebf Bug 1744524: part 5) Add pref for enabling `clipboard.readText()` gated by a "Paste" button. r=edgar
The web platform test (WPT) framework doesn't support such user agent
specific buttons. The corresponding WPTs continue to use the pref
"dom.events.testing.asyncClipboard", which skips showing the button.

Differential Revision: https://phabricator.services.mozilla.com/D145058
2022-06-16 14:43:42 +00:00
Mirko Brodesser eeb75692f4 Bug 1744524: part 4) Propagate from the JS side to the C++ side whether the user clicked or dismissed the "Paste" button. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D136617
2022-06-16 14:43:41 +00:00
Mirko Brodesser 0389d40d57 Bug 1744524: part 3) On the C++ side: dispatch a custom event when `clipboard.readText()` is called and allow the JS side to propagate whether the user clicked or dismissed the "Paste" button. r=edgar
This implements dispatching a custom "MozClipboardReadTextPaste" event
to the JS side, allowing the latter to show a "Paste" button. The JS
side may then report back to the C++ side, whether the user clicked or
dismissed the "Paste" button.
Combining these features is implemented in a following part and
`clipboard.readText()` is gated behind a pref in another following part.

The implementation bundles subsequent requests of `clipboard.readText()`
belonging to the same transient user activation timestamp.
For the first request of `clipboard.readText()`, a
"MozClipboardReadTextPaste" event is dispatched. As long as no response
for the event was received, further `readText()` requests are queued.
When the response is received, the calls are either resolved or rejected.
New calls following those, within the same transient user activation
period, are resolved/rejected too.

Differential Revision: https://phabricator.services.mozilla.com/D135335
2022-06-16 14:43:41 +00:00
Mirko Brodesser b90b8d0110 Bug 1744524: part 2) Add `WindowContext::GetUserGestureStart` and remove `WindowContext::LastUserGestureTimeStamp`. r=edgar
Preparation for part 3).

The return type of `GetUserGestureStart` is a class, the return type of
`LastUserGestureTimeStamp` a `double`. Hence using the former is safer.

Differential Revision: https://phabricator.services.mozilla.com/D148758
2022-06-16 14:43:40 +00:00
Mirko Brodesser 8d922ea417 Bug 1744524: part 1) Add JS code for the "Paste" menupopup to handle `ClipboardReadTextPaste` events created from the C++ side. r=edgar,Gijs
Implements showing a "Paste" popup at the last mouse position (which
overlapped the browser window) when a certain custom event is received.
Creating and dispatchting that event is implemented in one of the
following parts.

Differential Revision: https://phabricator.services.mozilla.com/D135333
2022-06-16 14:43:40 +00:00