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

868896 Коммитов

Автор SHA1 Сообщение Дата
Brad Werth f11bb5ff7a Bug 1865372: Call nsCocoaWindow::DestroyNativeWindow unconditionally in Destroy. r=mac-reviewers,mstange
This seems like the right time to call DestroyNativeWindow since we are
hiding the window and destorying the nsBaseWidget -- there's not much
else that can happen to this window. Making this call here ensures that
the native window is not maintained on the screen waiting for the
destructor to be called during garbage collection.

Differential Revision: https://phabricator.services.mozilla.com/D197214
2024-01-08 17:47:58 +00:00
Dana Keeler a91f105207 Bug 1871011 - use policy APIs rather than building certificate chains to determine enterprise roots on macOS r=jschanck
Building certificate chains (at startup, no less) is slow. Using the policy
APIs to determine if an enterprise certificate is a trusted root or an
intermediate should be faster.

Differential Revision: https://phabricator.services.mozilla.com/D197740
2024-01-08 17:47:29 +00:00
Matthew Gaudet a1efb56ba2 Bug 1870931 - Mark non262/TypedArray/large-arrays.js as slow r=iain
Takes 45s locally for --jitflags=jstests

Depends on D196917

Differential Revision: https://phabricator.services.mozilla.com/D196918
2024-01-08 17:30:16 +00:00
Matthew Gaudet 6dc8d847d5 Bug 1870931 - Mark Intl/Segmenter/grapheme-latin1.js as slow r=anba
Takes ~13s on local build with --jitflags=jstest

Depends on D196916

Differential Revision: https://phabricator.services.mozilla.com/D196917
2024-01-08 17:30:15 +00:00
Matthew Gaudet ae3c40a5bb Bug 1870931 - Mark clone-complex-object.js as slow r=sfink
./mach jstests --run-slow-tests --jitflags=jstests  non262/extensions/clone-complex-object.js

takes 13s

Depends on D196915

Differential Revision: https://phabricator.services.mozilla.com/D196916
2024-01-08 17:30:15 +00:00
Matthew Gaudet 6550e7a888 Bug 1870931 - Mark regress-1572988-nurseryRegisterCheck.js as slow r=sfink
Running this locally as

    ./mach jstests --run-slow-tests --jitflags=jstests  non262/regress/regress-1572988-nurseryRegisterCheck.js

takes 44s.

Differential Revision: https://phabricator.services.mozilla.com/D196915
2024-01-08 17:30:15 +00:00
Jon Coppeard c16b4af10b Bug 1871186 - Make simulated alloc failure when marking less frequent r=jandem
Something I found when testing the original testcase attached to the bug was
that OOM tests involving GC can take a very long time (and sometimes time out)
because of the very frequent simulated OOM when pushing things onto the mark
stack. I added this originally to improve test coverage here but this may have
been over-enthusiastic. The patch changes this to rely on simulated alloc
failure whew the mark stack vector is resized and starts this off with a
smaller size in debug builds to ensure coverage.

Depends on D197911

Differential Revision: https://phabricator.services.mozilla.com/D197912
2024-01-08 17:22:09 +00:00
Nicolas Chevobbe 55d5b1b075 Bug 1873416 - [devtools] Don't consider Ctrl/Cmd+Enter for stopOnReturn option in InplaceEditor. r=devtools-reviewers,jdescottes.
This will allow user to Ctrl+Enter to get the previous behavior in the Rules view.
A test is added to assert the various stopOnX options of InplaceEditor.

Differential Revision: https://phabricator.services.mozilla.com/D197897
2024-01-08 16:40:44 +00:00
Alex Finder bb6f20840b Bug 1870051 Update mozperftest-tools version to 0.3.2 r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D196428
2024-01-08 16:25:43 +00:00
Alexandre Poirot 26f0307428 Bug 1873007 - [devtools] Show the reason why the JS tracer stopped. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197660
2024-01-08 16:24:12 +00:00
Alexandre Poirot f704b868b0 Bug 1870801 - [devtools] Allow limiting depth and max top level frames when tracing javascript. r=devtools-reviewers,nchevobbe,fluent-reviewers,flod
These two settings are only available via the web console commands as they expect number as arguments
which is hard to implement via the context menu on the debugger button.

