Commit Graph

762881 Commits

Author SHA1 Message Date
Sandor Molnar
6c075398dd Backed out 2 changesets (bug 1718570, bug 1718569) for causing wpt failures in /css/css-flexbox/flexbox-align-self-vert-001. CLOSED TREE
Backed out changeset 59cdbaaa6a7b (bug 1718570)
Backed out changeset 489ce763c140 (bug 1718569)
2021-07-13 08:52:28 +03:00
Emma Malysz
b683e4147a Bug 1703051, apply proton panel styling to other bookmarks dropdown and overflow menu in bookmarks toolbar r=desktop-theme-reviewers,mconley,jaws,harry
Differential Revision: https://phabricator.services.mozilla.com/D113200
2021-07-13 05:10:19 +00:00
Masayuki Nakano
8166b13197 Bug 1668945 - Make test_bug1581192.html wait for the click target interactive r=smaug
When the test times out, the `<iframe>` element in the parent document receives
the mouse button events.  This may happen if APZC has not received layout
information from subframe's document yet.

For solving this issue, this patch adds a utility method into `EventUtils.js`
that waits a `mousemove` event synthesized on the given target.

Differential Revision: https://phabricator.services.mozilla.com/D119596
2021-07-13 04:27:35 +00:00
Marcos Cáceres
77d16c7a16 Bug 1718221 - Set gamepad policy allow list to 'all' r=smaug
temporarily setting the allow list to all until we can figure out why "self" is not working.

Differential Revision: https://phabricator.services.mozilla.com/D119471
2021-07-13 03:46:22 +00:00
Paul Bone
2885e22066 Bug 1718184 - pt 3. Use TimeDuration more in CCGCScheduler r=nika
Differential Revision: https://phabricator.services.mozilla.com/D118793
2021-07-13 01:42:32 +00:00
Paul Bone
3402a68121 Bug 1718184 - pt 2. Add a comment about units for this pref r=nika
Differential Revision: https://phabricator.services.mozilla.com/D118792
2021-07-13 01:42:32 +00:00
Paul Bone
2ff6954e0f Bug 1718184 - pt 1. IdleTaskRunner now uses TimeDuration r=nika
Differential Revision: https://phabricator.services.mozilla.com/D118791
2021-07-13 01:42:32 +00:00
Barret Rennie
a7f4b085d8 Bug 1715643 - Add a task for running the desktop recorder r=ahal
This patch allows the desktop recorder to be run manually. A subsequent patch
will enable it for every m-c push once the hardware is deployed.

Differential Revision: https://phabricator.services.mozilla.com/D117367
2021-07-13 01:28:08 +00:00
Dzmitry Malyshau
504ad98a7b Bug 1680377 - Follow-up fixes to WebGPU error scope
addressing post-landing review notes of
https://phabricator.services.mozilla.com/D118741

Differential Revision: https://phabricator.services.mozilla.com/D119654
2021-07-13 01:26:46 +00:00
Robert Mader
7f684896cb Bug 1718570 - Implement full partial damage support, r=gfx-reviewers,aosmond
This becomes possible as a side effect of making sure that the current
buffer content is always completely valid, by blitting from the
previous buffer, analogous to
`NativeLayerCA::HandlePartialUpdate` and
`WindowSurfaceWaylandMB::HandlePartialUpdate`.

Apart from reducing overpaint, this improves correctness is many
situations, avoiding glitches.

Note: the approach here may not be optimal concerning efficiency yet
and improvements are planed after further refactoring.

Depends on D118925

Differential Revision: https://phabricator.services.mozilla.com/D119015
2021-07-13 00:55:30 +00:00
Robert Mader
f3231d9976 Bug 1718569 - Implement custom FBO management, r=jgilbert,gfx-reviewers
Instead of using the Wayland EGL platform. The later is very convenient
but has several limitations. Managing FBOs allows to make our code more
similar to that of MacOS as well as the Wayland software backend.

Most importantly, it will allow us to cleanly implement partial damage
by giving us direct acces to previously submitted buffers, allowing us
to blit back from them, similar like in
`NativeLayerCA::HandlePartialUpdate`.
There are several other fields where more control over buffers will
come in handy, too many to describe them here in detail.

Note: we still use individual buffer pools for each tile. However, this
change brings everything into place to allow us to change to a more
`SurfacePoolCA`-style shared pool. That will reduce GPU-memory usage.

