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

743487 Коммитов

Автор SHA1 Сообщение Дата
Timothy Nikkel 1be3156679 Bug 1690433. Update code that looks for the presence of a display port for new minimal display ports. r=botond
This patch is the result of auditing all places that look at the presence or absence of a display port to handle minimal display ports (HasDisplayPort, GetDisplayPort, etc).

Broadly speaking the places were in two categories:
1) things related to painting, that want to consider minimal display ports as display ports for purposes of things like sending over metadata and separating out layers.
2) things that care about async scrolling, and so actually want to have a properly sized display port.

Type 1) were not changed by this patch. Type 2) were changed to consider minimal display ports as not display ports.

Again, we are aiming to leave behaviour unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D103856
2021-02-04 11:16:59 +00:00
Timothy Nikkel e2f27ec58a Bug 1690433. Create a minimal display port type. r=botond
We introduce a new type of display port, a minimal display port. It is controlled via a property on the content element. When the property is present any other display port specified on the element is ignored and instead the display port rect is computed by assuming 0 display port margins and no alignment (this reuses the existing code for display port suppression).

We then add code to set a minimal display port on every scroll frame that is painted that has WantAsyncScroll() when certain prefs are set (the prefs are disabled as of this patch though).

We then need to manage removing the minimal display port property when, before this patch, we would have created a regular display port. As well we need to add the minimal display port property when, before this patch, we would have removed a regular display port.

In order to do this I audited all sites where we set the display port rect and display port margins property. The changes to the code for handling the removal display ports happens in a later patch.

My audit found that all of the places we set a display port want to clear the minimal display port property except:
-UpdateSub/RootFrame in APZCCallbackHelper
-UpdateDisplayPortMarginsForPendingMetrics in DisplayPortUtils

UpdateDisplayPortMarginsForPendingMetrics is basically a fast path of the UpdateSub/RootFrame code. These are the places where we handle calls to RequestContentRepaint from apz. By adding an assert and running it through try server I found that UpdateSub/RootFrame can create a display port in the following cases:
-a scroll info layer
-a scroll frame with !WantAsyncScroll() (the main thread never creates a display port for a scroll frame with !WantAsyncScroll()) (for example if the main thread creates a scroll id and sends over metadata via nsLayoutUtils::GetRootMetaData, and then the scroll rect changes, that will cause a RequestContentRepaint call)
-a few instances that don't fall into the above that happened on try server but didn't reproduce for me locally, so I don't know more about them.
It's not very important whether we clear the minimal display port property for these cases or not (the first two cases we don't async scroll the scroll frame at all, the last case seems quite rare).

Note that we intentionally do not change the existing behaviour of zero margin display ports set via SetZeroMarginDisplayPortOnAsyncScrollableAncestors as we are aiming for no behaviour changes with this patch (until we flip the pref). A later patch in a different bug handles changing these display ports over to minimal display ports.

Differential Revision: https://phabricator.services.mozilla.com/D103855
2021-02-04 11:16:44 +00:00
Kershaw Chang 8373d6cfc5 Bug 1682555 - Add a probe for echConfig sucessful rate r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103340
2021-02-04 10:49:35 +00:00
Kershaw Chang d2340e9ce4 Bug 1690220 - Don't query https rr when proxy CONNECT is in use r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103781
2021-02-03 10:32:34 +00:00
Alexandre Poirot 22f652b35a Bug 1690221 - [devtools] Remove unused Connector.setPreferences method. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103751
2021-02-04 09:06:41 +00:00
Alexandre Poirot a212b7b7b5 Bug 1690221 - [devtools] Merge FirefoxConnector into Connector. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103750
2021-02-04 10:37:20 +00:00
Alexandre Poirot 1e919fbc8d Bug 1690221 - [devtools] Remove unused chrome connector. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103749
2021-02-04 00:16:31 +00:00
Sylvestre Ledru f3bf06a03a Bug 1690745 - mozlint: Update to autopep8 1.5.5 r=linter-reviewers,marco,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D104007
2021-02-04 10:00:13 +00:00
Simon Giesecke 495067f772 Bug 1685677 - Refactor QuotaManager::CollectOriginsForEviction. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D101182
2021-02-04 09:24:27 +00:00
sachinchauhan2889@gmail.com 9834c92a95 Bug 1688511 - do not use 'else' after 'return'. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D103970
2021-02-04 09:24:19 +00:00
Asumu Takikawa 12e78a4a8b Bug 1690510 - fix unused definition when wasm exceptions are off r=rhunt
This patch fixes release/beta builds where the compile flag
for Wasm exceptions are turned off.