Move stdout logging to a dedicated method as onEnterFrame reached eslint complexity limit.

Differential Revision: https://phabricator.services.mozilla.com/D196832
2024-01-08 16:24:12 +00:00
Alexandre Poirot 0f06876895 Bug 1870801 - [devtools] Log JS tracer start/stop, even when not initiated from console command. r=devtools-reviewers,nchevobbe
The JavaScript Tracer may be initiated by the debugger, or stoped by itself when reaching some limit.
In these cases, the start and stop messages wouldn't have been logged in the console.

Differential Revision: https://phabricator.services.mozilla.com/D196831
2024-01-08 16:24:11 +00:00
Mark Banner 86e106775b Bug 1873471 - Add a product/component tag to toolkit search's metrics.yaml. r=search-reviewers,jteow
Differential Revision: https://phabricator.services.mozilla.com/D197928
2024-01-08 16:15:52 +00:00
Julian Descottes 33b09791d0 Bug 1873409 - [devtools] Increase timeout for browser_inspector_highlighter-autohide-config_03.js in debug builds r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197886
2024-01-08 15:54:17 +00:00
Tom Schuster 346cecd51c Bug 1872839 - Remove aMimeTypeGuess parameter from nsIContentPolicy. r=freddyb
Differential Revision: https://phabricator.services.mozilla.com/D197794
2024-01-08 15:47:42 +00:00
serge-sans-paille 1ed5ce239c Bug 1872835 - Setup python 3.11 toolchain tasks r=jmaher
As a side effect, fix a few issues with how cpython is built on OSX:

- unset __PYVENV_LAUNCHER__
- make build script version-independent

Differential Revision: https://phabricator.services.mozilla.com/D197570
2024-01-08 15:37:08 +00:00
Irene Ni 3789811a83 Bug 1589007 - disabled reader view in Slack. r=cmkm
Differential Revision: https://phabricator.services.mozilla.com/D197791
2024-01-08 15:36:30 +00:00
Greg Mierzwinski d126866ea8 Bug 1870864 - Fix mozperftest writing docs to mention mochitest. r=aglavic,perftest-reviewers DONTBUILD
This patch fixes the mozperftest docs to mention mochitest in the writing section, as well as fixes the `info` calls so that they mention the JSON.stringify requirement.

Differential Revision: https://phabricator.services.mozilla.com/D196853
2024-01-08 15:15:45 +00:00
Stephen A Pohl 41a9498074 Bug 1684897: Ensure that xpcom/io/CocoaFileUtils.mm uses NSAutoReleasePools. r=mac-reviewers,mstange
Differential Revision: https://phabricator.services.mozilla.com/D197607
2024-01-08 15:14:52 +00:00
Nicolas B. Pierron c5c0e87897 Bug 1800641 - Part 12: Move some ScriptLoadRequest fields into LoadedScript. r=nbp
We are looking into caching loaded script in memory. To do so we need something
to cache.

At the moment, the `ScriptLoadRequest` structure hold all the fields which are
loaded, and used before executing JavaScript code. Then, the `ScriptLoadRequest`
is not guaranteed to out-live the first execution.

Therefore, we have to move fields out of the `ScriptLoadRequest` such that they
can later be used by any caching mechanism. The `LoadedScript` is the closest
existing structure which exists which fit the description.

This patch moves fields out of the ScriptLoadRequest into the `LoadedScript`,
which already has a `LoadedScript` field.

