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

766923 Коммитов

Автор SHA1 Сообщение Дата
Edgar Chen f8b397ad5f Bug 1511231 - Part 4: s/ProcessPendingColaescedTouchData/ProcessPendingCoalescedTouchData/; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122723
2021-08-19 09:08:20 +00:00
Edgar Chen f0fd7b7998 Bug 1511231 - Part 3: Expose coalesced Touches to PointerEvent.getCoalescedEvents(); r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122590
2021-08-19 09:08:20 +00:00
Edgar Chen 2c70639063 Bug 1511231 - Part 2: Make PointerEventHandler::InitPointerEventFromTouch take references; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122589
2021-08-19 09:08:19 +00:00
Edgar Chen 7f683ab692 Bug 1511231 - Part 1: Remove unused constructor from WidgetPointerEvent; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D122588
2021-08-19 09:08:19 +00:00
Belén Albeza 71efd9dabe Bug 1706679 - [devtools] Fix local/session storage intermittents due to TableWidget error while sorting r=jdescottes
There is a race condition in which the TableWidget was trying to sort values that are no longer available in the table itself, if we change the contents of the table too quickly. This patch should also fix Bug 1696727

Differential Revision: https://phabricator.services.mozilla.com/D122970
2021-08-19 09:00:54 +00:00
Tooru Fujisawa fb20c2f714 Bug 1726497 - Fix include and forward declaration in WasmCode.h for ScriptSource and some others. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D123045
2021-08-19 08:03:04 +00:00
Hiroyuki Ikezoe 9e78018010 Bug 1725540 - Use nsIDOMWindowUtils.toScreenRect to get positions in the screen coords to avoid accessing window.top directly. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D122560
2021-08-19 07:51:28 +00:00
Hiroyuki Ikezoe 77ade58a2b Bug 1725540 - Get top level window's resolution via SpecialPowers.spawn. r=tnikkel
Thus a bunch of relevant functions need to be async.

Differential Revision: https://phabricator.services.mozilla.com/D122559
2021-08-19 07:51:27 +00:00
Hiroyuki Ikezoe f1f2923a0c Bug 1725540 - Rewrite helper_touch_action_regions.html to make it work with some async utility functions. r=tnikkel
The test function in helper_touch_action_regions.html needs to run as a
generator function, which means it doesn't work with async/await manners, so
once after we make some utility functions as async, it won't work as expected.
To avoid it, getting the scroller position in the screen coords part needs to
be split out from the generator since the part will be async in the next commit,
and nsIDOMWindowUtils.sendNativeTouchPoint needs to be used directly instead of
using synthesizeNativeTouch since synthesizeNativeTouch will also be async.

Differential Revision: https://phabricator.services.mozilla.com/D122558
2021-08-19 07:51:27 +00:00
Hiroyuki Ikezoe faa5cb9019 Bug 1725540 - Drop getTargetOrigin. r=tnikkel
It's not used.

Differential Revision: https://phabricator.services.mozilla.com/D122557
2021-08-19 07:51:26 +00:00
Masayuki Nakano 2a6f988711 Bug 1726064 - part 2: Get rid of `HTMLEditUtils::GetInclusiveAncestorBlockElementExceptHRElement` r=m_kato
It does not check whether it meets a non-editable parent or not.  Therefore,
it may cross another editing host boundary when `aContent` is in a nested
editing host.

So, this patch fixes some edge cases when editing hosts are nested and
scanning from inner editing host.

Differential Revision: https://phabricator.services.mozilla.com/D122940
2021-08-19 06:55:13 +00:00
Masayuki Nakano 15cd88ce28 Bug 1726064 - part 1: Redesign `HTMLEditUtils::ClosestEditableBlockElementOrEditingHost()` with `enum class` r=m_kato
There are a lot of ancestor scanners in `HTMLEditUtils`.  This is good thing
for the performance, but it makes us hard to maintain.  Therefore, we should
merge them as far as possible.

Differential Revision: https://phabricator.services.mozilla.com/D122939
2021-08-19 05:39:16 +00:00
Brindusan Cristian a1ab92e0b1 Backed out 28 changesets (bug 1722261) for causing linux asan failures.
CLOSED TREE

