Commit Graph

827812 Commits

Author SHA1 Message Date
Ryan Hunt
5fb9df0edc Bug 1811368 - wasm: Remove unneeded MaxTypeIndex. r=jseward
This used to be required by an old representation of PackedTypeCode, but
is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D167313
2023-01-20 19:37:39 +00:00
Brad Werth
0739c6ebe7 Bug 1809542: Remove stack-allocated param to runnable. r=rkraesig
This directly incorporates the synchronization primitives of the
SynchronousTask into the WinCompositorWindowThread object. This removes
the paramater to ShutdownTask and allows the wait to timeout correctly.
The patch also improves comments about the outcome of the wait and about
the lifetime of the threads.

Differential Revision: https://phabricator.services.mozilla.com/D166602
2023-01-20 19:30:54 +00:00
Greg Stoll
0a1246ca27 Bug 1804023 - Part 3: block nahimicosd.dll in just the GPU process r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D167400
2023-01-20 19:21:40 +00:00
Greg Stoll
62e5d740ae Bug 1804023 - Part 2: add ability to blocklist DLLs in just the GPU process r=gsvelto
As with the socket process, we can't automated test that the block works in the GPU process, but I manually verified this. I did add an automated test that ensures blocking something in the GPU process doesn't block it in other processes.

Differential Revision: https://phabricator.services.mozilla.com/D167399
2023-01-20 19:21:39 +00:00
Greg Stoll
def9d948d3 Bug 1804023 - Part 1: make blocklisting initialization take process type instead of a series of booleans r=gsvelto
This is just refactoring in preparation for the next patches

Differential Revision: https://phabricator.services.mozilla.com/D167398
2023-01-20 19:21:39 +00:00
Cristian Tuns
4a1af53f22 Backed out changeset 437540429de2 (bug 1800618) for causing build bustages on ObliviousHttpChannel.h CLOSED TREE 2023-01-20 14:15:45 -05:00
Mozilla Releng Treescript
ccf56a7a6b no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
ca -> 242d08cde63ffe46d224498a6fb1767a66b6a011
es-CL -> 4730feccc2fce75b03516b1a5f56c4e07c89c766
fur -> fa7800c3753fa7d404d502f3ff2d0f702e7052ee
gn -> d37051d81ed9724cf0e9a40ac45dda9a4e6c6e0e
kab -> 26db8797b6e981dfc13b10459b01ac8101b2d39a
lo -> d7913134fdad7a496fae71eed0440844edec24d3
sk -> 8f7059aecb5b375b6bf3d941e8e2de2d6772b64e
zh-CN -> 108a23ce8e03f277a59c03adb9f2b97f36904419
2023-01-20 19:06:03 +00:00
Jonas Jenwald
51d5a57125 Bug 1811457 - Transfer, rather than copy, PDF-data to the viewer. r=pdfjs-reviewers,robwu
In order to reduce overall memory usage, we should transfer PDF-data from the platform code to the PDF Viewer.

Differential Revision: https://phabricator.services.mozilla.com/D167368
2023-01-20 18:54:24 +00:00
Dana Keeler
bd70b77a80 Bug 1800618 - implement an oblivious http channel r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D166612
2023-01-20 18:42:24 +00:00
Emilio Cobos Álvarez
90e1d8d837 Bug 1809126 - Remove moz-fonttable protocol. r=jfkthame,necko-reviewers
We only use it to generate a dummy URI for SVG-in-Opentype documents. We
don't really need the URIs to be unique or anything in practice.

I noticed this code while looking at the load flags set up for
bug 1809006.

