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

826572 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 5e721345b9 Bug 1810009 - [devtools] Avoid firing DOCUMENT_EVENT will-navigate for non-top-level targets. r=devtools-reviewers,jdescottes
The legacy listener was explicitely avoiding emitting this event for non top-level targets.
It seems like all frontend code listening to will-navigate ignore the event is targetFront.isTopLevel is false,
so it looks like no code would expect these event.
So let's try to avoid emitting them if they aren't used by anyone.
(and can be confusing/buggy in the context of the browser toolbox)

Differential Revision: https://phabricator.services.mozilla.com/D166769
2023-01-17 01:01:14 +00:00
Ben Hearsum 5a30a1e071 Bug 1750581: add installation telemetry tests for msix packaged environments r=nalexander
This is the bare minimum that's reasonable to do -- it gives us a simple test of the happy path. The diff is largely indentation changes.

Differential Revision: https://phabricator.services.mozilla.com/D166687
2023-01-17 01:00:10 +00:00
Oriol Brufau 7802cff266 Bug 1808784 - Cache gBrowser.tabContainer.allTabs. r=Gijs
gBrowser.tabs was either redirecting to gBrowser.tabContainer.allTabs or
using the previously cached result. However, most tabContainer code uses
allTabs directly, which was not benefiting from the cache.

Therefore, this patch caches gBrowser.tabContainer.allTabs, and makes
gBrowser.tabs always redirect to it.

Also makes it consistent for gBrowser.tabContainer._getVisibleTabs() and
gBrowser.visibleTabs. In that case both the logic and the cache were in
gBrowser, and tabContainer was redirecting to that, except when gBrowser
hadn't been initialized.

So it's better to have both the logic and the cache in tabContainer.

Differential Revision: https://phabricator.services.mozilla.com/D166962
2023-01-17 00:36:19 +00:00
Matthew Gregan 886d44aef1 Bug 1801049 - Update AudioIPC macOS branch to 73c8a02d. r=cubeb-reviewers,padenot
Picks up a single fix to address a deadlock triggered when attempting to
configure an audio device that has been removed.

Differential Revision: https://phabricator.services.mozilla.com/D166736
2023-01-17 00:35:51 +00:00
sotaro b030ecd699 Bug 1808818 - Remove assert in RemoteTextureHostWrapper::CheckIsReadyForRendering() r=gfx-reviewers,lsalzman
RemoteTextureMap::GetRemoteTextureForDisplayList() has enough asserts. The assert in RemoteTextureHostWrapper::CheckIsReadyForRendering() could  be removed.

Differential Revision: https://phabricator.services.mozilla.com/D166886
2023-01-17 00:29:44 +00:00
sotaro 3479d4c075 Bug 1810089 - Enable tests of color_quads.list with software WebRender on Android r=lsalzman,gfx-reviewers
By Bug 1808878 and Bug 1808840, tests of color_quads.list becomes to work with software WebRender on Android.