Differential Revision: https://phabricator.services.mozilla.com/D103935
2021-02-04 04:02:04 +00:00
Andrew Nicols 8eacaa4fde Bug 1686663: Set the value of buttons based on provided event r=smaug
Currently the default value of buttons is set to
MOUSE_BUTTONS_NOT_SPECIFIED, which defers calculation of the value to
the DOMWindowUtils GetButtonsFlagForButton function. This calculates a
default value based upon the value of the button key.

By specifying a default button value of 0, which has a meaning of
ePrimary, the buttons value is calculated as the
ePrimaryFlag (1), suggesting that a button was pressed.

This patch changes the behaviour to set the value of buttons based on
the original value of button before the default was applied. The value
of buttons also considers the event type to ensure that a mousedown
event has a default value calculated by DOMWindowUtils.

With the new behaviour:
- if a value was explicitly set for buttons, this is used
- if a value was explicitly set for button, then the not-specified
  constant is used to defer calculation to DOMWindowUtils
- if an event type was specified and that event type was not the
  'mousedown' event, then the no-button constant is used
- if an event type was not specified or it was for the 'mousedown'
  event, then the not-specified constant is used to defer calculation to
  DOMWindowUtils

Differential Revision: https://phabricator.services.mozilla.com/D101690
2021-02-04 00:59:54 +00:00
Nils Ohlmeier [:drno] f982032c7c Bug 1690200: pick SCTP init processing fix from upstream. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D103744
2021-02-04 06:53:06 +00:00
Butkovits Atila d8adfd3bef Backed out 2 changesets (bug 1302991) for causing failures on empty.html. CLOSED TREE
Backed out changeset e4734e2b38b6 (bug 1302991)
Backed out changeset fd4ba1eeec00 (bug 1302991)
2021-02-04 09:11:58 +02:00
Makoto Kato e197d51302 Bug 1684967 - Don't dispose GeckoEditableChild during JNI call. r=geckoview-reviewers,aklotz
This is a regression by bug 1651705.

After landing it, we use read-write lock to access GeckoEditableChild object.
But when using form submission with target=_blank, since we use some nested
event loop to open new window in same process, we may try to dispose
GeckoEditableChild even if it is still used. Then, it may be dead lock.

So I add a blocker class helper not to dispose GeckoEditableChild immediately.

Differential Revision: https://phabricator.services.mozilla.com/D103742
2021-02-04 06:23:54 +00:00
Makoto Kato 1c58526bf3 Bug 1684967 - Add navigation test for form submission. r=geckoview-reviewers,agi
`NavigationDelegateTest` has no form submission test.
So I would like to add this.

Differential Revision: https://phabricator.services.mozilla.com/D103741
2021-02-02 16:38:36 +00:00
Emilio Cobos Álvarez a48bca7a4d Bug 1655967 - Clean up touch events override code. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D103756
2021-02-04 06:16:25 +00:00
Ting-Yu Lin ec91abb3dc Bug 1690715 - Expand nsTableWrapperFrame::InitChildReflowInput() at its only caller. r=dholbert
The purpose of InitChildReflowInput() is to provide customized border,
padding, and containing block size for the *inner table frame*, not for
the caption frame. So the caption frame's ReflowInput doesn't need to be
initialized in a separate step.

Differential Revision: https://phabricator.services.mozilla.com/D103436
2021-02-04 05:17:11 +00:00
Matthew Gregan eda2ae78da Bug 1690718 - Update audioipc to 12349217. r=cubeb-reviewers,chunmin
Differential Revision: https://phabricator.services.mozilla.com/D103999
2021-02-04 05:28:42 +00:00
Ting-Yu Lin c5ed906bc5 Bug 1690713 - Add FLEX_LOG to print main/cross size overrides. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D103434
2021-02-04 05:07:36 +00:00
Emilio Cobos Álvarez 4aa434f694 Bug 1302991 - Do not try to resolve empty CSS url values. r=dholbert
So as to not try to load the same document as a subresource.

