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

802644 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin 82c88e59cb Bug 1778931 Part 1 - Create a float's ReflowInput in FlowAndPlaceFloat() and pass it into ReflowFloat(). r=dholbert
There is some advantage to creating the float's ReflowInput in
FlowAndPlaceFloat().

1. ReflowFloat() doesn't need to output the float's margin and offset via the
   output arguments. FlowAndPlaceFloat() can get them from the local ReflowInput
   directly.

2. Since we are going to reflow the float, we have to create a ReflowInput
   anyway. FloatMarginISize() can take the ReflowInput and be simplified. No need
   to waste time to create a separate SizeComputationInput.

Also, delete the comment "Pass floatRS so the frame hierarchy can be
used (redoFloatRS has the same hierarchy)" because I believe it is obsolete.

This patch also lays the foundation for other improvements in the later patches.

Differential Revision: https://phabricator.services.mozilla.com/D151455
2022-07-26 04:54:36 +00:00
Razvan Cojocaru fd92081aec Bug 1779812 - We are entering the pinch lock too easily. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D151972
2022-07-26 03:24:41 +00:00
Charlie Humphreys 3f452797f2 Bug 1719392 - update CLIENTS_TTL to be 180 days instead of 21 r=markh
Differential Revision: https://phabricator.services.mozilla.com/D152713
2022-07-26 03:10:55 +00:00
Tooru Fujisawa 5cda6987cf Bug 1780543 - Part 11: Update document for environment. r=Standard8
Depends on D152648

Differential Revision: https://phabricator.services.mozilla.com/D152649
2022-07-26 02:46:32 +00:00
Tooru Fujisawa 972452a602 Bug 1780543 - Part 10: Use SpecialPowers sandbox definition in import-content-task-globals.js. r=Standard8
Also update the list of variables.

Depends on D152647

Differential Revision: https://phabricator.services.mozilla.com/D152648
2022-07-26 02:46:32 +00:00
Tooru Fujisawa 92a8ee55fc Bug 1780543 - Part 9: Move SpecialPowers sandbox global definition into separate file. r=Standard8
Also define Components and Services, that's enabled by default on sandbox.

Depends on D152646

Differential Revision: https://phabricator.services.mozilla.com/D152647
2022-07-26 02:46:32 +00:00
Tooru Fujisawa 2c15cdbe26 Bug 1780543 - Part 8: Remove unused eslint rule. r=Standard8,geckoview-reviewers,calu
Depends on D152432