Backed out changeset f6008261478f (bug 1722261)
Backed out changeset e0acdc278398 (bug 1722261)
Backed out changeset c382b83927b1 (bug 1722261)
Backed out changeset 3ca4e85a2f0c (bug 1722261)
Backed out changeset 0f79b507f7fa (bug 1722261)
Backed out changeset 54f922f8d85c (bug 1722261)
Backed out changeset 01f52fd9d41b (bug 1722261)
Backed out changeset 641b915a5877 (bug 1722261)
Backed out changeset d88b53a4c4ac (bug 1722261)
Backed out changeset e5cc8b60c7f4 (bug 1722261)
Backed out changeset cf05e4baf78f (bug 1722261)
Backed out changeset 7574972ea660 (bug 1722261)
Backed out changeset cca5ffa19387 (bug 1722261)
Backed out changeset 0c05174fc2c1 (bug 1722261)
Backed out changeset d1cf4d7f6796 (bug 1722261)
Backed out changeset 015fe6840a85 (bug 1722261)
Backed out changeset 5798abd2f42a (bug 1722261)
Backed out changeset 5e0cf65719d3 (bug 1722261)
Backed out changeset eb61f791b99b (bug 1722261)
Backed out changeset 2f6b4f80db1f (bug 1722261)
Backed out changeset 842b895b7ac1 (bug 1722261)
Backed out changeset aa80d9331b8c (bug 1722261)
Backed out changeset 0ad4e47ff813 (bug 1722261)
Backed out changeset 21f448ea0744 (bug 1722261)
Backed out changeset de6aa81e9ccf (bug 1722261)
Backed out changeset 3b06f1822f48 (bug 1722261)
Backed out changeset 955f1c1c9f1a (bug 1722261)
Backed out changeset b7e53f12dc99 (bug 1722261)
2021-08-19 08:56:02 +03:00
Mike Hommey 90945bd8c8 Bug 1726117 - Upgrade tasks using the debian10-amd64-build image to the debian11-amd64-build image. r=taskgraph-reviewers,andi,bhearsum
And remove the former.

Differential Revision: https://phabricator.services.mozilla.com/D122835
2021-08-19 04:40:37 +00:00
Gerald Squelart 72ac283ea7 Bug 1722261 - RegisteredThread is now effectively unused, remove all remaining traces - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121978
2021-08-19 02:45:09 +00:00
Gerald Squelart ab09f981a0 Bug 1722261 - Remove RegisteredThread from LiveProfiledThreadData - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121977
2021-08-19 02:45:09 +00:00
Gerald Squelart 7eaf962383 Bug 1722261 - SizeOf{Ex,In}cludingThis for ProfilerRegist* classes, used in CorePS - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121976
2021-08-19 02:45:08 +00:00
Gerald Squelart acf95ad0cf Bug 1722261 - Stop using RegisteredThread::Info() in profiler_unregister_thread - r=canaltinova
And now in locked_unregister_thread, use the aOnThreadRef directly instead of the TLSRegisteredThread.

Differential Revision: https://phabricator.services.mozilla.com/D121975
2021-08-19 02:45:08 +00:00
Gerald Squelart cdc784b447 Bug 1722261 - Convert locked_profiler_stream_json_for_this_process and ActivePS::ProfiledThreads to stop using RegisteredThread - r=canaltinova
Remove now-unused RegisteredThread::GetJSContext().

Differential Revision: https://phabricator.services.mozilla.com/D121974
2021-08-19 02:45:07 +00:00
Gerald Squelart 588cefd035 Bug 1722261 - Convert remaining use of RegisteredThread's ProfilingStack that was in locked_register_thread - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121973
2021-08-19 02:45:07 +00:00
Gerald Squelart 34aa8cf6dd Bug 1722261 - Convert remaining uses of RegisteredThread's GetEventTarget and ResetMainThread - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121971
2021-08-19 02:45:07 +00:00
Gerald Squelart 22cb733cca Bug 1722261 - In locked_profiler_start, find registered threads from ThreadRegistry and stop using RegisteredThread - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121970
2021-08-19 02:45:06 +00:00
Gerald Squelart f442a5e4ef Bug 1722261 - Remove final uses of {,Racy}RegisteredThread's ReinitializeOnResume, and all ...JSSampling's - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121969
2021-08-19 02:45:06 +00:00
Gerald Squelart 97e3890b81 Bug 1722261 - Rework profiler_set/clear_js_context to use ThreadRegistration - r=canaltinova
Remove some now-unused functions.

