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

799190 Коммитов

Автор SHA1 Сообщение Дата
Neil Deakin b17459dd7a Bug 1774683, use ValidateFilenameForSaving to validate dropped links on Windows, r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D149746
2022-06-22 08:27:07 +00:00
Masayuki Nakano fd5663f3e8 Bug 1770877 - part 33: Make `HTMLEditor::RelativeFontChangeOnTextNode` stop touching `Selection` directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149104
2022-06-22 08:18:40 +00:00
Masayuki Nakano 616e905371 Bug 1770877 - part 32: Make `HTMLEditor::InsertContainerWithTransaction` stop touching `Selection` directly r=m_kato
This changes the behavior a little bit, unfortunately.

`InsertContainerWithTransaction` starts return code.  And the behavior changed
WPTs are hit here:
https://searchfox.org/mozilla-central/rev/a8bdd0feeb7ae596a202333ee324a68153f9f4c4/editor/libeditor/EditorBase.cpp#2179-2180

Then, the editor specific error will be converted to `NS_OK` at the
corresponding public method.  Therefore, the return code may be changed from
`NS_ERROR_FAILURE` to `NS_OK`, and that causes the return value change of
`Document.execCommand`.

Differential Revision: https://phabricator.services.mozilla.com/D149103
2022-06-22 08:04:26 +00:00
Jan de Mooij 5d6240653e Bug 1774546 part 3 - Store caller frame pointer in CommonFrameLayout. r=iain,rhunt
Now that all frames store the caller's frame pointer, we can add it to `CommonFrameLayout`
and get rid of `FramePointerOffset`.

This also removes `JitFrameLayout::unused_`. This has to happen at the same time so that
`sizeof(JitFrameLayout)` doesn't change (a lot of code depends on that for alignment).

`JitFrameLayout` is now aligned on the frame pointer instead of the return address.
This lets us simplify some of the Wasm stubs code (especially for ARM64) where we had
to workaround the old aligned-after-return-address invariant.

Differential Revision: https://phabricator.services.mozilla.com/D149760
2022-06-22 08:01:15 +00:00
Jan de Mooij 44a743c598 Bug 1774546 part 2 - Store number of arguments in the frame descriptor. r=iain
This renames the `numActualArgs_` field to `unused_` and stores a constant there
for now. The next patch will remove this field and simultaneously add the frame
pointer to `CommonFrameLayout`, preserving the current `JitFrameLayout` size.

Differential Revision: https://phabricator.services.mozilla.com/D149759
2022-06-22 08:01:14 +00:00
Jan de Mooij e4d839cd3e Bug 1774546 part 1 - Add MacroAssembler::loadNumActualArgs. r=iain
Also simplify `BaselineFrame::numActualArgs` by forwarding to `JitFrameLayout::numActualArgs`.

Differential Revision: https://phabricator.services.mozilla.com/D149758
2022-06-22 08:01:14 +00:00
Jan Horak b0dc7110a9 Bug 1771500 Show all available printers; r=stransky
Allow to continue enumeration of the printers for all protocols
(ie. ipp and ipps).

Following advice given by cups guys to use cupsGetDests2 to avoid duplicates of printers in the list: https://bugzilla.redhat.com/show_bug.cgi?id=1983403#c18

Differential Revision: https://phabricator.services.mozilla.com/D147508
2022-06-22 07:52:59 +00:00
Emilio Cobos Álvarez 078a02d787 Bug 1770636 - Fix StartupWMClass of flatpak package to match actually-used WMClass. r=jhorak
Pending further changes iff we want to do them (like comment 5), this is the
right thing to do.

I'm not a fan of comment 5 since in the past I've been bitten by Wayland
compositors not comparing stuff case-insensitively, so making everything
lowercase is probably simpler.

Differential Revision: https://phabricator.services.mozilla.com/D149911
2022-06-22 07:45:24 +00:00
Tooru Fujisawa b75b7a5d26 Bug 1772969 - Part 4: Use plain lazy getter to add alias for DownloadIntegration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149710
2022-06-22 07:36:50 +00:00
Tooru Fujisawa d4dc02b637 Bug 1772969 - Part 3: Remove _TaskScheduler prefix from implementations. r=nalexander
Depends on D149708

Differential Revision: https://phabricator.services.mozilla.com/D149709
2022-06-22 07:36:50 +00:00
Tooru Fujisawa 5763b77095 Bug 1772969 - Part 2: Rename ExtensionStorageSync with ExtensionStorageSyncKinto for Kinto implementation. r=markh
Depends on D149707