Differential Revision: https://phabricator.services.mozilla.com/D152646
2022-07-26 02:46:31 +00:00
Tooru Fujisawa 4723c60b2c Bug 1780543 - Part 7: Update frame-script and process-script environment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152432
2022-07-26 02:46:31 +00:00
Tooru Fujisawa e4d8ddc4b6 Bug 1780543 - Part 6: Stop using mozilla/frame-script in unrelated files. r=Standard8,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D152431
2022-07-26 02:46:31 +00:00
Tooru Fujisawa a032f53a63 Bug 1780543 - Part 5: Add mozilla/chrome-script environment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152430
2022-07-26 02:46:30 +00:00
Tooru Fujisawa 9fa82cdffe Bug 1780543 - Part 4: Add mozilla/remote-page environment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152429
2022-07-26 02:46:30 +00:00
Tooru Fujisawa 4e35a2bf9c Bug 1780543 - Part 3: Add mozilla/process-script environment as alias to frame-script. r=Standard8,perftest-reviewers,webcompat-reviewers,necko-reviewers,twisniewski,sparky,dragana
Differential Revision: https://phabricator.services.mozilla.com/D152428
2022-07-26 02:46:29 +00:00
Tooru Fujisawa a1a992d3cc Bug 1780543 - Part 2: Use eslint-env mozilla/frame-script consistently in test frame script. r=Standard8,webdriver-reviewers,perftest-reviewers,sparky,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D152427
2022-07-26 02:46:29 +00:00
Tooru Fujisawa a6aabba5a4 Bug 1780543 - Part 1: Use eslint-env mozilla/frame-script consistently in frame script. r=Standard8,webdriver-reviewers,geckoview-reviewers,jdescottes,calu
Differential Revision: https://phabricator.services.mozilla.com/D152426
2022-07-26 02:46:28 +00:00
Tooru Fujisawa 60be63b763 Bug 1732543 - Part 2: Add eager evaluation testcase. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152350
2022-07-26 02:37:51 +00:00
Tooru Fujisawa c7684cf7c3 Bug 1732543 - Part 1: Call onNativeCall for Function.prototype.{call,apply} inside self-hosted JS. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D152349
2022-07-26 02:37:51 +00:00
Tooru Fujisawa b3c8ed8937 Bug 1609432 - Part 6: Add eager evaluation testcase. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152348
2022-07-26 02:37:51 +00:00
Tooru Fujisawa b598c10c42 Bug 1609432 - Part 5: Call onNativeCall for callContentFunction and constructContentFunction in self-hosted JS. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D152347
2022-07-26 02:37:50 +00:00
Tooru Fujisawa 6f15ec4fac Bug 1609432 - Part 4: Add CallReason::CallContent. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D152346
2022-07-26 02:37:50 +00:00
Tooru Fujisawa c3c121c7c1 Bug 1609432 - Part 3: Add JSOp::CallContent and JSOp::NewContent. r=jandem
These instructions are for `callContentFunction` and `constructContentFunction`
in self-hosted JS, to notify possible native call to debugger in the later
patches.

Differential Revision: https://phabricator.services.mozilla.com/D152345
2022-07-26 02:37:49 +00:00
Tooru Fujisawa 6772da8761 Bug 1609432 - Part 2: Always use callContentFunction and constructContentFunction for possibly user-provided functions. r=jandem
Use `callContentFunction` even if `this` value is `undefined`.
Use `constructContentFunction` even if `newTarget` value is constructor itself.

Differential Revision: https://phabricator.services.mozilla.com/D152344
2022-07-26 02:37:49 +00:00
Tooru Fujisawa 734c6f314c Bug 1609432 - Part 1: Add more functions to eager evaluation allowlist. r=nchevobbe
RegExp.prototype methods called inside String.prototype.{match,search,replace}
should be allowed.

Differential Revision: https://phabricator.services.mozilla.com/D152343
2022-07-26 02:37:49 +00:00
Andrew Osmond 15caf02999 Bug 1780042 - Set CanvasPattern principal for main thread OffscreenCanvas. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D152710
2022-07-26 02:00:57 +00:00
Brad Werth cb169a543e Bug 1772024: Turn pref on for Apple Silicon on all channels, update pref comment. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D150795
2022-07-26 01:41:49 +00:00
Lee Salzman 7aa0b77c94 Bug 1779681 - Mark WebGL framebuffer as initially valid in DrawTargetWebgl. r=aosmond,gfx-reviewers
mWebglValid gets initialized to false, but it will never get reset to true until the next
frame, causing us to render into Skia the first frame rather than accelerate. Therefor, we
should just initialize it to valid. Since it is cleared to zero initially, this is safe.

Differential Revision: https://phabricator.services.mozilla.com/D151896
2022-07-26 01:30:45 +00:00
Lee Salzman 11df7a2ec5 Bug 1771007 - Avoid sending SourceSurfaceWebgl off-thread. r=jrmuizel,gfx-reviewers
BorrowSnapshot can be called by OffScreenCanvas in various places that may send
a SourceSurfaceWebgl to the main thread. If it did not originate from the main
thread, then this can cause multiple threads to use it. In general we want to
avoid this. For now, override BorrowSnapshot and make it always force a Skia
snapshot that can be safely shared between threads instead of SourceSurfaceWebgl.

