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

813626 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight db4c1e8525 Bug 1792028 - Apply the lazy defineLazyPreferenceGetter workaround to browser-sidebar.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D157932
2022-09-22 15:07:57 +00:00
Peter Van der Beken 2fecef1b02 Bug 1782400 - Implement "return" method for WebIDL async iterable iterator. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156350
2022-09-22 15:02:26 +00:00
Peter Van der Beken 9ffbe8f65e Bug 1782400 - Add Promise::ThenCatchWithCycleCollectedArgsJS. r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D156349
2022-09-22 15:02:25 +00:00
Peter Van der Beken 8dbae0a524 Bug 1777145 - Don't expose Wrap for WebIDL iterable iterator objects outside of binding code. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156348
2022-09-22 15:02:25 +00:00
Peter Van der Beken 80a3ebc106 Bug 1777145 - Store the WebIDL iterable iterator's data directly in the iterator. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156347
2022-09-22 15:02:24 +00:00
Peter Van der Beken ea2b0b31e4 Bug 1777145 - Iterable iterators don't need aGivenProto. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156346
2022-09-22 15:02:24 +00:00
Peter Van der Beken 611ff2e6c3 Bug 1777145 - Stop declaring IterableIteratorBase as derived from nsISupports. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156345
2022-09-22 15:02:24 +00:00
Peter Van der Beken a61442c4ca Bug 1777145 - Expose the Wrap function for WebIDL iterable iterators through a template argument instead of as a function pointer member. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156344
2022-09-22 15:02:23 +00:00
Peter Van der Beken aa9940a9b5 Bug 1788969 - Align async iterable code more closely with the spec. r=edgar
Implement the common steps for the next method from
https://webidl.spec.whatwg.org/#es-asynchronous-iterator-prototype-object in
a base class, that all async iterable iterator objects inherit from. Natives
that implement an async iterable only need to implement the "getting the
next iteration result" part in their GetNextPromise method. This means they
don't have to create the object according to "CreateIterResultObject"
themselves, but can just create promise and often resolve it with a native
value directly. We've switched to a special JS::Value to signal "end of
iteration", but that's hidden inside the
iterator_utils::ResolvePromiseForFinished helper.
The WebIDL parser now uses the right return type for the generated "next"
method, which means that any exceptions in the binding code itself will
actually be correctly converted to a rejected promise instead of being
rethrown.
This also uses a class for the generated iterable iterator that's not
exposed outside the binding code. No other code should create and/or
wrap these anyway.

Differential Revision: https://phabricator.services.mozilla.com/D156323
2022-09-22 15:02:23 +00:00
Peter Van der Beken 7650d454e8 Bug 1788969 - Correct ForEach Tuple helper functions. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D156322
2022-09-22 15:02:22 +00:00
Peter Van der Beken 97b8e69531 Bug 1788969 - Reject async iterable result promises on error instead of throwing. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156321
2022-09-22 15:02:22 +00:00
Peter Van der Beken 40e72fae73 Bug 1788969 - Improve example code for async iterable. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D156320
2022-09-22 15:02:21 +00:00
Ray Kraesig 310ef2663b Bug 1785162 - [3/3] stall for half time in non-main processes r=gsvelto
Retain the full stall period in the main process; stall for only half as
long in all other processes.

Differential Revision: https://phabricator.services.mozilla.com/D157140
2022-09-22 15:01:42 +00:00
Ray Kraesig adac61618a Bug 1785162 - [2/3] refactor to specify stall count and time r=glandium,gsvelto
Refactor to allow specifying a potentially variable stall-count and
-time, rather than a binary stall/don't-stall cue.

No functional changes; this facility will actually be used in the next
commit.

Differential Revision: https://phabricator.services.mozilla.com/D157139
2022-09-22 15:01:42 +00:00
Ray Kraesig f30c547ca5 Bug 1785162 - [1/3] Revert "Disable all-process stalling in Nightly" r=gsvelto
Sufficient data has been acquired to confirm that all-stall does indeed
increase the chance of a main-process OOM compared to just main-stall.

Revert to all-stall anyway, solely to simplify the next two commits.

Differential Revision: https://phabricator.services.mozilla.com/D157138
2022-09-22 15:01:42 +00:00
Ray Kraesig 75b7dee465 Bug 1207753 - Add TS annotations for some mozjemalloc mutexes r=jesup
Add thread-safety annotations for a few of the mutexes in mozjemalloc.