Differential Revision: https://phabricator.services.mozilla.com/D166291
2023-01-20 18:41:16 +00:00
Iain Ireland
79418c1985 Bug 1770048: Add testcase r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D146746
2023-01-20 18:40:54 +00:00
Cosmin Sabou
af47c3669b Backed out 3 changesets (bug 1804023) for causing DllBlocklistInit.cpp related bustages. CLOSED TREE
Backed out changeset 8ac7bb069839 (bug 1804023)
Backed out changeset 9d2766a3d506 (bug 1804023)
Backed out changeset b5b4be5f7502 (bug 1804023)
2023-01-20 20:44:28 +02:00
Ryan Hunt
1ebe842233 Bug 1810891 - wasm: Add asserts and comments about how JIT entry is invoked. r=jandem
The wasm function JIT entry relies on wasm::JumpTable jit entry table entries having
a compatible representation with BaseScript and SelfHostedLazyScript. I had to
reverse engineer this, so I've added some asserts this doesn't break and some
comments explaining this to future observers.

Differential Revision: https://phabricator.services.mozilla.com/D167312
2023-01-20 18:35:45 +00:00
Hanna Jones
793798206c Bug 1795306 - add a test for moz-toggle r=mstriemer
Moving the test to a separate patch so that we can land the toggle implementation + storybook work with the dev vendoring of lit.

Depends on D160815

Differential Revision: https://phabricator.services.mozilla.com/D161169
2023-01-20 18:31:13 +00:00
Jonathan Kew
a0d8e0a96e Bug 1811471 - Add a WPT testcase to confirm that kerning works across a hiragana/katakana character pair. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D167403
2023-01-20 18:26:29 +00:00
Jonathan Kew
f17f8c8ec4 Bug 1811471 - Merge Hiragana and Katakana scripts for text-shaping purposes, to allow kerning across both alphabets. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D167402
2023-01-20 18:26:29 +00:00
Francesco Lodolo (:flod)
3165b435c1 Bug 1811449 - Add Friulian (fur) and Sardinian (sc) to Beta/Release builds with Firefox 111, r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D167357
2023-01-20 18:23:37 +00:00
Greg Stoll
685c6d274c Bug 1804023 - Part 3: block nahimicosd.dll in just the GPU process r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D167400
2023-01-20 18:00:45 +00:00
Greg Stoll
8cb4d0d627 Bug 1804023 - Part 2: add ability to blocklist DLLs in just the GPU process r=gsvelto
As with the socket process, we can't automated test that the block works in the GPU process, but I manually verified this. I did add an automated test that ensures blocking something in the GPU process doesn't block it in other processes.

Differential Revision: https://phabricator.services.mozilla.com/D167399
2023-01-20 18:00:45 +00:00
Greg Stoll
411596c0a6 Bug 1804023 - Part 1: make blocklisting initialization take process type instead of a series of booleans r=gsvelto
This is just refactoring in preparation for the next patches

Differential Revision: https://phabricator.services.mozilla.com/D167398
2023-01-20 18:00:45 +00:00
Julian Descottes
1b4c90c4ed Bug 1734195 - [devtools] use stroke instead of fill for main highlighters when prefers-reduced-motion is on r=nchevobbe
When prefers-reduced-motion is enabled, the most impacting highlighters can use stroke instead of fill.
This requires to join the paths on the JS side, otherwise the change is purely handled in CSS.

Differential Revision: https://phabricator.services.mozilla.com/D167141
2023-01-20 17:57:54 +00:00
Cristian Tuns
76d6192106 Backed out changeset 3bcffe7f5e20 (bug 1770048) for causing SM bustages CLOSED TREE 2023-01-20 12:59:29 -05:00
Mark Banner
a94fe03b9d Bug 1811334 - Automatically replace Cu.reportError with console.error (most of browser/components). r=settings-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D167297
2023-01-20 17:49:21 +00:00
Iain Ireland
ac470c9e71 Bug 1770048: Add testcase r=tcampbell
Depends on D146745

Differential Revision: https://phabricator.services.mozilla.com/D146746
2023-01-20 17:35:59 +00:00
Iain Ireland
97d274667d Bug 1767181: Add testcase r=jandem
Depends on D145280