Differential Revision: https://phabricator.services.mozilla.com/D152417
2022-07-26 01:28:48 +00:00
Lee Salzman b7ed12cb3c Bug 1780574 - Support imageSmoothingEnabled in DrawTargetWebgl. r=jrmuizel,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152415
2022-07-26 01:27:04 +00:00
Andrew Osmond a1992cd1a7 Bug 1779835 - Ship OffscreenCanvas to early beta and earlier. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D151954
2022-07-26 01:19:55 +00:00
Glenn Watson 4066f3d6bc Bug 1768678 - Fix blur source size adjustment for downscaling r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D152243
2022-07-26 00:58:32 +00:00
smolnar c2d4a6be09 Backed out changeset 313771167333 (bug 1779759) for causing browser-chrome failures in browser/base/content/test/performance/browser_startup.js CLOSED TREE 2022-07-26 03:03:21 +03:00
Emilio Cobos Álvarez 7b5024c960 Bug 1781102 - Remove assert count from a crashtest that no longer asserts.
MANUAL PUSH: Trivial progression to fix orange in a CLOSED TREE
2022-07-26 02:11:17 +02:00
Sean Feng b67c3799f9 Bug 1780932 - Enable the Web Scheduler API for a crashtest r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D152697
2022-07-25 23:04:58 +00:00
Mike Hommey 233a802d6b Bug 1779528 - Disable deprecated builtins warning. r=firefox-build-system-reviewers,sylvestre,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D152493
2022-07-25 22:51:18 +00:00
sotaro d9703c55fe Bug 1780815 - Disable yuv video overlay on Windows r=jrmuizel,gfx-reviewers
Video scaling to RGB with VideoProcessor seems to have better quality than Video scaling to YUV with VideoProcessor.

It seems better to disable yuv video overlay on Windows for now.

Differential Revision: https://phabricator.services.mozilla.com/D152534
2022-07-25 22:38:38 +00:00
James Teh 0333dc5fb2 Bug 1780318: Handle keyboard activation in Windows SystemStatusBar. r=mconley
When the user wishes to open the window with the mouse, the shell sends NIN_SELECT.
We could continue to use WM_LBUTTONUP there, but the semantic notification is probably better.
When the user presses the space/enter key to open the window, the shell sends NIN_KEYSELECT.
When the user activates the context menu either with the mouse or the keyboard (applications/shift+f10 key), the shell sends WM_CONTEXTMENU.

Differential Revision: https://phabricator.services.mozilla.com/D152234
2022-07-25 22:01:35 +00:00
smolnar af5711925c Backed out 3 changesets (bug 1779807) for causing SM build failures. CLOSED TREE
Backed out changeset 68e92976dc0f (bug 1779807)
Backed out changeset f11ef6602f59 (bug 1779807)
Backed out changeset faa38e8360b1 (bug 1779807)
2022-07-26 00:44:58 +03:00
smolnar 64c6aae7ac Merge mozilla-central to autoland. a=merge 2022-07-26 00:33:46 +03:00
smolnar d5edb4a453 Merge autoland to mozilla-central. a=merge 2022-07-26 00:30:28 +03:00
Doug Thayer b0e585c357 Bug 1779807 - Consume SIMD::memchr64 for array includes/indexof r=iain
This improved the time for a contrived benchmark. I don't know if we want
to invest more time into benchmarking - I feel pretty strongly that this will
be an improvement across most use cases, just judging from the more in-depth
benchmarking of the string functions. The benchmark I did was basically as
follows:

make N arrays
make N objects
for i,j in 0..N,0..N
    if (hash(i,j) % K == 0)
        arrays[i].push(objects[j])

start performance timer
for i,j in 0..N,0..N
    if arrays[i].includes(objects[j])
        matches++

report matches and performance timings

And our times were basically equal for small N, and up to 3 times faster
for large N - so, basically what we would hope for.