Differential Revision: https://phabricator.services.mozilla.com/D149708
2022-06-22 07:36:49 +00:00
Tooru Fujisawa baf350744e Bug 1772969 - Part 1: Define lazy getter for ModuleRegistry.jsm on different objects for each protocol. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149707
2022-06-22 07:36:49 +00:00
Julian Descottes 2c8736a218 Bug 1767787 - [devtools] Wait until default editor has focus in browser_styleeditor_bug_851132_middle_click.js r=nchevobbe
I could reproduce the intermittent locally and when it occurs, the initial editor actually didn't have focus.
I think that what happens is that we hit a race condition where the focus is stolen by the initial editor after we clicked on a new stylesheet
and switched to a new editor.

Differential Revision: https://phabricator.services.mozilla.com/D149952
2022-06-22 07:20:06 +00:00
Alexandre Poirot 5de1d5d3d8 Bug 1774601 - [devtools] Remove plain url computation. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149533
2022-06-22 07:08:12 +00:00
Alexandre Poirot 46e415c5f2 Bug 1774601 - [devtools] Stop hiding query parameters in Tab components. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149532
2022-06-22 07:08:12 +00:00
Alexandre Poirot 278649831b Bug 1774601 - [devtools] Stop hiding query parameters in the SourceTree. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149531
2022-06-22 07:08:11 +00:00
manekenpix d5efa9c119 Bug 1771095 - Remove size property from SearchBar component r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D149348
2022-06-22 07:04:09 +00:00
Mark Banner 7951e16444 Bug 1775087 - Update notification email addresses for existing search related telemetry. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D149861
2022-06-22 06:38:18 +00:00
Makoto Kato 22bcab84b6 Bug 1769907 - Don't register desktop's SelectChild and SelectParent in GeckoView. r=geckoview-reviewers,agi
Actually, GeckoView registers both desktop and mobile actor for `<select>`
element. It is unnecessary to use desktop's `<select>` actor.

But, if GeckoView doesn't register desktop's `<select>` actor,
`layout/forms/test/test_select_reframe.html` will be failure since GV doesn't
handle `mozhidedropdown` that is a event when the control is unbinded from
layout tree.

So we need to handle this for this situation that is one of dismissed cases.

Differential Revision: https://phabricator.services.mozilla.com/D149526
2022-06-22 05:27:28 +00:00
Chris Peterson c1c9a048ec Bug 1775162 - Fix C++20 build error in BSPPolygon template class definition. r=gfx-reviewers,jrmuizel
gcc -std=c++20 (but not clang -std=c++20) complains about template class definitions that specify the template parameter on the class constructor.

In file included from /builds/worker/workspace/obj-build/dist/include/nsDisplayList.h:43,
from /builds/worker/workspace/obj-build/dist/include/mozilla/layout/RemoteLayerTreeOwner.h:17,
from /builds/worker/workspace/obj-build/dist/include/mozilla/dom/BrowserParent.h:23,
from /builds/worker/checkouts/gecko/accessible/ipc/other/RemoteAccessible.cpp:13:
/builds/worker/workspace/obj-build/dist/include/mozilla/layers/BSPTree.h:30:18: error: expected ')' before '*' token
|   BSPPolygon<T>(T* aData, gfx::Polygon&& aGeometry)
|                ~ ^

Differential Revision: https://phabricator.services.mozilla.com/D149813
2022-06-22 04:06:47 +00:00
Nick Alexander 4c6dedd925 Bug 1768494 - Preserve devtools profile outside of ephemeral background profile. r=devtools-reviewers,nchevobbe
For `--backgroundtask ... --jsdebugger` invocations, the devtools
profile is kept inside the ephemeral background profile.  This means
that breakpoints, etc are not preserved across repeated debugging
invocations.  This change eases the debugging process.

Differential Revision: https://phabricator.services.mozilla.com/D145893
2022-06-22 04:05:26 +00:00
criss 8936ae36d5 Merge mozilla-central to autoland on a CLOSED TREE 2022-06-22 06:34:51 +03:00
criss e94cc6be6b Merge autoland to mozilla-central. a=merge 2022-06-22 06:31:23 +03:00
Thomas Wisniewski db8b4655a3 Bug 1775126 - fix a structured-cloning failure in the webcompat report-site-issue feature, and update and re-enable some of its tests; r=denschub,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149847
2022-06-22 03:27:54 +00:00
Masayuki Nakano 9c2145a90d Bug 1770877 - part 31-3: Replace `insertLineBreak` variable in `HTMLEditor::InsertParagraphSeparatorAsSubAction` with a lambda r=m_kato
This can encapsule the long if-elseif-else blocks into the lambda.