Differential Revision: https://phabricator.services.mozilla.com/D157858
2022-09-22 15:00:44 +00:00
andrej 52af826568 Bug 1773868 - - Increase wait time for obtaining video from android devices. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D157829
2022-09-22 14:52:08 +00:00
Yoen Zhang b67bffa15d Bug 1787809 - Secondary button arrow should be inline so responsive shows it more centered r=jprickett
Differential Revision: https://phabricator.services.mozilla.com/D156886
2022-09-22 14:46:43 +00:00
Kash Shampur 2049aed23a Bug 1783889 - Remove google-docs-canvas page load test. r=perftest-reviewers,afinder
The last time we re-recorded the google-docs site, it had been updated to the canvas version. There is no reason to keep the separate google-docs-canvas page load test around.

Differential Revision: https://phabricator.services.mozilla.com/D157507
2022-09-22 14:28:23 +00:00
Emily McMinn 1bd05b6c54 Bug 1791861 - Update tooltip and aria-label for default colorway option r=fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D157863
2022-09-22 14:25:48 +00:00
Kelly Cochrane f5b302d3ba Bug 1790714 - Set Tab pickup open state pref to true when signing in r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D157857
2022-09-22 13:39:10 +00:00
ffxbld 4e99c68740 No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D157923
2022-09-22 12:46:23 +00:00
Andrew Creskey e8a5f6e8d2 Bug 1789468 - Add telemetry probe to measure from AsyncOpen to the transaction being added to the HttpConnectionManager r=necko-reviewers,kershaw
Collect this timing because it's on the critical path and may be slow in some scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D157204
2022-09-22 12:32:02 +00:00
Martin Robinson 3b0ff9fae9 Bug 1791760 - Move GetContainSizeAxes to nsIFrame r=emilio
This will allow this function to eventually return an appropriate value
depending on whether or not content is skipped via `content-visibility:
auto`. This change also starts looking directly at whether
content-visibility is skipping content or not, which should make it
compatible with a future `content-visibility: auto` implementation.

Differential Revision: https://phabricator.services.mozilla.com/D157831
2022-09-22 12:11:09 +00:00
Frederic Wang a26af613a4 Bug 1790009, part 3 - Implement special handling for operators using U+0338 and U+20D2. r=emilio
MathML Core specifies that operators containing a UTF-16 strings of
length 2 ending with U+0338 COMBINING LONG SOLIDUS OVERLAY or U+20D2
COMBINING LONG VERTICAL LINE OVERLAY should just use the properties of
the first character. This commit implements that behavior. It removes
obsolete entries that are superseded by this rule and modifies
updateOperatorDictionary.pl to ensure that no such entries are present.

Existing WPT test operator-dictionary-combining.html is already passing
after bug 1789583 because the operators tested use the default spacing.
So extend it to try operators with different spacing.

[1] https://w3c.github.io/mathml-core/#dfn-algorithm-to-determine-the-category-of-an-operator

Differential Revision: https://phabricator.services.mozilla.com/D157707
2022-09-22 12:04:08 +00:00
Frederic Wang 99b9446a07 Bug 1790009, part 2 - Operator dictionary: Only accept UTF-16 strings of 1 or 2 characters. r=emilio
MathML Core specifies that operators containing a UTF-16 strings whose
length is not 1 or 2 should use the default properties [1]. This
commit removes the obsolete strings of length 3 from our operator
dictionary and tweak updateOperatorDictionary.pl to ensure it only
accepts strings of 1 or 2 characters. This also adds an early return
in LookupOperator to immediately fallback to default properties.

[1] https://w3c.github.io/mathml-core/#dfn-algorithm-to-determine-the-category-of-an-operator

Differential Revision: https://phabricator.services.mozilla.com/D157706
2022-09-22 12:04:07 +00:00
Frederic Wang a099935c6f Bug 1790009, part 1: Refactor nsMathMLOperators::LookupOperator(s). r=emilio
nsMathMLOperators::LookupOperators(s) methods are currently use in three
places:

(1) In nsMathMLmoFrame::ProcessTextData(), where we need to check the
    flags for each form of the operator and take the bitwise-or of all
    of them, ignoring lspace/rspace.

(2) In nsMathMLOperators::GetStretchyDirection::ProcessTextData(), where
    we need to check the direction for each form of the operator (in any
    order) and return the first found, ignoring lspace/rspace.

(3) In nsMathMLmoFrame::ProcessOperatorData, where need to check the
    specified form, and try fallback forms in the order prefix, postfix,
    infix. When an entry is found, the code also clears the form bits of
    mFlags and bitwise-or the found flags.