Differential Revision: https://phabricator.services.mozilla.com/D152298
2022-07-25 21:21:38 +00:00
Doug Thayer 92a5c81749 Bug 1779807 - Implement memchr64 in AVX2 r=iain
This only makes sense for AVX2, because widening it from a 64-bit comparison
to a 128-bit comparison is hardly worth it, and there are gaps in the SSE2
instruction set (missing _mm_cmpeq_epi64, which is introduced in SSE4.1) that
would require us to compensate and probably take a sizeable perf hit.

Differential Revision: https://phabricator.services.mozilla.com/D152297
2022-07-25 21:21:37 +00:00
Doug Thayer 2a9b76d986 Bug 1779807 - Support AVX2 for SIMD memchr r=iain
This showed a modest improvement in the geomean of my benchmarking, but
importantly it showed a consistent and relatively strong improvement across
all of the cases which I would guess are more realistic. Notably this change
makes it perform better at iteratively searching for the next occurrence of X
in the HTML of a large web page.

Differential Revision: https://phabricator.services.mozilla.com/D152296
2022-07-25 21:21:37 +00:00
Emilio Cobos Álvarez 9e93f45bec Bug 1780788 - Prevent logStringMessage(null) from crashing.
MANUAL PUSH: Fixes some orange in a CLOSED TREE
2022-07-25 23:23:45 +02:00
Chris H-C 13dc711ac0 Bug 1779759 - Put TerminatorTelemetry back on osfile.jsm for late writes r=barret
This reverts commit 3e67ed2191aeb4844f64a83e94160b5860e7ebf4.

Differential Revision: https://phabricator.services.mozilla.com/D152307
2022-07-25 20:51:28 +00:00
Mike Kaply 888001d747 Bug 1778325 - Allow WindowsSSO in iframes. r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D151378
2022-07-25 20:37:42 +00:00
Emilio Cobos Álvarez 42b7f1a58c Bug 1780788 - Use abstract strings as in-arguments for ipdl. r=nika,necko-reviewers,media-playback-reviewers,alwu,dragana
This prevents copies and avoids the hack we have to avoid this, which
right now is using nsDependent{C,}String.

Non-virtual actors can still use `nsString` if they need to on the
receiving end.

Differential Revision: https://phabricator.services.mozilla.com/D152519
2022-07-25 20:19:48 +00:00
Emilio Cobos Álvarez 9ff152af79 Bug 1781102 - Make <hr> styles match the spec. r=TYLin
This matches Chromium, the spec, and fixes the rendering in
https://esta.cbp.dhs.gov/

Spec: https://html.spec.whatwg.org/#the-hr-element-2

Remove -moz-float-edge, to fix the second part of the WPT (also matches
Chromium and the spec which obviously has no such thing).

Differential Revision: https://phabricator.services.mozilla.com/D152670
2022-07-25 19:54:41 +00:00
William Durand ac9a38c8e9 Bug 1780782 - Open `about:addons` when clicking the unified extensions button and there is no visible extension. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D152623
2022-07-25 19:39:15 +00:00
Mozilla Releng Treescript ecce7c1e04 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD
gn -> c82e4570b552e6422461dcb7938e9f3abf42f92f
lo -> 47b35f5caed50aa0b4baa777b3f1e00bea1a5f34
nb-NO -> 9f33ede063c506dd0d1fc048a9663688e34f47d2
nn-NO -> b559ba6b1681ee6454e643850858e4caefe73668
pt-PT -> 595a8393bf623a86cd6e28f47b7dbf4c0f25628f
tg -> 54f99deab8bbd716c4ea07c0f093e60af948fec3
2022-07-25 19:03:50 +00:00
Bryan Thrall e1615d73bb Bug 1773324 - Pass ErrorContext down through Smoosh functions r=arai
Differential Revision: https://phabricator.services.mozilla.com/D152458
2022-07-25 18:57:38 +00:00
Bryan Thrall 6cf08032de Bug 1773324 - Remove dead JSContext methods for helper threads r=arai
addPendingCompileError() is replaced by OffThreadErrorContext::reportError().

Differential Revision: https://phabricator.services.mozilla.com/D152191
2022-07-25 18:57:38 +00:00