Differential Revision: https://phabricator.services.mozilla.com/D166766
2023-01-17 00:26:58 +00:00
Cosmin Sabou 5be3068372 Backed out changeset dfd4ec691465 (bug 1807829) for causing bp-hybrid bustages on HTMLEditUtils.h. CLOSED TREE 2023-01-17 03:44:41 +02:00
Sandor Molnar fbafccd735 Backed out changeset 27045cd56940 (bug 1810614) for causing bc failures in browser/base/content/test/popups/browser_popup_resize.js CLOSED TREE 2023-01-17 03:22:58 +02:00
Sandor Molnar 41b78439d0 Backed out 6 changesets (bug 1809752, bug 1809753) for causing perma failures in browser/components/firefoxview/tests/browser/browser_feature_callout_position.js
Backed out changeset ea05784d74c4 (bug 1809753)
Backed out changeset 7c9b20eebcc8 (bug 1809753)
Backed out changeset d0267ac2256d (bug 1809753)
Backed out changeset aa9f2971bd6f (bug 1809753)
Backed out changeset f0d9fcfaa6f8 (bug 1809752)
Backed out changeset 6d58c799cffe (bug 1809752)
2023-01-17 03:19:24 +02:00
Sandor Molnar 469df50089 Backed out changeset 649e12877126 (bug 1808906) for causing bp-hybrid bustages. 2023-01-17 03:18:05 +02:00
Sandor Molnar 06e631d4a6 Backed out changeset 5ad22146a015 (bug 1509346) for causing failures in docshell/base/nsDocShell.cpp 2023-01-17 03:16:20 +02:00
Sandor Molnar 39c6204afb Backed out 2 changesets (bug 1809430) for causing multiple mochitest failures.
Backed out changeset 5608823689cf (bug 1809430)
Backed out changeset 948fc6987251 (bug 1809430)
2023-01-17 03:14:01 +02:00
Sandor Molnar e16941d56b Backed out changeset 0f2913c81558 (bug 1809430) for causing multiple failures. 2023-01-17 03:13:06 +02:00
Masayuki Nakano d83e7a60f8 Bug 1808906 - Make the style editor handle `<font>` at last when there are multiple preserved styles r=m_kato
Height of inline elements are considered with current `font-size` and
`line-height`.  Therefore, if content in inline elements are taller, the
`background-color` does not fill the bigger content background entirely.
For solving this issue, Chrome handles styles of `<font>` element as
outer-most style.  This is reasonable approach, let's follow this.

For solving this issue, we can change the order of `PreservedStyle`s at setting
the preserved styles.  Then, `SetInlinePropertiesAsSubAction` is called with
reversed order and apply later style first and applies newer styles to all
content in an element which is previously inserted.  Therefore, the `<font>`
element styles should be last elements of `PendingStyles::mPreservingStyles`.

When applying new style, our style editor does not reuse existing `<font>`
element, and this causes writing WPT harder.  Therefore, this patch also changes
the applying range of `<font>` style to wrapping existing `<font>` element if
and only if its content is entirely selected.

Unfortunately, this approach cannot get exactly same result as Chrome because we
insert outer-most `<font>` element first, then, try to apply `background-color`,
at this moment, our style editor applies the style to the previously inserted
`<font>` element instead of creating new `<span>` element.  This behavior is
required for compatibility in the other cases.  Additionally, changing only this
behavior requires a lot of method changes to specify how to handle it.  However,
this incompatible behavior may not cause any problems in web apps in the wild.
Therefore, this patch does not solve this incompatible issue.  I think that once
we get a bug report caused by this difference, we should redesign how to set
multiple inline styles once.

Depends on D166416

Differential Revision: https://phabricator.services.mozilla.com/D166617
2023-01-16 23:59:45 +00:00
Emilio Cobos Álvarez bf6597ccd4 Bug 1810614 - Simplify AppWindow::SizeShellTo when sizing to the window shell. r=smaug
In this case we can do easier things than going through the shell and
assuming all sizes go through the window.

Differential Revision: https://phabricator.services.mozilla.com/D166367
2023-01-16 23:42:40 +00:00
Masayuki Nakano 6d33379e63 Bug 1807829 - Make `HTMLEditor::CreateStyleForInsertText` use same logic as `HTMLEditor::SetInlinePropertiesAsSubAction` to apply new style r=m_kato
The problem in Yahoo mail is, when you apply new font size to:
```
<div><font size="7">{}<br></font></div>
```

then, when you type text, you'll get:
```
<div><font size="7"><font size="4">abc<br></font></font></div>
```

because `HTMLEditor::CreateStyleForInsertText` does not check ancestors to
apply new style to empty text node which is created by the method for
placeholder.  Of course, the other browsers update the existing
`<font size="7">` instead and we should follow it.

However, there are 3 problems:
1. Our editor may adjust insertion point to nearest editable text node if caret
in empty inline elements.
2. Our editor supports increase/decrease font size which have been removed from
`Document.execCommand`, but Thunderbird keeps using it, and that's implemented
with an independent method.
3. Our style editor code does not support applying style to collapsed selection.

Therefore, this patch does:
1. keep create empty text node to apply new style at specific point.
2. give up to use new path if there is preserved font size increment/decrement.
3. separate `HTMLEditor::SetInlinePropertiesAsSubAction` and add new path for
applying style to collapsed range.