Differential Revision: https://phabricator.services.mozilla.com/D103717
2021-02-04 04:10:10 +00:00
Emilio Cobos Álvarez c033869dbf Bug 1302991 - Move the check to prevent loading internal resources as images. r=dholbert
No behavior change, but the new place seems more appropriate.
StyleComputedUrl::ResolveImage is the only caller of ImageLoader::LoadImage,
and it calls it unconditionally modulo an special-case for documents.

Differential Revision: https://phabricator.services.mozilla.com/D103716
2021-02-04 04:10:08 +00:00
Lee Salzman 59bb247451 Bug 1690655 - Occlude SwCompositor surfaces. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103949
2021-02-04 03:43:27 +00:00
Dorel Luca 9604c3539b Backed out changeset ca3e129f7a36 (bug 1682555) for XPCshell failures in netwerk/test/unit/test_http2-proxy.js. CLOSED TREE 2021-02-04 05:56:53 +02:00
Glenn Watson cb776f3c4c Bug 1690396 - Refactor mix-blend-mode impl to work correctly with raster roots. r=nical
This fixes incorrect rendering when either the source or backdrop
tasks establish a raster root.

By design, it also changes mix-blend backdrop readbacks to work in
a way that can handle readbacks from picture cache tiles, which is
a follow up optimization being worked on.

Differential Revision: https://phabricator.services.mozilla.com/D103853
2021-02-04 02:43:18 +00:00
Dorel Luca d2b9c19b64 Backed out changeset ddd89e758a23 (bug 1690396) for Wrench failures. CLOSED TREE 2021-02-04 04:30:53 +02:00
Tooru Fujisawa 5d84cceba8 Bug 1660275 - Remove unnecessary file. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103976
2021-02-04 02:05:03 +00:00
James Teh 1b4d4c6a32 Bug 1690456: Don't allow nsAccessibilityService to be shut down while a parent document is still shutting down. r=yzen
DocAccessible::Shutdown calls DocManager::NotifyOfDocumentShutdown, which can shut down nsAccessibilityService if there are no more consumers.
Previously, this could happen even when shutting down child documents.
Since shutting down the service shuts down all documents, this resulted in shutting down the parent document within an outer call to shut down that same document.
Even if that reentry were prevented, the service would have been gone when returning to the outer Shutdown call, which still needs the service to complete its cleanup.

To fix this, DocManager::NotifyOfDocumentShutdown takes an argument specifying whether to allow service shutdown.
This is set to false when shutting down child documents.
The service is thus allowed to shut down when returning to the parent document Shutdown.

In addition, mPresShell is cleared before shutting down child documents to prevent reentry like this.
While this should no longer happen, this should safeguard against similar pain in future.

Differential Revision: https://phabricator.services.mozilla.com/D103966
2021-02-04 01:10:52 +00:00
Glenn Watson 5a2bff1c55 Bug 1690396 - Refactor mix-blend-mode impl to work correctly with raster roots. r=nical
This fixes incorrect rendering when either the source or backdrop
tasks establish a raster root.

By design, it also changes mix-blend backdrop readbacks to work in
a way that can handle readbacks from picture cache tiles, which is
a follow up optimization being worked on.