Differential Revision: https://phabricator.services.mozilla.com/D149102
2022-06-22 02:54:34 +00:00
Masayuki Nakano 5af4b5cb8d Bug 1770877 - part 31-2: Make `HTMLEditor::InsertParagraphSeparatorAsSubAction` call `HandleInsertParagraphInParagraph` without `Selection` r=m_kato
The preceding call of `InsertBRElement` may collapse selection at the inserted
padding `<br>` element.  Only when calling `HandleInsertParagraphInParagraph`,
`InsertParagraphSeparatorAsSubAction` uses `Selection`.  So, only in this case,
we need to recompute the point to split for keeping current (odd) behavior.

Note that in normal cases, using `atStartOfSelection` gets same result.
However, if there are some invisible nodes such as comment nodes, doing it
may change the behavior.  For now, we should keep the current behavior.  It
should be sorted out when we make it stop inserting `<br>` elements for the
preparation of split without checking whether it's actually necessary.

Differential Revision: https://phabricator.services.mozilla.com/D149101
2022-06-22 01:52:32 +00:00
Masayuki Nakano 39b814f2f8 Bug 1770877 - part 31-1: Add WPT to check `insertParagraph` behavior r=m_kato
The expectations are exactly same as Chrome's behavior.  And checked by my
hands briefly, Safari also behaves as same as Chrome.

Differential Revision: https://phabricator.services.mozilla.com/D149100
2022-06-22 01:52:31 +00:00
Masayuki Nakano 47a4dbc560 Bug 1770877 - part 30: Make `HTMLEditor::HandleInsertParagraphInListItemElement` stop touching `Selection` directly r=m_kato
It touches `Selection` redundantly (i.e., immediately after that, it or its
caller collapse `Selection`).  So we can just stop it because we can ignore
the cases when the handling fails after the redundant `Selection` update and
it can be caused by tricky things with the mutation event listeners.

Note that without changing `SplitNodeResult` a lot, we cannot make it return
`SplitNodeResult`, and currently there is no motivation to do it because the
only caller does not need the detail of the split.  Therefore, I give up doing
it.

Differential Revision: https://phabricator.services.mozilla.com/D149099
2022-06-22 01:34:03 +00:00
Hiroyuki Ikezoe 41c2d38055 Bug 1772640 - Use NSCoordSaturatingMultiply to avoid overflowing nscoord. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D149838
2022-06-22 01:30:29 +00:00
Andreea Pavel 4198598761 Bug 1756585 - update disabling condition to include opt builds on mac too r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D149944
2022-06-22 01:28:38 +00:00
Masayuki Nakano c76d7f7b67 Bug 1770877 - part 29: Make `HTMLEditor::HandleInsertParagraphInHeadingElement` stop touching `Selection` directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149098
2022-06-22 01:25:04 +00:00
Masayuki Nakano 9b86130934 Bug 1770877 - part 28-6: Make `HTMLEditor::HandleInsertParagraphInParagraph` stop touching `Selection` directly r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149097
2022-06-22 01:18:35 +00:00
Daisuke Akatsuka b2c66bbd04 Bug 1775008: Fix timeout failure on Linux TV test. r=adw
In Linux TV test, as thare is case that the input filed lost the focus until
showing popup, timeout failure happens since the expected poup never be shown.
To avoid this, if losing the focus, retry setup to open popup.

Differential Revision: https://phabricator.services.mozilla.com/D149713
2022-06-22 01:06:42 +00:00
Masayuki Nakano a8fbc40014 Bug 1770877 - part 28-5: Get rid of unnecessary duplication of `EditorDOMPoint` in `HTMLEditor::HandleInsertParagraphInParagraph` r=m_kato
I tried to make the latter half preparation to call
`HTMLEditor::SplitParagraphWithTransaction`, but I cannot make it cleaner
because it needs to return `HTMLBRElement*` and `EditorDOMPoint` with maybe
modifying the DOM tree.  So, I keep it as-is, but I make replace the unnecessary
duplicated `EditorDOMPoint` with the original one which is adjusted to avoid
to create new empty link in the right paragraph.

Differential Revision: https://phabricator.services.mozilla.com/D149096
2022-06-22 01:05:47 +00:00
Masayuki Nakano fc4610f7d0 Bug 1770877 - part 28-4: Make `HTMLEditor::HandlerInsertParagraphInParagraph` take a split point and editing host r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D149095
2022-06-22 01:00:42 +00:00
Masayuki Nakano a1ce604b80 Bug 1770877 - part 28-3: Make `HTMLEditor::HandleInsertParagraphInParagraph` insert `<br>` element immediately after considering so r=m_kato
Using the wide scope `EditorDOMPoint pointToInsertBR` makes it harder to read.
Although this duplicates a call of `HTMLEditor::InsertBRElement` and a couple of
post processing, but I think that it's easier to read/understand.