The `LoadedScript` field is initialized sooner, when the `ScriptLoadRequest` is
created, to be subsituted later by a real cache implementation. At the moment
the function `ScriptLoadRequest::NoCacheEntryFound` is used as a placeholder to
change the state of the `ScriptLoadRequest` from `CheckingCache` to `Fetching`.
Existing initializations are replaced by assertions to fail in debug build if
the current patch does not reproduce the expected state properly.

The `LoadedScript` get fields such as the source text, the text length, the
bytecode buffer (which also contains SRI), and the offset at which the bytecode
starts within the bytecode buffer. As these fields are no longer reachable by
name, multiple accessors are added to work-around the issue. Using this as an
opportunity to add extra assertions as part of these accessors.

A new class named `LoadedScriptDelegate` is added to re-add, by inheritance, all
the accessors which used to be part of `ScriptLoadRequest` as methods which are
delegating to the field which is holding the `LoadedScript`. This class is using
templates to avoid virtual inheritance which might hinder inlining, especially
since `ScriptLoadRequest` cannot be made final, as `ModuleLoadRequest` extends
it.

The `ScriptFetchOptions` structure is moved to its own file to solve C++ include
issues.

Differential Revision: https://phabricator.services.mozilla.com/D197921
2024-01-08 14:57:40 +00:00
Tooru Fujisawa d8c07cffa3 Bug 1800641 - Part 11: Allocate script in ScriptLoadRequest::NoCacheEntryFound. r=nbp
Depends on D197848

Differential Revision: https://phabricator.services.mozilla.com/D197849
2024-01-08 14:57:40 +00:00
Tooru Fujisawa 17c5cde210 Bug 1800641 - Part 10: Add ScriptLoadRequest::mLoadedScript. r=nbp
Depends on D197847

Differential Revision: https://phabricator.services.mozilla.com/D197848
2024-01-08 14:57:39 +00:00
Tooru Fujisawa bdc574a37f Bug 1800641 - Part 9: Add LoadedScript::mURI and call SetBaseURL separately. r=nbp
Depends on D197846

Differential Revision: https://phabricator.services.mozilla.com/D197847
2024-01-08 14:57:39 +00:00
Tooru Fujisawa 976c794ad0 Bug 1800641 - Part 8: Add LoadContextBase* parameter to ScriptLoadRequest methods which is going to be moved to LoadedScriptDelegate. r=nbp
Depends on D197845

Differential Revision: https://phabricator.services.mozilla.com/D197846
2024-01-08 14:57:38 +00:00
Tooru Fujisawa f135bad3aa Bug 1800641 - Part 7: Add ScriptLoadRequest::State::{CheckingCache,PendingFetchingError}. r=nbp
Depends on D197844

Differential Revision: https://phabricator.services.mozilla.com/D197845
2024-01-08 14:57:38 +00:00
Tooru Fujisawa 0e1541fc80 Bug 1800641 - Part 6: Add ScriptLoadRequest::{,Set}ReceivedScriptTextLength. r=nbp
Depends on D197843

Differential Revision: https://phabricator.services.mozilla.com/D197844
2024-01-08 14:57:38 +00:00
Tooru Fujisawa 5a13b71f5c Bug 1800641 - Part 5: Add ScriptLoadRequest::DropBytecode. r=nbp
Depends on D197842

Differential Revision: https://phabricator.services.mozilla.com/D197843
2024-01-08 14:57:37 +00:00
Tooru Fujisawa 51d2ccfe91 Bug 1800641 - Part 4: Add ScriptLoadRequest::{Get,Set}SRILength. r=nbp
Depends on D197841

Differential Revision: https://phabricator.services.mozilla.com/D197842
2024-01-08 14:57:37 +00:00
Tooru Fujisawa bf69c195cd Bug 1800641 - Part 3: Add ScriptLoadRequest::SRIAndBytecode. r=nbp
Depends on D197840