Then, `HTMLEditor::CreateStyleForInsertText` can use
`HTMLEditor::SetInlinePropertiesAsSubAction` which supports handling new styles
with existing ancestors.

Differential Revision: https://phabricator.services.mozilla.com/D166416
2023-01-16 23:42:27 +00:00
Emilio Cobos Álvarez 5077bb750f Bug 1809430 - Clean up ClientToWindowRect. r=cmartin,mstange
Make it return a margin from client area to window area, and add an
explicit function to get the size difference.

No behavior change.

Depends on D166428

Differential Revision: https://phabricator.services.mozilla.com/D166431
2023-01-16 23:35:34 +00:00
Emilio Cobos Álvarez 58fca810d3 Bug 1809430 - Fix nsCocoaWindow::ClientToWindowSize with custom non-client margins. r=mstange
Similar fix as for windows above, see the comment.

Depends on D166426

Differential Revision: https://phabricator.services.mozilla.com/D166428
2023-01-16 23:29:56 +00:00
Emilio Cobos Álvarez cb551614ea Bug 1809430 - Fix nsWindow::ClientToWindowSize with custom non-client margins. r=cmartin
This fixes the failures that got the patch from bug 1807838 backed out
on Windows.

MacOS needs a similar fix.

Differential Revision: https://phabricator.services.mozilla.com/D166426
2023-01-16 23:29:56 +00:00
Nika Layzell f7772bb6ae Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.

We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.

I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.

Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Nika Layzell 8d118308de Bug 1809753 - Part 3: Replace all callers of GetCurrentEventTarget with GetCurrentSerialEventTarget, r=mccr8,necko-reviewers,valentin
This only changes the behaviour when called with a TaskQueue or other type
using SerialEventTargetGuard on the stack. They are being switched over as the
existing GetCurrentEventTarget method is being removed, as it is somewhat
confusing, and poorly documented.

Callers which need to get the current thread even when on a threadpool or
behind a TaskQueue were switched to GetCurrentEventTarget in the previous part.

Differential Revision: https://phabricator.services.mozilla.com/D166607
2023-01-16 23:14:11 +00:00
Nika Layzell 528844de5d Bug 1809753 - Part 2: Switch some calls to GetCurrentEventTarget() to NS_GetCurrentThread, r=mccr8
These callers are depending on the existing behaviour which always returns a
thread, and does not respect custom TaskQueues. In the next part, all remaining
callers will be switched to GetCurrentSerialEventTarget.

Differential Revision: https://phabricator.services.mozilla.com/D166606
2023-01-16 23:14:11 +00:00
Nika Layzell f410f28a30 Bug 1809753 - Part 1: Remove quantum-dom nsIThread::EventTarget methods, r=mccr8
We aren't likely to try to make these changes any time soon, so cleaning out
these unnecessary methods which just return `this` will simplify things.

I was unable to find any calls to the `.eventTarget` getter in JS, which makes
sense, as the nsIThread type is only really used in JS as a wrapper around the
main thread in older code. Because of that, it has been removed as well.

Differential Revision: https://phabricator.services.mozilla.com/D166605
2023-01-16 23:14:10 +00:00
Nika Layzell 1b2d188dea Bug 1809752 - Part 2: Assert if GetCurrentSerialEventTarget is called on a thread pool with no active TaskQueue, r=mccr8
This will help catch issues such as the one from bug 1806751, as we will assert
earlier in the process. This also aligns better with the existing documentation
of the method (which has been updated), which suggests that the method would
assert if called on a thread pool.

Differential Revision: https://phabricator.services.mozilla.com/D166604
2023-01-16 23:14:10 +00:00
Nika Layzell 5d5010db6f Bug 1809752 - Part 1: Allow querying the current nsThreadPool, r=mccr8
This was always being tracked internlly to implement
nsThreadPool::IsOnCurrentThread, however this patch exposes the getter
publicly.

This will be used to assert if GetCurrentSerialEventTarget() is called from a
threadpool thread without a TaskQueue in the next part.