Differential Revision: https://phabricator.services.mozilla.com/D149094
2022-06-22 00:40:20 +00:00
Daisuke Akatsuka a1cfc10fd2 Bug 1774885: Make empty input not target. r=adw
moz_inputhistory can accept empty string as its input column.
WHERE Clause of SQL getting Adaptive History has
`:searchString BETWEEN i.input AND i.input || X'FFFF'`
condition, but it will be true even if the input is empty string.
This is the cause of this bug.
So, we add one more condition checking whether the input is empty string to
resolve this problem.

Differential Revision: https://phabricator.services.mozilla.com/D149933
2022-06-22 00:10:11 +00:00
Masayuki Nakano c0a2068334 Bug 1770877 - part 28-2: Make `HTMLEditor::HandleInsertParagraphInParagraph` return earlier if should be default to insert `<br>` instead r=m_kato
If it needs to insert a `<br>` but the editor does not want to create new
paragraph, its caller should be default to insert a `<br>` element.  Rather
than checking this at inserting `<br>` element, it should do it at considering
the place to insert the new `<br>`.

Differential Revision: https://phabricator.services.mozilla.com/D149093
2022-06-21 23:50:42 +00:00
Masayuki Nakano b97aca0073 Bug 1770877 - part 28-1: Isolate the part of adjusting split point for avoiding to create new empty link in `HTMLEditor::HandleInsertParagraphInParagraph` r=m_kato
The method does several different things.  For making each part isolated,
this patch wraps the first part with a lambda.

Differential Revision: https://phabricator.services.mozilla.com/D149092
2022-06-21 23:38:06 +00:00
Molly Howell 0100e9367b Bug 1668803 - Use the proper cookie store when in permanent private mode. r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D149448
2022-06-21 23:22:06 +00:00
Michelle Goossens 976c5c916d Bug 1774977 - Migrate Linux misc from AWS to GCP r=ahal,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D149837
2022-06-21 22:06:06 +00:00
Emilio Cobos Álvarez 7829e5aab5 Bug 1774378 - Make select code harder to mess up. r=Gijs
Right now we rely on the menulist to be injected by hand in all the
relevant windows. Instead create it lazily, making the select code more
standalone.

The DevTools window was missing it, for example.

Differential Revision: https://phabricator.services.mozilla.com/D149620
2022-06-21 21:42:58 +00:00
Katherine Patenio 76abd1c793 Bug 1769146 - Integrate previously saved colorway themes in Colorways section within about:addons. r=dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D148867
2022-06-21 21:36:28 +00:00
Glenn Watson a523865d98 Bug 1775189 - Switch `push_stacking_context` API to be clip-chain based r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D149845
2022-06-21 21:09:24 +00:00
Mark Banner e4e8d3c73f Bug 1771173 - Add ESLint rule to check for correct usages of lazy. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D149718
2022-06-21 20:42:16 +00:00
Mark Banner c6c1957341 Bug 1771173 - Remove unused imports. r=geckoview-reviewers,arai,owlish
Differential Revision: https://phabricator.services.mozilla.com/D149786
2022-06-21 20:42:16 +00:00
Mark Banner 6d8a9d2dbb Bug 1771173 - Clean up unused definitions of console in extension modules. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D149785
2022-06-21 20:42:15 +00:00
Mark Banner c764bd4110 Bug 1771173 - Make XPIDatabase/XPIInstall lazy getters easier to work with linters. r=mixedpuppy
It is difficult for linters to analyse loops around functions which get symbols. Instead, use
the symbols directly from the imported module.

Differential Revision: https://phabricator.services.mozilla.com/D149717
2022-06-21 20:42:15 +00:00
Mark Banner f3dad5a117 Bug 1771173 - Rework FormAutoFill's log creation to make it easier for linters to handle. r=sgalich
This rewrites the lazy getters, so that the lazy getter is defined at the call point, which makes it
easier for linters to understand what is being defined.
In some cases, the log is not being used, so the definition code is removed.

Differential Revision: https://phabricator.services.mozilla.com/D149716
2022-06-21 20:42:15 +00:00
Mark Banner a305bf7d18 Bug 1771173 - Fix/ignore some duplicate imports caught by the new valid-lazy rule. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D149715
2022-06-21 20:42:14 +00:00