Differential Revision: https://phabricator.services.mozilla.com/D197841
2024-01-08 14:57:36 +00:00
Tooru Fujisawa 8d1465e219 Bug 1800641 - Part 2: Add ScriptLoadRequest::Bytecode and let JSExecutionContext::Decode receive JS::TranscodeRange. r=nbp
Depends on D197839

Differential Revision: https://phabricator.services.mozilla.com/D197840
2024-01-08 14:57:36 +00:00
Tooru Fujisawa bc041aff7a Bug 1800641 - Part 1: Move ScriptFetchOptions into its own file. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D197839
2024-01-08 14:57:36 +00:00
andrej 1fee8a8748 Bug 1857574 - Disable motionmark ramp tests on osx. r=perftest-reviewers,kshampur
On the chrome browser, motionmark ramp tests are returning an invalid score of 1 for all test suites in CI
So we are disabling the tests on osx1015 while we debug the issues

Differential Revision: https://phabricator.services.mozilla.com/D197720
2024-01-08 14:16:13 +00:00
Jon Coppeard dc15227717 Bug 1871186 - Make Nursery::allocateZeroedBuffer return |isMalloced| as false on failure r=jandem
This can currently causes an assertion failure but is not otherwise problematic.

Differential Revision: https://phabricator.services.mozilla.com/D197911
2024-01-08 13:56:40 +00:00
Dan Robertson 4e32887481 Bug 1872772 - Remove apz.scrollend-event.content.enabled preference. r=nchevobbe,botond,devtools-reviewers,webidl,smaug
The scrollend event has been content enabled by default for about a
year. Remove the preference that allows the feature to be chrome-only.

Differential Revision: https://phabricator.services.mozilla.com/D197699
2024-01-08 13:36:42 +00:00
Valentin Gosu ca044aa125 Bug 1859608 - Change the user's DoH region when that changes r=necko-reviewers,sunil,kershaw
The DoHConfig now listens for region change notification and
saves the new region in a pref. On the next initialization of
the DoH config we will use the saved pref to update the doh
region even if the pref was already set.

This should also work for testing (manually setting the value of the
pref) as long as no region changes happen.

Differential Revision: https://phabricator.services.mozilla.com/D195023
2024-01-08 13:11:10 +00:00
Jan de Mooij e54b37d1f3 Bug 1474447 - Use MAP_JIT on Intel Macs too. r=iain
We've been using `MAP_JIT` on Apple Silicon since bug 1837194.

With this change we no longer need the `com.apple.security.cs.allow-unsigned-executable-memory`
entitlement for the JITs (pre-release Firefox still needs it for the `IOInterposer`
on Intel).

Support for `MAP_JIT` is enabled by the separate `com.apple.security.cs.allow-jit` entitlement.

Intel Macs don't have the `pthread_jit_write_protect_np` API, so we use a similar
strategy as on Apple Silicon but with `mprotect` added to it.

Differential Revision: https://phabricator.services.mozilla.com/D197787
2024-01-08 12:33:33 +00:00
Timothy Nikkel 7fc94186f1 Bug 1873414. In MaybeCreateDisplayPortInFirstScrollFrameEncountered descend into leaf frames because they can contain anonymous content. r=layout-reviewers,emilio
Leaf frames can contain anonymous content, for example text control frames, and we were activating them before and not activating them caused a perf regression in some tests, so restore that behaviour.

This illustrates that some of the performance improvement of using the leaf check came from not descending into some subtrees and changes the perf balance of the patch from bug 1872564. I re-did the measurements with this new constraint and now the IsScrollContainer check is faster, so I switched to using that.

Differential Revision: https://phabricator.services.mozilla.com/D197904
2024-01-08 11:56:19 +00:00
Updatebot 791095bd37 Bug 1872670 - Update xsimd to 3216c13f180e671d61b8bf7ecb96168f78592100 r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D197498
2024-01-08 10:56:51 +00:00
Emilio Cobos Álvarez 958c6462e7 Bug 1872997 - Refactor some code in tooltips-overlay.js. r=devtools-reviewers,nchevobbe
Debugging with disable_autohide, I saw a few "tooltip.revert is not a
function errors". Unify this code to deal with that consistently, but I
don't think it has user impact.