Differential Revision: https://phabricator.services.mozilla.com/D166603
2023-01-16 23:14:10 +00:00
Mark Banner cb71370cbb Bug 1810567 - Enable ESLint rule no-shadow for .mjs files (but not .sys.mjs). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D166942
2023-01-16 23:04:21 +00:00
Emilio Cobos Álvarez 2f3519d8e0 Bug 1809057 - Make sure all sizemode changes do go through FrameState::SetSizeModeInternal. r=rkraesig
I wrote this while debugging / fixing bug 1806438, and this is kind of
related and needed to fix that bug in one of my machines.

This ensures that all size mode changes go through a central place.

In order to do that, we need to pass whether we need to ShowWindow()
since doing it redundantly in some cases like windows-triggered sizemode
changes would break stuff.

Differential Revision: https://phabricator.services.mozilla.com/D166254
2023-01-16 21:41:37 +00:00
Cosmin Sabou dd57a6881b Backed out changeset c4f4ba7c9013 (bug 1803089) for causing bc windows failures on browser_test_data_text_csv.js. 2023-01-17 01:10:03 +02:00
Cosmin Sabou 6ac24faba9 Backed out changeset 4debd5a21cd9 (bug 1809057) for causing bc windows failures on browser_test_data_text_csv.js. CLOSED TREE 2023-01-17 01:01:52 +02:00
Mike Conley ccd1a56cdd Bug 1809330 - Allow the MigrationWizard to close dialogs that it is embedded in. r=niklas
Differential Revision: https://phabricator.services.mozilla.com/D166392
2023-01-16 22:25:40 +00:00
Mike Conley 941da3b0b8 Bug 1803447 - Implement progress page for the new migration wizard. r=hjones,kpatenio,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D165090
2023-01-16 22:25:40 +00:00
Alexandre Poirot 016b0934ad Bug 1809848 - [devtools] Remove TargetMixin.chrome attribute. r=devtools-reviewers,nchevobbe
This is a very old and legacy attribute which always had a fuzzy definition.
As of today it was a somewhat alias of "not debugging a local/remote tab".

Differential Revision: https://phabricator.services.mozilla.com/D166904
2023-01-16 22:25:09 +00:00
Alexandre Poirot 4a6ec1e674 Bug 1809848 - [devtools] Remove TargetMixin.isAddon. r=devtools-reviewers,nchevobbe
Ideally, the debugging context should rather be defined by the descriptor
rather than the top target.
On top of that isAddon is only an alias for isWebExtension.
So drop most usages of isAddon and otherwise use isWebExtension.

Differential Revision: https://phabricator.services.mozilla.com/D166903
2023-01-16 22:25:08 +00:00
Alexandre Poirot 280a2e3e0a Bug 1809848 - [devtools] Remove a few unused attributes of TargetMixin. r=devtools-reviewers,nchevobbe
Legacy addon should no longer exist. We only support WebExtensions (at least in DevTools).

Differential Revision: https://phabricator.services.mozilla.com/D166648
2023-01-16 22:25:08 +00:00
Alexandre Poirot 993faf67d5 Bug 1809848 - [devtools] Remove TargetMixin.isLocalTab/localTab attributes. r=devtools-reviewers,nchevobbe
They should rather be queried on the descriptor front.

Differential Revision: https://phabricator.services.mozilla.com/D166647
2023-01-16 22:25:07 +00:00
Sandor Molnar 02f4f30ca5 Backed out changeset dfce1bce524c (bug 1810250) for causing xpc failures in browser/components/urlbar/tests/quicksuggest/unit/test_weather.js CLOSED TREE 2023-01-16 23:59:30 +02:00
Sandor Molnar 74969776d3 Backed out 2 changesets (bug 1810009) for causing dt failures in devtools/client/framework/browser-toolbox/test/browser_browser_toolbox_navigate_tab.js
Backed out changeset ee636c21fe18 (bug 1810009)
Backed out changeset d9bcb8862497 (bug 1810009)
2023-01-16 23:52:08 +02:00
Dimi 0f26fbb9c0 Bug 1808794 - Compare submitted data with data in storage to determine whether to show credit card doorhanger r=sgalich
Originally, we determine whether to show doorhanger by checking if users
have modified autofilled fields. If yes, then we show the credit card update doorhanger.