Differential Revision: https://phabricator.services.mozilla.com/D145281
2023-01-20 17:35:37 +00:00
Stephanie Cunnane
8b6bc39996 Bug 1806539 - Consolidate existing partner codes for Duck Duck Go and add a new partner code for ESR. r=Standard8,mcheang
Differential Revision: https://phabricator.services.mozilla.com/D165342
2023-01-20 17:24:08 +00:00
ffxbld
cd28511539 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D167405
2023-01-20 17:24:07 +00:00
Thomas Wisniewski
8fee4d3ee4 Bug 1809209 - Avoid extra CSP reporting spam from redirecting SmartBlock shims; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D167401
2023-01-20 17:13:19 +00:00
Justin Link
4c8cfc513c Bug 1787974 - Remove leading canceled timers before deciding if we added a new front timer r=smaug
Due to the possible presence of canceled timers at the "front" of the
list, mTimers[0] won't necessarily hold the next timer to be fired
unless we've cleaned up those front timers recently.

Differential Revision: https://phabricator.services.mozilla.com/D166575
2023-01-20 17:11:13 +00:00
Justin Link
e2a49f1133 Bug 1787974 - Fixed small logic change in FindNextFireTimeForCurrentThread(). r=smaug
I also took a stab at documenting the behavior since I found it a bit
difficult to follow.

Differential Revision: https://phabricator.services.mozilla.com/D165120
2023-01-20 17:11:12 +00:00
Justin Link
9ca4dc4b49 Bug 1787974 - Fixed problem where AddTimerInternal() could add a new timer in the wrong spot. r=smaug
The previous version used IndexOfFirstElementGt which is implemented
with a binary search. That doesn't work correctly because the mTimers
array that is being searched is maintained in sorted order
*only if the "cancelled" timers are skipped*. This revision replaces the
binary search with a linear search which can handle this without
problem. Given that the number of timers present at any one time is
fairly modest, a linear search is probably a more appropriate choice
anyway.

Also added a new function, VerifyTimerListConsistency, which is called
once per wake-up in the main loop and enabled only in DEBUG builds, that
checks mTimers for ordering and consistency.

Differential Revision: https://phabricator.services.mozilla.com/D164294
2023-01-20 17:11:12 +00:00
Gerald Squelart
0b24e570d5 Bug 1787974 - AddTimerInternal efficiently inserts by shifting entries until next gap r=smaug
This makes the code more complex, but it is needed to keep this most-used
function efficient related to its old implementation using `std::push_heap`.

Differential Revision: https://phabricator.services.mozilla.com/D164292
2023-01-20 17:11:11 +00:00
Gerald Squelart
44782bb70f Bug 1787974 - Changing mTimers from heap to timestamp-sorted array r=smaug
Inserting elements in the sorted array is more costly than pushing to a binary
heap, but this is balanced by the removal of indirections and de/allocations,
and the upcoming re-use of empty entries.

In the end, this change is necessary to allow future improvements like timer-
coalescing, where we'll need to see multiple timers in order.

Bonus: FindNextFireTimeForCurrentThread changes a lot, because it used to have
to `pop_heap` elements and then `push_heap` them back! (Sometimes resulting in
subtle changes for timers with the same timeout.) So this one benefits the
most.

Differential Revision: https://phabricator.services.mozilla.com/D164291
2023-01-20 17:11:11 +00:00
Gerald Squelart
13d9522fb8 Bug 1787974 - In TimerThread::Shutdown, only Take non-null entries r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D164290
2023-01-20 17:11:11 +00:00
Gerald Squelart
13199d27f5 Bug 1787974 - Entry::Forget doesn't need a parameter r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D164289
2023-01-20 17:11:10 +00:00
Gerald Squelart
8a00602e7d Bug 1787974 - Entry constructor only takes an nsTimerImpl* r=smaug
So entries now store the given timeout value (instead of clamping it to after "now").
And we store this timeout first, as it's accessed more frequently.