Includes some minor cleanups here and there.

Depends on D119013

Differential Revision: https://phabricator.services.mozilla.com/D118925
2021-07-13 00:55:29 +00:00
Matthew Noorenberghe
aa67c5a592 Bug 1670027 - Always compute isPrintSelectionRBEnabled for the settings passed to the system print dialog. r=mstriemer
When the Mozilla PDF printer is selected, a new settings object was created without the value of isPrintSelectionRBEnabled computed.

Differential Revision: https://phabricator.services.mozilla.com/D119578
2021-07-13 00:25:38 +00:00
Markus Stange
56da3bf9e0 Bug 1715786 - Observe dynamic changes to the ScrollToClick system pref. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119684
2021-07-12 23:17:28 +00:00
Markus Stange
c4e62f99d4 Bug 1600430 - Observe changes to the full keyboard access system pref. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119680
2021-07-12 23:17:28 +00:00
Gijs Kruitbosch
ab5b2c0999 Bug 1659101 - fix intermittent failure in browser_preoloading_tab_moving.js, r=jaws
See discussion in the last few comments on the bug. If we don't wait for the correct URL
to load in the browser, the SpecialPowers.spawn task can get aborted, which causes the
test to fail.

Differential Revision: https://phabricator.services.mozilla.com/D119518
2021-07-12 22:12:48 +00:00
Alexandru Michis
f46a01150f Merge mozilla-central to autoland. a=merge 2021-07-13 00:58:12 +03:00
Alexandru Michis
4163c8f09b Merge autoland to mozilla-central. a=merge 2021-07-13 00:55:10 +03:00
Kershaw Chang
956fb7a27d Bug 1715029 - Keep the transaction alive when we failed to process it, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119171
2021-07-12 21:41:53 +00:00
surajeet310
f2e1419d77 Bug 1717651 - Removed instances of 'ensure_subprocess_env' from python/mach r=mhentges
Since Python 2 is no longer used in python/mach, hence 'ensure_subprocess_env' is obsolete .

Differential Revision: https://phabricator.services.mozilla.com/D119185
2021-07-12 21:38:13 +00:00
Andrew Sutherland
6736ecda3b Bug 1503072 - Add mitigation to bypass SW on navigation fault. r=dom-worker-reviewers,necko-reviewers,valentin,edenchuang
We enable this mitigation by default because:
- The alternate UX is about:blank or corrupted content.  That's never good.
- We want to make sure that our test coverage handles this mitigation because
  it's want we want to ship.

However, we do explicitly disable it for all ServiceWorker WPT's via
`__dir__.ini` directive at the root of the service-workers test tree.

This is motivated by the
`/service-workers/service-worker/update-recovery.https.html` test which
intentionally tests a broken ServiceWorker being able to be updated.  It
explicitly tests that the intercepted broken iframe shouldn't successfully
load, but our mitigation makes it load, which breaks the test.

Depends on D111845

Differential Revision: https://phabricator.services.mozilla.com/D111993
2021-07-12 21:10:26 +00:00
Eden Chuang
4827006e24 Bug 1503072 - Navigation fault interception test support. r=dom-worker-reviewers,edenchuang
Depends on D111844

Differential Revision: https://phabricator.services.mozilla.com/D111845
2021-07-12 21:10:26 +00:00
Eden Chuang
f8afcec5bf Bug 1503072 - Correct ServiceWorker host-based cleanup. r=dom-worker-reviewers,edenchuang
ServiceWorkerCleanUp's host based cleaning has not correctly been
checking whether the provided host is a root domain of the ServiceWorker
registration, instead performing an exact match (which is what
removeFromPrincipal does).

This check makes the logic consistent with other deleteByHost
implementations and is actually using the same check logic.

Differential Revision: https://phabricator.services.mozilla.com/D111992
2021-07-12 21:10:26 +00:00
Andrew Sutherland
acb1039ba3 Bug 1503072 - re-enable browser_storage_recover.js r=dom-worker-reviewers,edenchuang
This test was disabled for parent-intercept by bug 1470266 when parent
intercept was still in-progress.  Since the landing of worker remoting
and related cleanups, I think we're generally good here and I was able
to locally get this to pass under "--verify".  Also, this test is
actively relevant to the fixes we're making here on bug 1503072.