However, this is not always correct. It is possible the updated data
matches other data in the storage, in that case, we still shouldn't show
the update doorhanger.

This patch updates the behavior to always compare the submmited data and
data in the storage to determine whether to show the update doorhanger.

Differential Revision: https://phabricator.services.mozilla.com/D166316
2023-01-16 21:44:20 +00:00
Emilio Cobos Álvarez 472815d00b Bug 1809057 - Make sure all sizemode changes do go through FrameState::SetSizeModeInternal. r=rkraesig
I wrote this while debugging / fixing bug 1806438, and this is kind of
related and needed to fix that bug in one of my machines.

This ensures that all size mode changes go through a central place.

In order to do that, we need to pass whether we need to ShowWindow()
since doing it redundantly in some cases like windows-triggered sizemode
changes would break stuff.

Differential Revision: https://phabricator.services.mozilla.com/D166254
2023-01-16 21:41:37 +00:00
Mark Striemer 4a07af42bb Bug 1803151 - Use our vendored lit.all.mjs in storybook r=hjones
Differential Revision: https://phabricator.services.mozilla.com/D166393
2023-01-16 21:39:56 +00:00
Gijs Kruitbosch c476162b54 Bug 1803089 - do a better job displaying useful info for data/blob URLs in the download helper app dialog, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D166781
2023-01-16 21:36:59 +00:00
Adam Vandolder b2b544c7ed Bug 1509346 - Add support for <form rel>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D166489
2023-01-16 21:32:19 +00:00
Geoff Brown b09e6b2e7b Bug 1810601 - Bump mozdevice version to 4.1.0 r=releng-reviewers,hneiva
Differential Revision: https://phabricator.services.mozilla.com/D166956
2023-01-16 21:25:58 +00:00
Mike Hommey 4e0c7ddead Bug 1810014 - Move macOS SDK toolchain task to linux workers. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D166724
2023-01-16 21:23:44 +00:00
serge-sans-paille 0a31b97e46 Bug 1806473 - Cleanup: gecko_taskgraph/transforms/test/raptor.py r=ahal,jlorenzo
* Use enumerate(...) instead of manual indexing
* It's safe to modify a list we're iterating on as long as we break out
  of the iteration right after the modification.

Differential Revision: https://phabricator.services.mozilla.com/D165053
2023-01-16 21:18:24 +00:00
serge-sans-paille bc5b0d45bc Bug 1806472 - Move redundant call to fromNow r=ahal,jlorenzo
Basic loop invariant code motion. The impact on execution time is not
totally negligible due to the number of tests involved.

Differential Revision: https://phabricator.services.mozilla.com/D165052
2023-01-16 21:18:23 +00:00
serge-sans-paille e55d9646ff Bug 1805842 - Introduce gecko_taskgraph.util.copy_task r=jlorenzo
This module defines a single, efficient function to deepcopy a task. It
is faster than deepcopy because it doesn't need to track cycles and
duplicate references that don't make sense for tree (and not graph)
structures.

I measure a speedup > 10% on mach taskgraph tasks --fast >/dev/null.

Differential Revision: https://phabricator.services.mozilla.com/D164789
2023-01-16 21:18:23 +00:00
Hiroyuki Ikezoe fe1a1cef01 Bug 1805022 - Do round_out() surface_rect before translating in <CompositeState>::get_surface_rect. r=gw
For example, given that
  `surface_rect`: `Box2D((0.0, -1.04904175e-5), (588.99994, 0.0))`
  `surface bound`: Box2D((0.0, -512.0), (1024.0, 0.0))

Then doing round_out() after translating the surface_rect with
`-surface_bounds.min.to_vector()` results an empty rect.

We need to make sure that negative origin `surface_rect` is not collapssed.

Differential Revision: https://phabricator.services.mozilla.com/D166887
2023-01-16 21:15:46 +00:00
stransky a17d4b8e52 Bug 1809350 [Wayland] Unlock mouse pointer before repeated lock r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D166909
2023-01-16 21:04:44 +00:00
Cosmin Sabou 4bcfd6fc0b Merge mozilla-central to autoland. CLOSED TREE 2023-01-16 23:23:45 +02:00