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

18923 Коммитов

Автор SHA1 Сообщение Дата
Doug Thayer 3e030acee5 Bug 1694229 - Show slow script warning only when critical input is pending r=smaug
We want to restrict the slow script warning to cases where the user is actually
trying to interact with the browser.

Differential Revision: https://phabricator.services.mozilla.com/D106017
2021-02-27 18:22:33 +00:00
Anny Gakhokidze 25ca887fef Bug 1695037 - Enable the consideration of OriginAttributes when selecting processes, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D106657
2021-02-26 22:46:04 +00:00
Timothy Nikkel aef2127a31 Bug 1692997. Make scrollbar button click + hold (repeat mode) go through apz. r=botond
(Almost?) all other scrollbar performed scrolling goes through apz already (this effort was called "desktop_zooming_scrollbars").

This one mode was missed. It uses a repeating timer and setting the curpos attribute to trigger scrolling.

Unfortunately xul trees use this path as well, so we have to keep the old path around for them.

This makes one notable change in behaviour. Both before and after this patch single clicks on scrollbar buttons pass ENABLE_SNAP to the scroll from when they request scrolling (in nsScrollbarButtonFrame::HandleButtonPress). However for repeat scrolling when clicking and holding (which is handled by nsScrollbarFrame::MoveToNewPosition), before this patch the scrolling would not use ENABLE_SNAP. This is not super clear because MoveToNewPosition sets the curpos attributes, and then ScrollFrameHelper::CurPosAttributeChanged( would get called in response to that, and it would call ScrollToWithOrigin to the do scrolling, and it does not specify the snap mode, but the default is DISABLE_SNAP. This patch changes that so that we explicitly pass ENABLE_SNAP in MoveToNewPosition. It seems that this was likely overlooked (not hard to do when it's not clear like this) when adding snapping support. It makes sense to handle snapping the same way for single clicks and clicking and holding. If this turns out to be the wrong idea we can easily change it back.

Needs a test.

Differential Revision: https://phabricator.services.mozilla.com/D105288
2021-02-26 11:47:18 +00:00
Dragana Damjanovic 1668a22b70 Bug 1689550 - Add a pref to disable 0RTT only for HTTP3 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106560
2021-02-26 10:11:00 +00:00
Simon Giesecke be7dc83fa6 Bug 1691913 - Mark nsBaseHashtable (and its subclasses') member functions nodiscard where appropriate. r=xpcom-reviewers,necko-reviewers,dragana,nika
Differential Revision: https://phabricator.services.mozilla.com/D105474
2021-02-26 09:22:53 +00:00
Simon Giesecke 9af107a839 Bug 1691913 - Rename nsBaseHashtable::Put to InsertOrUpdate. r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
This makes the naming more consistent with other functions called
Insert and/or Update. Also, it removes the ambiguity whether
Put expects that an entry already exists or not, in particular because
it differed from nsTHashtable::PutEntry in that regard.

Differential Revision: https://phabricator.services.mozilla.com/D105473
2021-02-26 09:11:46 +00:00
Simon Giesecke 4f75368dcb Bug 1691913 - Rename nsBaseHashtable::GetOrInsert(With) to LookupOrInsert(With). r=xpcom-reviewers,necko-reviewers,jgilbert,dragana,nika
The functions should be called "Lookup" rather than "Get" because they return
a DataType& (rather than UserDataType).

Differential Revision: https://phabricator.services.mozilla.com/D105472
2021-02-26 09:11:45 +00:00
Bogdan Tara d53cfe7369 Backed out 5 changesets (bug 1694229) by flod's request, lint failures CLOSED TREE
Backed out changeset cb3d9e8d32e6 (bug 1694229)
Backed out changeset 877471a44509 (bug 1694229)
Backed out changeset 286b311d32b2 (bug 1694229)
Backed out changeset 42cb688eae03 (bug 1694229)
Backed out changeset d082f53d882e (bug 1694229)
2021-02-25 22:43:33 +02:00
Randell Jesup d66b0f69d8 Bug 1694036: Fix process-start delay and add pref for startup delay r=nika
Differential Revision: https://phabricator.services.mozilla.com/D105878
2021-02-25 20:20:03 +00:00
Doug Thayer 8195515eec Bug 1694229 - Show slow script warning only when critical input is pending r=smaug
We want to restrict the slow script warning to cases where the user is actually
trying to interact with the browser.

Differential Revision: https://phabricator.services.mozilla.com/D106017
2021-02-25 19:59:15 +00:00
alwu 99b1e2fec6 Bug 1691578 - part8 : allow showing platform-decoder-not-found notification. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D104573
2021-02-25 18:07:07 +00:00
alwu 92f99e8af4 Bug 1691578 - part4 : allow to set different error in all platforms, but still report them to corresponding platforms, except in testing. r=bryce
If some attributes are only able to be set in certain platform, that increase the difficulty of wrting a test.

Therefore, we make them being able to set in all platforms, but doing the check in the fianl stage, which is reporting the result, to ensure that those error would still only be displayed on the right platform.

But if we're in testing, then we can test all error types in one platform.

Differential Revision: https://phabricator.services.mozilla.com/D104474
2021-02-25 18:07:05 +00:00
Cosmin Sabou 424d49d43e Backed out 8 changesets (bug 1691578) for bc failures on browser_decoderDoctor.js. CLOSED TREE
Backed out changeset c535dd429ada (bug 1691578)
Backed out changeset 518eadda7826 (bug 1691578)
Backed out changeset c181e29b13f2 (bug 1691578)
Backed out changeset 23f6dcc3ceb5 (bug 1691578)
Backed out changeset bfd3e4878545 (bug 1691578)
Backed out changeset 214ab3a2f00b (bug 1691578)
Backed out changeset 71a17ff3322c (bug 1691578)
Backed out changeset 6aa662e8d06e (bug 1691578)
2021-02-25 21:08:07 +02:00
alwu 18d27fa47e Bug 1691578 - part8 : allow showing platform-decoder-not-found notification. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D104573
2021-02-25 18:07:07 +00:00
alwu 3539c635e3 Bug 1691578 - part4 : allow to set different error in all platforms, but still report them to corresponding platforms, except in testing. r=bryce
If some attributes are only able to be set in certain platform, that increase the difficulty of wrting a test.

Therefore, we make them being able to set in all platforms, but doing the check in the fianl stage, which is reporting the result, to ensure that those error would still only be displayed on the right platform.

But if we're in testing, then we can test all error types in one platform.

Differential Revision: https://phabricator.services.mozilla.com/D104474
2021-02-25 18:07:05 +00:00
Kershaw Chang ef06b68b6c Bug 1688092 - Update ODoHConfigs when the TTL expires r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106075
2021-02-25 13:07:04 +00:00
Valentin Gosu 40eb1379d9 Bug 1694457 - Add pref for reporting confirmation event telemetry r=nhnt11,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106264
2021-02-25 12:52:28 +00:00
Mihai Alexandru Michis d1dca2c0a5 Backed out 2 changesets (bug 1684139) for causing xpcshell failures in test_subprocess.js
CLOSED TREE

Backed out changeset 52cfd9509136 (bug 1684139)
Backed out changeset 23e0fa285d90 (bug 1684139)
2021-02-25 14:47:15 +02:00
Eden Chuang bcc0d952de Bug 1684139 - Adding mozilla specific wpt for timer nesting level in workers r=dom-worker-reviewers,asuth
This patch is developed from D104136#3396152.

This patch creates WorkerTestUtils.webidl under dom/webidl for testing workers with internal APIs. These APIs are exposed to workers only and controlled by dom.workers.testing.enabled pref.

This patch creates a Mozilla-specific web-platform test, testing/web-platform/mozilla/test/workers/worker_timer_nesting_level.html, to test the timer nesting level implementation for workers.

To simplify the test implementation, this patch does not implement the webidl under dom/chrome-webidl/ suggested by D104136#3396152.

Depends on D104136

Differential Revision: https://phabricator.services.mozilla.com/D105332
2021-02-25 10:14:12 +00:00
Eden Chuang c426e61809 Bug 1684139 - Implement timer nesting level for workers r=dom-worker-reviewers,asuth
This patch implements the timer nesting level for workers according to https://html.spec.whatwg.org/#timer-initialisation-steps.

If the timer's nesting level is larger than 5 and the interval time is less than 4, the timer should be clamped to 4.

Differential Revision: https://phabricator.services.mozilla.com/D104136
2021-02-25 10:14:12 +00:00
Brindusan Cristian 6f8f3d0e90 Backed out 5 changesets (bug 1694229) for geckoview failures. CLOSED TREE
Backed out changeset 5ce24c91b0c1 (bug 1694229)
Backed out changeset 7fef19f47442 (bug 1694229)
Backed out changeset a70e27ec7747 (bug 1694229)
Backed out changeset 6a5d472e1b05 (bug 1694229)
Backed out changeset d32085239f92 (bug 1694229)
2021-02-25 09:27:50 +02:00
Doug Thayer 7cada2b622 Bug 1694229 - Show slow script warning only when critical input is pending r=smaug
We want to restrict the slow script warning to cases where the user is actually
trying to interact with the browser.

Differential Revision: https://phabricator.services.mozilla.com/D106017
2021-02-25 04:14:13 +00:00
Matt Woodrow 771a1f4f58 Bug 1694840 - Switch RenderCompositorD3D11SWGL default texture upload mode to use pooled staging textures. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D106358
2021-02-25 02:24:22 +00:00
Matt Woodrow 0203b4f84d Bug 1694248 - Disable OMTP. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D106053
2021-02-25 01:07:07 +00:00
Andrew Osmond 08a4397790 Bug 1688096 - Part 2. Add flag to CompositorOptions to allow SW-WR on a per widget basis. r=mattwoodrow
The pref gfx.webrender.software.unaccelerated-widget.allow may be used
to allow software WebRender to be used with new windows/popups that have
transparency on Windows. Otherwise they would fallback to basic layers.

Similarly, the pref gfx.webrender.software.unaccelerated-widget.force
may be used to force software WebRender for all windows that would
fallback to basic layers.

Differential Revision: https://phabricator.services.mozilla.com/D104855
2021-02-24 19:40:00 +00:00
Valentin Gosu 28196b0f88 Bug 1677719 - Disable the AppCache API on nightly/early beta r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D97302
2021-02-24 15:47:35 +00:00
Butkovits Atila 29688cfa2c Backed out 2 changesets (bug 1684139) for causing failures at test_subprocess.js. CLOSED TREE
Backed out changeset 209b51d63e6e (bug 1684139)
Backed out changeset 3a13a7b09c92 (bug 1684139)
2021-02-24 16:19:08 +02:00
Eden Chuang 00ad03a9c3 Bug 1684139 - Adding mozilla specific wpt for timer nesting level in workers r=dom-worker-reviewers,asuth
This patch is developed from D104136#3396152.

This patch creates WorkerTestUtils.webidl under dom/webidl for testing workers with internal APIs. These APIs are exposed to workers only and controlled by dom.workers.testing.enabled pref.

This patch creates a Mozilla-specific web-platform test, testing/web-platform/mozilla/test/workers/worker_timer_nesting_level.html, to test the timer nesting level implementation for workers.

To simplify the test implementation, this patch does not implement the webidl under dom/chrome-webidl/ suggested by D104136#3396152.

Depends on D104136

Differential Revision: https://phabricator.services.mozilla.com/D105332
2021-02-24 08:14:39 +00:00
Eden Chuang aed62c9971 Bug 1684139 - Implement timer nesting level for workers r=dom-worker-reviewers,asuth
This patch implements the timer nesting level for workers according to https://html.spec.whatwg.org/#timer-initialisation-steps.

If the timer's nesting level is larger than 5 and the interval time is less than 4, the timer should be clamped to 4.

Differential Revision: https://phabricator.services.mozilla.com/D104136
2021-02-24 08:14:39 +00:00
Narcis Beleuzu f0b46e9938 Backed out 2 changesets (bug 1694036) for bc failures on browser_process_crash.js. CLOSED TREE
Backed out changeset cd61de1bc04e (bug 1694036)
Backed out changeset 1a29ecee881e (bug 1694036)
2021-02-24 02:07:41 +02:00
Randell Jesup 36fd177839 Bug 1694036: Fix process-start delay and add pref for startup delay r=nika
Differential Revision: https://phabricator.services.mozilla.com/D105878
2021-02-23 20:41:58 +00:00
Kershaw Chang 59e3afaf3d Bug 1694263 - P2: Record more file types in zero_byte_load telemetry r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D106139
2021-02-23 18:09:55 +00:00
Kershaw Chang 70e69d628e Bug 1694263 - P1: ODA should not be called when the channel is cancelled r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D106138
2021-02-23 18:09:54 +00:00
Emilio Cobos Álvarez 7f2b3314e0 Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 10:49:37 +00:00
Cosmin Sabou 95b67c00f2 Backed out changeset 5b5d84e2fd50 (bug 1694248) for causing wpt reftests failures. CLOSED TREE 2021-02-23 11:18:53 +02:00
Matt Woodrow cc713c6a10 Bug 1694248 - Disable OMTP. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D106053
2021-02-23 05:03:36 +00:00
smolnar a6db3bd673 Backed out changeset dd917f920d7f (bug 1694248) for causing wpt failures. CLOSED TREE 2021-02-23 06:44:16 +02:00
smolnar 7f2e38a6b3 Backed out changeset 960cb2cf2009 (bug 1694059) for causing reftest failures. 2021-02-23 06:41:58 +02:00
smolnar 886a3443d1 Backed out changeset a308dfa27b39 (bug 1694036) for causing mochitest failures in browser_process_crash. CLOSED TREE 2021-02-23 06:38:39 +02:00
alaaemad a5b9a9c206 Bug 1688717 - Enable touchpad pinch gestures on Linux by default r=botond
Differential Revision: https://phabricator.services.mozilla.com/D105632
2021-02-23 03:53:11 +00:00
Emilio Cobos Álvarez c0fec9f98e Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 02:58:47 +00:00
Matt Woodrow f31ce9dd9e Bug 1694248 - Disable OMTP. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D106053
2021-02-23 02:18:24 +00:00
smolnar 79ca2f76fa Backed out changeset 4436a8bb02fd (bug 1694059) for causing reftest failures. CLOSED TREE 2021-02-23 04:17:14 +02:00
Brendan Dahl 3bcbd61097 Bug 1674942 - Enable JS support in the PDF viewer for nightly only. r=calixte
Differential Revision: https://phabricator.services.mozilla.com/D105805
2021-02-23 01:38:01 +00:00
Emilio Cobos Álvarez cb286403d0 Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 01:10:22 +00:00
Randell Jesup ca8338163c Bug 1694036: Fix process-start delay and add pref for startup delay r=nika
Differential Revision: https://phabricator.services.mozilla.com/D105878
2021-02-23 00:55:09 +00:00
Emilio Cobos Álvarez 89b87d3c09 Bug 1694129 - Hide :-moz-submit-invalid behind a pref. r=hiro
No other browser supports anything like this and we don't even have
internal users. Only uses of this I've found on the wild were just
resetting the box shadow internal styling we added in bug 582277 (and
since removed in bug 600151).

Differential Revision: https://phabricator.services.mozilla.com/D105955
2021-02-23 00:46:36 +00:00
Emilio Cobos Álvarez 818b69bbe4 Bug 1694146 - Turn on layout.css.outline-follows-border-radius.enabled on all channels. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105970
2021-02-23 00:20:28 +00:00
Zibi Braniecki fe0003065b Bug 1693955 - Narrow down the zero_byte_load probe to tailor results for YSOD, part 2. r=kershaw
Differential Revision: https://phabricator.services.mozilla.com/D105860
2021-02-22 20:44:54 +00:00
Emilio Cobos Álvarez 15ff419df0 Bug 1694059 - Rename various nnt prefs. r=spohl,mstange
As per feedback in D105931.

Differential Revision: https://phabricator.services.mozilla.com/D105991
2021-02-22 20:05:35 +00:00