Differential Revision: https://phabricator.services.mozilla.com/D111844
2021-07-12 21:10:25 +00:00
Alexandre Poirot
0aae4b0803 Bug 1717005 - [devtools] Simplify nested event loop management. r=jdescottes,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D118174
2021-07-12 21:04:56 +00:00
Alexandre Poirot
e260f44463 Bug 1717005 - [devtools] Stop using unsafeSynchronize. r=jdescottes,bomsy
I don't think it was any useful to block synchronously on the call to `doResume`.
In the past it used to send an event to the client synchronously,
it may have been important back then.

test_nesting-03.js is still covering nested event loop by using two clients.

Differential Revision: https://phabricator.services.mozilla.com/D118173
2021-07-12 21:04:55 +00:00
Nika Layzell
e89956fbff Bug 1719184 - Transmit blob URLs more accurately when loading, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D119539
2021-07-12 20:56:04 +00:00
Sam Foster
3bb9aa63ff Bug 1699631 - Move the reload icon into toolkit. r=harry,preferences-reviewers,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119554
2021-07-12 20:45:08 +00:00
Nika Layzell
80d5716044 Bug 1717728 - Hold MessageChannel's monitor when creating PortLink, r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D118562
2021-07-12 20:36:20 +00:00
Robert Mader
943d2cda7b Bug 1718569 - Implement method to create a wl_buffer from a DMABufSurface, r=stransky
In order to allow us to create FBOs ourselves. Right now only implement
it for `DMABufSurfaceRGBA`. In the future, we will want implement the same
for YUV, see bug 1711461.

While on it, add mutexes to file descriptor functions to ensure the
surface mutex is always hold when calling them.

Differential Revision: https://phabricator.services.mozilla.com/D119013
2021-07-12 20:12:00 +00:00
Robert Mader
a2404c8fb7 Bug 1717351 - Enable Wayland multi-buffer software backend by default, r=stransky
As it gives us better guarantees about correctness, it allows us to enable
performance optimizations such as D118192, which reduces redraws.

Another advantage is that it does not need any extra knowledge about
compositors as it does not make any assumptions about buffer holding
behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D119668
2021-07-12 20:11:36 +00:00
Jonathan Kew
92deff6a93 Bug 1720131 - Enable the size-adjust descriptor and extended font-size-adjust property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D119632
2021-07-12 19:59:46 +00:00
Chris Martin
44cf790576 Bug 1701794 - Use nsOSHelperAppServiceChild with Windows r=nika,haik
Currently, the Windows implemenation of nsOSHelperAppService uses COM to figure out MIME types and extension
associations. That is incompatible with Win32k lockdown.

Luckily, Haik already made a class that handles these calls in content process and either marks them as
unimplemented or-else forwards them to the main process. This seems to work fine on Windows, so it looks like all
that needs to be done is adding XP_WIN to a couple of #ifdefs and we're good to go!

Differential Revision: https://phabricator.services.mozilla.com/D118391
2021-07-12 19:41:22 +00:00
Edgar Chen
3a387e8175 Bug 1719872 - Dialog submission triggered by form.submit() in click handler of submit button should not be deferred; r=smaug
Per https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#submit-dialog,
dialog submission won't run https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#planned-navigation
and the steps are synchronous.

Differential Revision: https://phabricator.services.mozilla.com/D119667
2021-07-12 19:39:25 +00:00
Sean Feng
fb396dbdeb Bug 1717020 - Add an assertion to EventStateManager::LookForAccessKeyAndExecute to diagnose the invalid index crash r=edgar
We've used a remainder already, so I don't see a reason for the crash.
The only possibility that I see is the length of the array gets changed
in the loop, so I added this assertion to see if that was the case.

Differential Revision: https://phabricator.services.mozilla.com/D119536
2021-07-12 19:32:20 +00:00
Bob Owen
5657013012 Bug 1717209: Copy to a new canvas texture, when re-forwarding a texture that is still read locked. r=lsalzman
If we are re-forwarding a texture that has not been updated then it might still
be read locked. We rely on the read lock for us to know when the Compositor or
Renderer has finished with the texture. So this change copies it to a new
texture, which we can safely read lock.
If the texture is not read locked then we ensure that it is set as updated,
which means we will read lock it as we forward it.