Differential Revision: https://phabricator.services.mozilla.com/D197792
2024-01-08 10:00:44 +00:00
Emilio Cobos Álvarez ec695c5797 Bug 1869796 - Minor nsWindow clean-ups. r=stransky
nsBaseWidget already stores these / exposes IsPIPWindow().

Differential Revision: https://phabricator.services.mozilla.com/D197866
2024-01-08 09:55:58 +00:00
Vinny Diehl 558bea44a5 Bug 1873402 - Remove vestigal code from Date.parse r=arai
Differential Revision: https://phabricator.services.mozilla.com/D197881
2024-01-08 08:27:36 +00:00
Emilio Cobos Álvarez 6ae10df792 Bug 1873370 - Enable custom highlight API on css/cssom tests. r=jjaschke
And remove stale fission + android timeout expectation.

Differential Revision: https://phabricator.services.mozilla.com/D197873
2024-01-08 08:10:29 +00:00
Emilio Cobos Álvarez fec5def690 Bug 1871535 - Use a less opaque check color for dark disabled checkboxes. r=spohl
On a darker background this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D197875
2024-01-08 08:00:37 +00:00
Mozilla Releng Treescript 0046b8cb5c no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
br -> 4a456a84084370d6967e3bd266ebbc9f0e7d64ba
eo -> ed48cf52c1971c82289a38fc8824f1259cfbea81
fi -> ff897095a0dc645cc6863aa16ed189b64505b572
pa-IN -> 045ef84c4a0f61d7e87502f77e5632befd1b742f
2024-01-08 07:02:17 +00:00
alwu 43c40b22c7 Bug 1872973 - part2 : add EME tests on wmfme. r=ci-and-tooling,jolin,aryx
Depends on D197763

Differential Revision: https://phabricator.services.mozilla.com/D197764
2024-01-08 02:37:04 +00:00
alwu 0ee6499075 Bug 1872973 - part1 : use default config for clearkey. r=jolin
For the media fundation based CDMs, we usually use WMFCDMImpl to get a
capabilities from the MFCDM process in order to get a precise
capabilites result from CDMs.

However, for clearkey, it's all implemented by ourselves and its
capabilites always keep the same, so we can simply just use our
predefined capabilites without asking the MFCDM process.

Differential Revision: https://phabricator.services.mozilla.com/D197763
2024-01-08 02:37:03 +00:00
Paul Bone 897281f245 Bug 1870550 - Enable some existing memory telemetry in release r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D196695
2024-01-08 00:54:01 +00:00
Karl Tomlinson baf06ae94a Bug 1871838 simply produce silence if stop time is before start time r=media-playback-reviewers,alwu
OscillatorNode is now similar in this way to ConstantSourceNode.
https://searchfox.org/mozilla-central/rev/f6776253b65c05351b4004fe7c3353cac8d8a4af/dom/media/webaudio/ConstantSourceNode.cpp#88-89

Differential Revision: https://phabricator.services.mozilla.com/D197405
2024-01-07 23:24:05 +00:00
sotaro cbf0e5ea15 Bug 1868927 - Remove RemoteTextureHostWrapper's async mode r=gfx-reviewers,lsalzman
By removing the async mode, remote texture implementation becomes simpler.

Differential Revision: https://phabricator.services.mozilla.com/D197323
2024-01-07 22:47:05 +00:00
Mark Banner c6fa6ec934 Bug 1873010 - Remove chai-json-schema module from aboutwelcome/asrouter/newtab test code as it is not used. r=aminomancer
Differential Revision: https://phabricator.services.mozilla.com/D197669
2024-01-07 22:10:13 +00:00