Differential Revision: https://phabricator.services.mozilla.com/D103853
2021-02-04 01:16:41 +00:00
Mats Palmgren 9302cabffc Bug 1690163 - Account for pseudo TableColGroupFrame not being marked as anon wrapper boxes. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D103819
2021-02-04 01:10:29 +00:00
Daisuke Akatsuka 5f8799da1b Bug 1689055: Avoid autofilling during IME composition. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D103614
2021-02-04 00:15:37 +00:00
Paul Bone a767c9b680 Bug 1626682 - Don't restart using exec on Unix r=marionette-reviewers,whimboo,kmag
Differential Revision: https://phabricator.services.mozilla.com/D101702
2021-02-04 00:06:11 +00:00
Florian Quèze a703d937e7 Bug 1675003 - fix intermittent failure in toolkit/components/aboutprocesses tests, 'Delta has the right sign: NaN', r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D103928
2021-02-03 23:29:00 +00:00
Matthew Gregan 3a6e3014e5 Bug 1689516 - Remove AudioNotification{Sender, Receiver}. r=chunmin
Differential Revision: https://phabricator.services.mozilla.com/D103430
2021-02-03 20:37:09 +00:00
Anny Gakhokidze ffa59b72d4 Bug 1690628 - Change test_bug1121701.html to use BroadcastChannel, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D103936
2021-02-03 23:29:28 +00:00
Aki Sasaki 1d8ed6db5d Bug 1690154 - add MOZ_ENABLE_FULL_SYMBOLS to some linux64 builds. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D103848
2021-02-03 23:24:41 +00:00
Dorel Luca 91c6bbd136 Backed out changeset d26c67a77da4 (bug 1682810) for XPCshell failures in toolkit/mozapps/update/tests/unit_service_updater/marAppApplyDirLockedStageFailureSvc_win.js. CLOSED TREE 2021-02-04 03:47:44 +02:00
Erica Wright 640f19158c Bug 1688414 - Bottom box shadow of row selector should be visible on focus. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D103220
2021-02-03 19:36:52 +00:00
Dorel Luca 0cf3f546f6 Backed out changeset ede83170d245 (bug 1688414) for XPCshell failures in toolkit/mozapps/update/tests/unit_service_updater/marAppApplyDirLockedStageFailureSvc_win.js. CLOSED TREE 2021-02-04 03:44:37 +02:00
Dorel Luca a1856858c7 Backed out 3 changesets (bug 1669840) for Reftest failures in layout/reftests/layers/opacity-background-1.html. CLOSED TREE
Backed out changeset 7ceccf133786 (bug 1669840)
Backed out changeset d54787a62ba0 (bug 1669840)
Backed out changeset 396931075ff1 (bug 1669840)
2021-02-04 03:43:58 +02:00
Dana Keeler a298d5ed49 Bug 1689698 - improve performance of DER.jsm r=mbirghan
This patch improves the performance of DER.jsm by changing readBytes to use
slice rather than repeatedly calling readByte.
Additionally, this patch removes the validation that the input to DERDecoder
consists of an array of integers in the range [0, 255]. This check is
unnecessary for all current consumers of DER.jsm because the input comes from
atob, which only outputs values in that range. If other consumers use DER.jsm
in the future, they will have to determine whether or not they need to validate
the input themselves first.

Differential Revision: https://phabricator.services.mozilla.com/D103838
2021-02-03 22:33:00 +00:00
Brad Werth 55c2d22037 Bug 1669840 Part 3: Update test expectations. r=jrmuizel
Depends on D103130

Differential Revision: https://phabricator.services.mozilla.com/D103938
2021-02-03 22:10:55 +00:00
Brad Werth d58c06fce5 Bug 1669840 Part 2: Make nsImageRenderer::BuildWebRenderDisplayItems premultiply alpha with provided opacity. r=miko,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103130
2021-02-03 18:55:58 +00:00
Miko Mynttinen cbb054e4b9 Bug 1669840 - Allow applying opacity to nsDisplayBackgroundImage items r=jrmuizel,mstange
Differential Revision: https://phabricator.services.mozilla.com/D92941
2021-02-03 21:08:09 +00:00
Brad Werth ac6e9cb106 Bug 1674142 Part 2: Upgrade to a release assert in CompositorWidget::CreateLocal. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103943
2021-02-03 22:10:24 +00:00
Oleg Skoromnik cd2514ec74 Bug 1428742 - use Value::toGCCellPtr and delegating ctr of GCCellPtr. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D103589
2021-02-03 20:13:10 +00:00
Michael Kaply 37fcc6f78b Bug 1656544 - Allow most app.update prefs in policy. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D103914
2021-02-03 20:33:30 +00:00
owlishDeveloper db9a32fa63 Bug 1689442 - Add DownloadInitData type to initialize DownloadItems in Web Extensions r=agi,geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D103423
2021-02-03 20:37:37 +00:00
Shane Caraveo afd0877763 Bug 1630415 allow nativeMessaging in optional permissions r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D102998
2021-02-02 19:23:56 +00:00
Kershaw Chang 9fcee5ebcf Bug 1682555 - Add a probe for echConfig sucessful rate r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D103340
2021-02-03 21:43:30 +00:00