This commit modifies nsMathMLOperators::LookupOperator to only check
one form at once and can be used to easily implement (1) and (2). This
removes the need for nsMathMLOperators::LookupOperators.

A new method nsMathMLOperators::LookupOperatorWithFallback is introduced
to preserve the fallback prefix/postfix/infix check that is needed for
(3). Undocumented bitwise logic is moved out of that method.

Differential Revision: https://phabricator.services.mozilla.com/D157705
2022-09-22 12:04:07 +00:00
Andreea Pavel c538244252 Bug 1777060 - disable test_caret_move_in_vertical_content.html on android debug r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D157917
2022-09-22 11:38:35 +00:00
Mark Banner 6dcc1faa3a Bug 1790644 - Ensure default search engine settings are correctly preserved during and after experiments. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157850
2022-09-22 10:51:44 +00:00
Julien Wajsberg 5b871dc1b3 Bug 1789866 - Update the directory mapping to reflect that wpt performance-related tests belong to Core::DOM: Performance r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D156862
2022-09-22 09:53:56 +00:00
Dennis Jackson 4547148195 Bug 1791179 - Fix mistaken conditional in StaticPrefs. r=dragana.
Differential Revision: https://phabricator.services.mozilla.com/D157559
2022-09-22 09:50:33 +00:00
stransky e957b7cb4a Bug 1645677 [Linux] Fix build on X11 r=emilio
Depends on D157629

Differential Revision: https://phabricator.services.mozilla.com/D157898
2022-09-22 09:41:06 +00:00
stransky 016607e147 Bug 1645677 [Linux] Call unmap for X11 mozcontainer r=emilio
Depends on D157360

Differential Revision: https://phabricator.services.mozilla.com/D157629
2022-09-22 09:41:05 +00:00
stransky e89edaae90 Bug 1645677 [Wayland] Stop vsync before GtkWindow si hidden r=emilio
Depends on D157359

Differential Revision: https://phabricator.services.mozilla.com/D157360
2022-09-22 09:41:05 +00:00
stransky d37a4e539c Bug 1645677 [Linux] Don't use SendResumeAsync() as we need to sync render thread with main thread where Gtk operates r=emilio
Depends on D157358

Differential Revision: https://phabricator.services.mozilla.com/D157359
2022-09-22 09:41:05 +00:00
stransky cb46f7b2dd Bug 1645677 [Wayland] Update EGLSurface when wl_surface is deleted r=emilio,jgilbert
When GtkWidget is hidden, underlying wl_surface is deleted. We need to also update EGLSurface of GtkWidget (GtkCompositorWidget)
as EGLSurface is directly linked to wl_surface:

- When GtkWidget is hidden, call GtkCompositorWidget::DisableRendering(). That releases GtkCompositorWidget resources
  related to GtkWidget (XWindow/XVisual etc.) and marks the widget as hidden.
- If GtkWidget is backed by EGL call compositor resume which forces compositor to create new EGLSurface.
- Make sure GLContextEGL can create EGLSurface even when GtkWidget is hidden and wl_surface is missing.
  It prevents fallback to SW rendering or pause RenderCompositorEGL which leads to Bug 1777664 (whole browser UI freeze).
- Return early from RenderCompositorEGL::BeginFrame()/RenderCompositorEGL::EndFrame() when GtkCompositorWidget is hidden.

Depends on D157357

Differential Revision: https://phabricator.services.mozilla.com/D157358
2022-09-22 09:41:04 +00:00
stransky 24d8cfd0dd Bug 1645677 [Wayland] Attach map/unmap signals to mContainer r=emilio
Map/Unmap signals creates and deletes mContainer wayland surface and EGL window.

As we need to call the handlers in correct order (mContainer::map -> nsWindow::map and nsWindow::unmap -> mContainer::unmap)
connect the signals to mContainer widget and call mContainer::unmap from nsWindow::unmap.

Then nsWindow::unmap can update compositor before wl_surface/EGL window is released by mContainer.

Differential Revision: https://phabricator.services.mozilla.com/D157357
2022-09-22 09:41:04 +00:00
Gabriele Svelto 8b0f8edb2c Bug 1791531 - Do not assume that the battery listener has been registered correctly on macOS r=haik
Differential Revision: https://phabricator.services.mozilla.com/D157719
2022-09-22 09:29:42 +00:00
Valentin Gosu 325aad0ef3 Bug 1549678 - Add pref whether to retry failed proxies r=necko-reviewers,kershaw
This is a regression from:
Bug 1494364 - don't prune proxy if all non-direct proxies are disabled