Differential Revision: https://phabricator.services.mozilla.com/D119546
2021-07-12 19:16:28 +00:00
Alexandre Lissy
27dc28950f Bug 1718046 - Use String concatenation rather than AppendPrintf r=handyman
Using AppendPrintf implies pure ASCII content, and strerror() might
return localized string, so this will break.

Differential Revision: https://phabricator.services.mozilla.com/D119286
2021-07-12 19:10:04 +00:00
Adam Gashlin
0e4dea8f8d Bug 1709131 - Report whether the current process has a package identity. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D114427
2021-07-12 19:08:10 +00:00
Bryce Seager van Dyk
71c872b895 Bug 1582575 - Shutdown MediaCache::sThread before nulling it. r=alwu
sThread is used in assertions of functions running on sThread. Prior to this
patch, we would null sThread before shutting it down, this meant sThread could
be null while resolving any tasks remaining on that thread. This could lead to
null derefs.

This patch changes the ordering of shutdown so that sThread is not nulled until
after shutdown has taken place.

Differential Revision: https://phabricator.services.mozilla.com/D119333
2021-07-12 18:50:35 +00:00
Scott
f53ec1227e Bug 1692066 - Pocket panels remove panel id from messaging. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D117964
2021-07-12 18:41:24 +00:00
Anny Gakhokidze
1620a4511a Bug 1646532 - Move mAreDialogsEnabled, mLastDialogQuitTime and mDialogAbuseCount to BC group, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D119299
2021-07-12 17:53:53 +00:00
Marian-Vasile Laza
4e2bd249f2 Backed out changeset c47653711a25 (bug 1699631) for causing node devtools failures. CLOSED TREE 2021-07-12 21:04:22 +03:00
Sam Foster
08af461236 Bug 1699631 - Move the reload icon into toolkit. r=harry,preferences-reviewers,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119554
2021-07-12 17:26:16 +00:00
Mark Banner
2cd85755ff Bug 1719697 - Extend the interactions viewer to view Snapshots as well. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D119623
2021-07-12 16:47:19 +00:00
Mark Banner
b36f31c033 Bug 1719697 - Add an API for accessing Snapshots based on metadata. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D119227
2021-07-12 16:47:18 +00:00
Mitchell Hentges
1256637095 Bug 1720113: Temporarily add "python" to default clobber set r=firefox-build-system-reviewers,nalexander
Until virtualenvs are more dependably consistent, we should purge them
by default when "./mach clobber" is run.

Differential Revision: https://phabricator.services.mozilla.com/D119651
2021-07-12 16:43:09 +00:00
Jon Coppeard
bc6660ee39 Bug 1678774 - Track more top level load requests while they are being parsed off-thread r=dpalmeiro
The original patch had caused some assertions so I rewrote it. This now puts
all untracked top-level requests on the new list while they are being compiled
so handles preload requests too.

Differential Revision: https://phabricator.services.mozilla.com/D119386
2021-07-12 16:31:00 +00:00
Jon Coppeard
d06022bd80 Bug 1678774 - Rename ScriptLoadRequestList::Cancel to CancelRequestsAndClear r=dpalmeiro
It's not otherwise obvious that calling this cancels all the requests in the list.

Differential Revision: https://phabricator.services.mozilla.com/D119491
2021-07-12 16:30:59 +00:00
Jon Coppeard
596f5488eb Bug 1678774 - Cancel off-thread compilations when destroying a ScriptLoader r=dpalmeiro
There are parse tasks present when the JS engine is being shut down that have
finished but haven't had their results collected by the embedding. This
shouldn't happen, and I think it's happening here because we're leaking a
JSRuntime (we cancel these when we shut down a runtime).

There's a comment that says this isn't necessary but cancelling outstanding
compile requests in ScriptLoader::Destroy fixes this problem on try. I don't
understand well enough to know what's going wrong with the current approach but
this fixes both the crash and the leak.

Differential Revision: https://phabricator.services.mozilla.com/D119315
2021-07-12 16:30:59 +00:00
Paul Zuehlcke
67db15658c Bug 1704110 - Added PreflightCacheCleaner. r=necko-reviewers,johannh,dragana
Differential Revision: https://phabricator.services.mozilla.com/D119290
2021-07-12 16:05:19 +00:00
Thomas Wisniewski
46c757c605 Bug 1713701 - Add a SmartBlock shim for IASPet; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119642
2021-07-12 16:03:56 +00:00