Differential Revision: https://phabricator.services.mozilla.com/D164288
2023-01-20 17:11:09 +00:00
Gerald Squelart
2254f41c15 Bug 1787974 - TimerThread stores Entry's instead of UniquePtrs to Entry's r=smaug
This removes memory heap allocations and deallocations, and indirections to access entries.

Differential Revision: https://phabricator.services.mozilla.com/D164287
2023-01-20 17:11:09 +00:00
Gerald Squelart
38ae7225cd Bug 1787974 - nsTimerImpl directly keeps track of whether it's in a TimerThread::Entry r=smaug
nsTimerImplHolder can now be removed.

Differential Revision: https://phabricator.services.mozilla.com/D164286
2023-01-20 17:11:08 +00:00
Gerald Squelart
fdae1596bd Bug 1787974 - Do a linear search in RemoveTimerInternal to stop going through the holder r=smaug
Note that it's about 4 times slower in practice! But this will be balanced in later patches.

Differential Revision: https://phabricator.services.mozilla.com/D164285
2023-01-20 17:11:08 +00:00
Gerald Squelart
bfb631bb92 Bug 1787974 - Style: Put Entry private section at the bottom of the class r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D164284
2023-01-20 17:11:08 +00:00
Gerald Squelart
d037d2b5a5 Bug 1787974 - Only nsTimerImplHolder::Forget needs to be public r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D164283
2023-01-20 17:11:07 +00:00
Nicolas Chevobbe
776b818846 Bug 1811233 - [devtools] Add test for pretty-printing eval source. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D167273
2023-01-20 16:58:58 +00:00
John Schanck
f3538472f6 Bug 1809333 - Disable the U2F DOM API by default. r=dveditz,webidl,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D167199
2023-01-20 16:56:13 +00:00
Meg Viar
a3e99a2057 Bug 1806425 - Make value of source in Feature Callout and page in its telementry more consistent r=jprickett,aminomancer
Unify the values of "source" and "page" as used in FeatureCallout.sys.mjs:
- Explicitly pass in a value for "page" when instantiating a Feature Callout and use this for the value of "page" when sending Feature Callout telemetry and as the "source" when making calls to `sendTriggerMessage`. This avoids the risk of including non-about: page URLs or PDF file extensions in our telemetry.
- Set the value of "page" in an HTML data attribute that can be accessed for use in about:welcome telemetry for Spotlight and Feature Callouts.
- Update references to the page value previously used as the page/source for telemetry from `about:firefoxview` Feature Callouts from "firefoxview"  to "about:firefoxview"
- Pass the token "chrome" when creating a callout from the browser chrome and update references to the source in PDF.js messages' targeting
- Update the page value expected in automated tests as needed

Differential Revision: https://phabricator.services.mozilla.com/D165910
2023-01-20 16:53:30 +00:00
Micah Tigley
4dfea91742 Bug 1805233 - Replace created/updated/used times with timeline. r=sgalich,eemeli
Differential Revision: https://phabricator.services.mozilla.com/D164469
2023-01-20 16:48:10 +00:00
Mark Striemer
c87777dbaf Bug 1808803 - Move panel-item attribute/observer setting to connectedCallback() r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D167332
2023-01-20 16:40:51 +00:00
Olli Pettay
ee07926a1f Bug 1803628, initiate frameloader destroy asynchronously, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D166830
2023-01-20 16:39:39 +00:00
Kelly Cochrane
4f996eda52 Bug 1796409 - Don't display synced tabs with duplicate URLs unless it's the most recently accessed instance r=sclements,markh
Differential Revision: https://phabricator.services.mozilla.com/D166579
2023-01-20 16:37:14 +00:00
Olli Pettay
2ccc488d7a Bug 1811331 - remove useless static_cast, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D167371
2023-01-20 16:34:12 +00:00
Paul Zuehlcke
c18a27e75a Bug 1811349 - Add documentation for cookie purging, data sanitization and query stripping. r=anti-tracking-reviewers,bvandersloot DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D167301
2023-01-20 16:26:38 +00:00