This pref preserves existing behaviour (and regression) but allows users to opt out of this behaviour which might cause slow browsing when the proxies are not responsive.

We might implement a proper fix for this problem in Bug 1791655.

Differential Revision: https://phabricator.services.mozilla.com/D157825
2022-09-22 08:37:37 +00:00
Mike Hommey 3ddbde0457 Bug 1791952 - Show suppressed warnings before warning summary. r=firefox-build-system-reviewers,andi
This makes the warning summary more visible at the end of the
build log.

Differential Revision: https://phabricator.services.mozilla.com/D157899
2022-09-22 08:03:02 +00:00
Mike Hommey 534b95e2e2 Bug 1791480 - Handle the situation when clang doesn't have the same default C++ standard for host and target. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D157799
2022-09-22 08:01:17 +00:00
Mike Hommey 5db5ac20e0 Bug 1791886 - Stop running file-whitespace lint on python files. r=sylvestre DONTBUILD
They are covered by flake8 and black.

Differential Revision: https://phabricator.services.mozilla.com/D157871
2022-09-22 07:56:23 +00:00
Jari Jalkanen 9cdfca5ed9 Bug 1791343 - Avoid parent queries for known entries. r=dom-storage-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D157619
2022-09-22 07:17:12 +00:00
Jari Jalkanen 066150cc8f Bug 1791343 - Return error from FileSystemDatabaseManager on request to list deleted folders. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D157824
2022-09-22 07:17:11 +00:00
Jari Jalkanen 68c0d6801c Bug 1791343 - Have rootId constant available in file system database manager. r=dom-storage-reviewers,jesup,janv
Differential Revision: https://phabricator.services.mozilla.com/D157646
2022-09-22 07:17:11 +00:00
Alexandre Lissy be1fb026ce Bug 1666703 - Assert that we have more than one voice r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D157456
2022-09-22 06:55:52 +00:00
Mozilla Releng Treescript c56b90f373 no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
brx -> ce84e4ea6174b84c01534f3166bc2fbe9a6ab29e
es-MX -> c33d91ea0de33ea254cdb7b6747a154ba20818e8
lo -> 15b33fc2d739e49b09af1e3e670b15053928fe61
si -> c456c855ba5d518f942d0edbbc93198a90911429
2022-09-22 06:58:09 +00:00
Masayuki Nakano ae2d6466aa Bug 1789967 - part 5: Mark all tests in `webdriver/tests/element_send_keys/content_editable.py` as known failures r=webdriver-reviewers,whimboo
According to the issue which added the test, the test intended that web driver
collapsing selection to end of the last editable text node at sending the text
do an editable element.  However, it seems that GeckoDriver does not do it but
the test accidentally passed since `HTMLEditor` has collapsed selection to end
of last leaf node even if the node is not editable.  Therefore, the test does
not check what the author expected enough (e.g., when there is another node
at end of the `<body>`, when there is a collapsed selection range outside
editor, when another editable element has focus).

Therefore, we can just mark the tests as known failures since we've not
explicitly support the behavior yet.

Differential Revision: https://phabricator.services.mozilla.com/D157777
2022-09-22 06:27:38 +00:00
Masayuki Nakano fc89971ea6 Bug 1789967 - part 4: Make `HTMLEditor::SelectAllInternal` work without selection range r=m_kato
It may be called even when there is no selection range and focused element.
However, it assumes that there is a selection range, and an editable element
has focus.  Therefore, now, if there is an editing host and user tries to
do "Select All" without clicking somewhere before doing it, "Select All" does
nothing.

Differential Revision: https://phabricator.services.mozilla.com/D157409
2022-09-22 06:27:38 +00:00
Masayuki Nakano a353ab7e90 Bug 1789967 - part 3: Make `HTMLEditor::CollapseSelectionToEndOfLastLeafNodeOfDocument` and `HTMLEditor::InitEditorContentAndSelection` do nothing if the document is partially editable r=m_kato
They and their callees work with the result of `GetRoot()` which is the document
element or the body element.  If the body is not editable, `Selection` should
not be updated in non-editable region nor `<br>` elements should not be
inserted in both non-focused editable elements and non-editable elements.
Therefore, they should run only when the document element or the `<body>`
element is editable.

To keep testing crashtests as reported, this patch makes tests which have
`contenteditable` except `<html>` and `<body>` initialize `Selection` as
what we've done.  And clean up the tests for helping to port them to WPT
in the future (bug 1725850).

Differential Revision: https://phabricator.services.mozilla.com/D157408
2022-09-22 06:27:37 +00:00