Differential Revision: https://phabricator.services.mozilla.com/D121968
2021-08-19 02:45:06 +00:00
Gerald Squelart 63419ce641 Bug 1722261 - In locked_profiler_stop, find live threads from ThreadRegistry and stop using RegisteredThread - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121967
2021-08-19 02:45:05 +00:00
Gerald Squelart d1dc23d278 Bug 1722261 - During sampling, go through the ThreadRegistry to find ThreadRegistrations with ProfiledThreadData - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121966
2021-08-19 02:45:05 +00:00
Gerald Squelart f76e1393d4 Bug 1722261 - Remove the old PlatformData, which is now unused - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121965
2021-08-19 02:45:04 +00:00
Gerald Squelart 1ddcd6f2cd Bug 1722261 - Move mPreviousThreadRunningTimes from old PlatformData to ProfiledThreadData - r=canaltinova
It's more appropriate because the running times are only relevant to a profiling session.
And PreviousThreadRunningTimes can now be accessed through the ThreadRegistration (thanks to the ProfiledThreadData pointer added in the previous patch).

Since the threads' RunningTimes don't live in `PlatformData`, and because they are now implicitly cleared between profiling sessions (because `ProfiledThreadData`s get destroyed/recreated when stopping/starting the profiler), there is no need for an explicit `ClearRunningTimes()` anymore.

Differential Revision: https://phabricator.services.mozilla.com/D121964
2021-08-19 02:45:04 +00:00
Gerald Squelart f1efb88cf5 Bug 1722261 - Store ProfiledThreadData pointer in ThreadRegistrationData - r=canaltinova
Because ProfiledThreadData is always related to IsBeingProfiled, they are set and cleared together.
In particular, this is used to quickly guess that the thread is being profiled by reading the non-atomic mProfiledThreadData, rather than reading the slightly slower atomic mIsBeingProfiled.

Differential Revision: https://phabricator.services.mozilla.com/D121963
2021-08-19 02:45:04 +00:00
Gerald Squelart a6bac5bf4f Bug 1722261 - GetRunningEventDelay through ThreadRegistration - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121962
2021-08-19 02:45:03 +00:00
Gerald Squelart 1103846a4e Bug 1722261 - Use IsSleeping and SetSleeping/Awake in ThreadRegistration - r=canaltinova
Also moved profiler_thread_is_sleeping to ProfilerThreadState.h.

Differential Revision: https://phabricator.services.mozilla.com/D121961
2021-08-19 02:45:03 +00:00
Gerald Squelart 90391ed0e9 Bug 1722261 - Use ThreadRegistration classes during sampling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121960
2021-08-19 02:45:03 +00:00
Gerald Squelart ba1812f66e Bug 1722261 - ProfilerThreadPlatformData platform-specific implementation - r=canaltinova
This is mostly a copy of the old PlatformData. That old PlatformData will be removed in a later patch, once it's not used anymore.

Differential Revision: https://phabricator.services.mozilla.com/D121959
2021-08-19 02:45:02 +00:00
Gerald Squelart 2c70228702 Bug 1722261 - Remove ThreadInfo.h, use ProfilerRegistrationInfo instead - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121850
2021-08-19 02:45:02 +00:00
Gerald Squelart e5b83da81d Bug 1722261 - Store {,Racy}RegisteredThread pointer in ThreadRegistrationData - r=canaltinova
This will help with replacing the old {,Racy}RegisteredThread with the new ThreadRegistration classes, while still being able to access the old classes (until they are not needed anymore).

