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

826556 Коммитов

Автор SHA1 Сообщение Дата
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
Cosmin Sabou 5bcbe6ae54 Merge autoland to mozilla-central. a=merge 2023-01-16 23:18:09 +02:00
Sandor Molnar 0ba084799e Backed out changeset 2a9e0f5c854d (bug 1809134) for causing assertion failures in ContentParent.cpp CLOSED TREE 2023-01-16 23:17:10 +02:00
Jonatan Klemets 402679a7ad Bug 1810366 - Remove unused requestedModule variable in ModuleLoaderBase::ResolveRequestedModules r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D166879
2023-01-16 20:17:30 +00:00
mcheang a541da473f Bug 1810250 - Add weather icons for weather suggestions in the urlbar.r=adw,desktop-theme-reviewers,dao DONTBUILD
This patch receives a weather icon id from our merino server. We then use that
icon id and map it to a specific weather icon svg file within
urlbar-dyanmic-result.css. The icons colors are specified for light, dark, and
high contrast mode.

Differential Revision: https://phabricator.services.mozilla.com/D166848
2023-01-16 19:59:19 +00:00
Glenn Watson aaa0b66da1 Bug 1810067 - Remove unused TransformComputation display list build mode r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D166752
2023-01-16 19:59:15 +00:00
Florian Quèze d7356251cd Bug 1768920 - Avoid polling every 5 seconds in nsUserIdleService, r=dthayer,geckoview-reviewers,owlish.
This changes the behavior in a few ways:
- the 'active' notification is now only fired when a new user event has been received by Firefox, rather than by any application on the entire system.
- the 'active' notification will fire immediately when Firefox receives a new event. Before the patch is was fired within 5s of the user returning on some plateforms (eg. Mac) and immediately on some other platforms that already called ResetIdleTimeout (windows, gtk, android). I'm not sure if these existing calls to ResetIdleTimeout are really needed, nor if they add significant overhead.
- when an idle observer has been notified of 'idle', it won't be notified again until Firefox receives events. Before the patch, if the user used other applications while Firefox was in the background, we would keep sending active and idle notifications to our idle observers. This behavior was probably initially intended when the nsUserIdleService was introduced to support the use case of instant messaging clients, but doesn't seem to match the expectations of the existing consumers of the service.

Differential Revision: https://phabricator.services.mozilla.com/D166306
2023-01-16 19:53:33 +00:00
Florian Quèze a5ccc617c6 Bug 1768920 - Add profiler markers to see which code uses user idle observers and when they fire, r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D166305
2023-01-16 19:53:33 +00:00
Julian Descottes 54c3ff76ae Bug 1810009 - [devtools] Add test navigating a tab while BrowserToolbox is open r=devtools-reviewers,nchevobbe
Depends on D166769

Differential Revision: https://phabricator.services.mozilla.com/D166796
2023-01-16 19:52:51 +00:00
Alexandre Poirot 1145df91e1 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-16 19:52:51 +00:00
Edgar Chen e5fe0a40c0 Bug 1796548 - Introduce a generic method to check clipboard capabilities in nsIClipboard; r=geckoview-reviewers,nika,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D166475
2023-01-16 19:50:17 +00:00
Jens Stutte a8ab981875 Bug 1809134 - Ensure we get ContentChild::NotifiedImpendingShutdown before (the last) BrowserChild::RecvDestroy. r=smaug
For normal (desktop) fission, we add NotifyImpendingShutdown before we notify destroy to the browser if we know a content process will go away both during normal operations and when the parent shuts down.
For e10s and Android we can only add NotifyImpendingShutdown when the parent process is shutting down, as they use a different keep alive logic that is hard to anticipate.

Differential Revision: https://phabricator.services.mozilla.com/D166303
2023-01-16 19:39:14 +00:00
Ben Hearsum 3e5bd87204 Bug 1807924: make attribution tests work against MSIX builds r=nalexander
Two notable things here:
- Small refactor of AttributionCode.jsm to make it more testable (allowing `getCampaignId` to be easily stubbed out)
- An ugly skip of one of the "invalid" attribution code tests -- for reasons noted in the comments. Ultimately, this points to maybe a refactor or larger change being needed, but I don't think it's worth blocking getting these tests on.

Differential Revision: https://phabricator.services.mozilla.com/D166688
2023-01-16 19:32:05 +00:00
Nika Layzell 3a216241c7 Bug 1806751 - Perform indexeddb database maintenance on a TaskQueue, r=asuth,janv,dom-storage-reviewers
After adding some assertions to GetCurrentSerialEventTarget and running tests,
I was able to find this caller which could lead to the crashes here. By running
database maintenance on a TaskQueue the captured event target will be one which
accepts and processes dispatches.

Differential Revision: https://phabricator.services.mozilla.com/D166609
2023-01-16 19:22:04 +00:00
Dave Townsend 1135edff9e Bug 1777973: Remove MOZ_NEW_XULSTORE implementation. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D166786
2023-01-16 19:21:23 +00:00
Andreas Farre ead5ce5973 Bug 1810544 - OpaqueResponse::Alllow -> OpaqueResponse::Allow. r=smaug,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D166927
2023-01-16 19:17:14 +00:00
Chris H-C f3fa6118c6 Bug 1805427 - Take advantage of new Cow<str> labels in Glean r=janerik
Depends on D164605

Differential Revision: https://phabricator.services.mozilla.com/D164606
2023-01-16 18:51:19 +00:00