Differential Revision: https://phabricator.services.mozilla.com/D121849
2021-08-19 02:45:01 +00:00
Gerald Squelart ccc6f787bb Bug 1722261 - Move profiler_thread_is_being_profiled to ProfilerThreadState.h and use ThreadRegistration - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D121848
2021-08-19 02:45:01 +00:00
Gerald Squelart a544395950 Bug 1722261 - Remove data from RegisteredThread, only keep pass-through methods to the ThreadRegistrationData - r=canaltinova
Now {,Racy}RegisteredThread don't contain any data, but provide the same API that goes through ThreadRegistration.
Until they are removed, {,Racy}RegisteredThread are given private access to ThreadRegistration{,Data} for easier access.

This means that we can now change uses of RegisteredThread to use ThreadRegistration directly instead, and the data will be the same through either APIs.

Also, RacyRegisteredThread::ThreadId() was unused so it can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D121847
2021-08-19 02:45:00 +00:00
Gerald Squelart ec135fdda7 Bug 1722261 - Use ProfilingStack inside ThreadRegistrationData - r=canaltinova
The ProfilingStack object inside ThreadRegistrationData is guaranteed to live while the thread is registered (and alive), and all accesses are guaranteed to be done either:
- On-thread, so during that time ThreadRegistrationData and its ProfilingStack cannot be destroyed.
- From another thread, but with the Profiler lock and/or per-thread lock, which also guarantees that ThreadRegistrationData and its ProfilingStack cannot be destroyed.

RacyRegisteredThread brought some doubts about end-of-thread accesses, that why there's was an intermediate ref-counted ProfilingStackOwner to keep ProfilingStack alive where needed. Now we can remove it.

Also the separate TLS (Thread Local Storage) for ProfilingStackOwner can be removed, since we can reach the ProfilingStack through the ThreadRegistration TLS for the same cost.

Differential Revision: https://phabricator.services.mozilla.com/D121846
2021-08-19 02:45:00 +00:00
Gerald Squelart e93ee41920 Bug 1722261 - Move profiler_is_active_and_thread_is_registered to ProfilerThreadState.h and use ThreadRegistration - r=canaltinova
ThreadRegistration already knows if it's registered, so profiler_is_active_and_thread_is_registered can use that now.

Differential Revision: https://phabricator.services.mozilla.com/D121845
2021-08-19 02:45:00 +00:00
Gerald Squelart a86300f990 Bug 1722261 - Remove handling of nested RegisteredThreads - r=canaltinova
Since ThreadRegistration already handles nested registrations, the legacy profiler_{,un}register_thread() functions don't need to care about that anymore (and the RegisteredThread TLS will be removed in a later patch anyway).
The informational markers have been moved to ProfilerThreadRegistration.cpp.

Differential Revision: https://phabricator.services.mozilla.com/D122315
2021-08-19 02:44:59 +00:00
Gerald Squelart 671cc2ba44 Bug 1722261 - Insert new ThreadRegistration (un)registering functions in the middle of profiler_{,un}register_thread - r=canaltinova
ProfilerThreadRegistry (un)register functions have been moved to platform.cpp because they need to interact closely with functions and classes in that file.

profiler_{,un}register_thread are now simple calls to ThreadRegistration::{R,Unr}egisterThread, which call ThreadRegistry::{R,Unr}egister, which now integrate that old bodies of profiler_{,un}register_thread.
So from this point, threads may use either profiler_{,un}register_thread or ThreadRegistration equivalents, and this will (un)register with both the new ThreadRegistration classes and the legacy RegisteredThread class into CorePS. (Later patches will remove RegisteredThread completely.)

Bonus: Since the stack top is now adjusted when constructing ThreadRegistrationInfo (before giving it to the legacy ThreadInfo), there is no more need for `GetStackTop()`.

Differential Revision: https://phabricator.services.mozilla.com/D121844
2021-08-19 02:44:59 +00:00
Gerald Squelart b64fd5a92c Bug 1722261 - New header ProfilerThreadState.h will contain thread-related profiler APIs - r=canaltinova
Thread-related APIs that are currently in ProfilerState.h will move here, and will use the new ThreadRegistration classes introduced in bug 1721939.

In this patch the header is empty apart from a few #includes, and users of "ProfilerState.h"'s thread functions now #include "ProfilerThreadState.h" instead. So there are no actual code changes yet.

Differential Revision: https://phabricator.services.mozilla.com/D121843
2021-08-19 02:44:58 +00:00
Botond Ballo c6e24a791e Bug 1726450 - Upgrade the 'two layers that scroll together' assertion to MOZ_ASSERT again. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D123016
2021-08-19 02:25:49 +00:00
Noemi Erli 980837755c Backed out 5 changesets (bug 1725632) for breaking local builds (Bug 1726470) CLOSED TREE
Backed out changeset eb97cd4501db (bug 1725632)
Backed out changeset 58d8d8061ac2 (bug 1725632)
Backed out changeset 5430196b65a1 (bug 1725632)
Backed out changeset d748d5ce02de (bug 1725632)
Backed out changeset 7d25d722fbd7 (bug 1725632)
2021-08-19 03:06:37 +03:00
Drew Willcoxon b11bea8e81 Bug 1710518 - Introduce group-relative suggestedIndex and modify quick suggest results to use it. r=harry
This introduces a new `result.isSuggestedIndexRelativeToGroup` property. When
true, `result.suggestedIndex` is relative to the result's group.

We can get rid of some hardcoded quick-suggest things with this.

I considered a `relativeSuggestedIndex` property that would replace
`suggestedIndex`, but it would have made `muxer._addSuggestedIndexResults` a
little more complex because it would need to know whether it should use
`relativeSuggestedIndex` or `suggestedIndex`. `UrlbarView._rowCanUpdateToResult`
would also need to be updated since it checks for suggestedIndex results. But
there are trade-offs either way and I'm open to using `relativeSuggestedIndex`.

While working on this I noticed that we broke the position of quick suggest
results in bug 1662167. They're supposed to be last in the outer general group,
and currently the muxer is hardcoded to put them last in `GENERAL`, but after
that bug `INPUT_HISTORY` actually comes last. To fix that I added a new
`GENERAL_PARENT` group that's used for the outer general group. Quick suggest
results now use this group, combined with a relative `suggestedIndex`, to come
last. I wanted to rename `GENERAL` to `PLACES` or `BOOKMARKS_HISTORY` and use
`GENERAL` for the outer group, but we use `GENERAL` in a ton of places (tests
especially) and I didn't want to touch blame for it all. I'm open to better
names than `GENERAL_PARENT`. I considered `FIREFOX_SUGGEST` but I don't think
it's a good idea to tie it to specific branding that may change.

Differential Revision: https://phabricator.services.mozilla.com/D122799
2021-08-19 00:04:08 +00:00
James Teh 1454a64119 Bug 1725916: Ensure an Accessible is created if aria-description is set. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D122850
2021-08-18 23:37:31 +00:00
Botond Ballo e02fd94e7b Bug 1576514 - Re-enable browser_pdfjs_saveas.js for Fission. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D123013
2021-08-18 23:33:29 +00:00
Kajal Sah 3026a19d36 Bug 1722774 - Adds telemetry to know which of the region selection methods are used. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D122273
2021-08-18 23:00:44 +00:00
Marian-Vasile Laza d479928bd4 Backed out 6 changesets (bug 1711912) for causing build bustages on MediaKeySystemAccessManager.cpp. CLOSED TREE
Backed out changeset b07f45562c35 (bug 1711912)
Backed out changeset 3e825fc0f7d3 (bug 1711912)
Backed out changeset 964d14b3352e (bug 1711912)
Backed out changeset b941cfb1f5ae (bug 1711912)
Backed out changeset fde1d605fce1 (bug 1711912)
Backed out changeset b135eb6bb7db (bug 1711912)
2021-08-19 01:46:57 +03:00
Jon Bauman 58d94ab547 Bug 1726410 - Update mp4parse-rust to 62aa5d4. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D122985
2021-08-18 22:08:15 +00:00