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

707719 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond d6ab670bf8 Bug 1638011 - Block WebRender in release for high refresh rate monitors. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75450
2020-05-15 01:35:00 +00:00
alwu 1c6be41aa9 Bug 1509933 - part3 : use the new pref in tests. r=padenot
This patch will do :
- replace the old pref with the new pref

The advantage of doing so :
- to ensure those tests can still use the correct blocking autoplay policy

Differential Revision: https://phabricator.services.mozilla.com/D73973
2020-05-07 13:05:22 +00:00
alwu c2f6d7f374 Bug 1509933 - part2 : migrate the old pref to the new pref. r=mconley
This patch will do :
- set the value of the new pref based on the value of the old pref

The advantage of doing so :
- ensure that the value of the pref can be transformed correctly

Differential Revision: https://phabricator.services.mozilla.com/D73972
2020-05-14 21:12:23 +00:00
alwu 8ed9cb7dbc Bug 1509933 - part1 : add new pref 'media.autoplay.blocking_policy'. r=geckoview-reviewers,snorp,padenot
This patch will do :
- rename the old pref `media.autoplay.enabled.user-gestures-needed` to  the new pref `media.autoplay.blocking_policy`
- modify the value of the pref to `int` in order to introduce new policy
- implement new policy in `AutoplayPoliocy`

The advantage of doing so :
- rename the pref to explicitly indicate that it's related the block policy we use
- use the transient user gesture activation as a new policy to replace the old one using the user input, which doesn't work on the async handler

More details :
The old `click-to-play` policy we use is using the user input to determine if the play invocation is called by users or by scripts. But `UserActivation::IsHandlingUserInput()` is buggy which would fail when you call `video.play()` inside an async event handler. So we would like to replace it with the new transient user activation, which would treat the action as an user input if the action is performed within a certain period of time after a user interacts (eg. click) with the page.

[1] https://html.spec.whatwg.org/multipage/interaction.html#transient-activation

Differential Revision: https://phabricator.services.mozilla.com/D73971
2020-05-15 01:39:31 +00:00
Kartikaya Gupta cae38bcf26 Bug 1622360 - Remove mRenderRoot from WebRenderAPI classes. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74951
2020-05-15 00:04:55 +00:00
Kartikaya Gupta ac4a7f1b4d Bug 1622360 - Remove remaining uses of DisplayListBuilder::GetRenderRoot. r=jrmuizel
Depends on D74949

Differential Revision: https://phabricator.services.mozilla.com/D74950
2020-05-15 00:04:32 +00:00
Kartikaya Gupta 2b2b6e0def Bug 1622360 - Remove render root parameter to CreateOrRecycleWebRenderUserData. r=jrmuizel
Depends on D74948

Differential Revision: https://phabricator.services.mozilla.com/D74949
2020-05-15 00:04:08 +00:00
Kartikaya Gupta bc2d080f61 Bug 1622360 - Drop some other render root parameters in WebRenderBridgeParent. r=jrmuizel
Depends on D74947

Differential Revision: https://phabricator.services.mozilla.com/D74948
2020-05-15 00:04:06 +00:00
Kartikaya Gupta 19ea62d2a1 Bug 1622360 - Remove render root propagation in NotifyDidSceneBuild codepath. r=jrmuizel
Depends on D74946

Differential Revision: https://phabricator.services.mozilla.com/D74947
2020-05-14 23:59:11 +00:00
Kartikaya Gupta c0918f48ca Bug 1622360 - Remove some WRBP code that's pointless with just one renderroot value. r=jrmuizel
Depends on D74945

Differential Revision: https://phabricator.services.mozilla.com/D74946
2020-05-14 23:57:46 +00:00
Kartikaya Gupta 014ca3e8b1 Bug 1622360 - Drop RenderRootStateManager::mRenderRoot. r=jrmuizel
Depends on D74944

Differential Revision: https://phabricator.services.mozilla.com/D74945
2020-05-14 23:56:11 +00:00
Kartikaya Gupta 1d1b3575f2 Bug 1622360 - Drop render root arguments from ImageClient interface. r=jrmuizel
Depends on D74943

Differential Revision: https://phabricator.services.mozilla.com/D74944
2020-05-14 23:55:53 +00:00
Kartikaya Gupta 801a830426 Bug 1622360 - Drop render root arguments from CanvasClient interface. r=jrmuizel
Depends on D74942

Differential Revision: https://phabricator.services.mozilla.com/D74943
2020-05-14 23:54:34 +00:00
Kartikaya Gupta d555a9c0a9 Bug 1622360 - Stop passing around the render root on the UpdateResources codepath. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74942
2020-05-14 23:54:05 +00:00
John Lin 96743256a1 Bug 1630106 - limit the max queue size for prerolling. r=bryce
Without limitation, when playing at fast rate the prerolling state could
prevent playback from starting before the codec exhausts all buffers. Set
a cap value so the state machine can exit prerolling state before queuing
too many buffers.

Differential Revision: https://phabricator.services.mozilla.com/D75174
2020-05-14 22:56:14 +00:00
Daisuke Akatsuka 6bd4831b79 Bug 1637540: Add test for a property defined with prefix. r=rcaliman
Depends on D75256

Differential Revision: https://phabricator.services.mozilla.com/D75257
2020-05-14 18:19:42 +00:00
Daisuke Akatsuka bcb5bd2ded Bug 1637540: Avoid comparing with perfix if the compat data is defined with prefix. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D75256
2020-05-15 00:27:37 +00:00
Mark Hammond 1b47bf54f2 Bug 1635352 (part 2) - Add TPS test for new extension-storage engine. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D74610
2020-05-15 01:30:21 +00:00
Mark Hammond 5de4cd6458 Bug 1635352 (part 1) - Add a new bridged extension-storage engine. r=lina
Differential Revision: https://phabricator.services.mozilla.com/D74609
2020-05-15 01:30:14 +00:00
Mark Hammond 6e4d1af4af Bug 1623245 - A new browser.storage.sync local storage implementation, pref'd off. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D67273
2020-05-15 01:29:56 +00:00
Junior Hsu 170e3d5ad8 Bug 1633942 - P2 pass HttpChannelOnStartRequestArgs through PHttpChannel, r=mayhemer,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D73136
2020-05-14 23:33:46 +00:00
Junior Hsu aaa5387318 Bug 1633942 - P1 introduce HttpChannelOnStartRequestArgs and ipdl changes, r=mayhemer,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D73135
2020-05-14 23:33:15 +00:00
Imanol Fernandez 572d9340f4 Bug 1638114 - Do not keep EGLSurfaceOverride references to destroyed Android Shared Surfaces. r=jgilbert,snorp,rbarker
In WebVR we destroy the mVRScreen after presentation is exited by calling WebGLContext::ClearVRFrame(). We found that when having multiple windows with active WebGL contexts in Firefox Reality, the WebGL context dies a lot, and you have to reload the page to recover from it. The problem is that when the GLScreenBuffer is destroyed the EGLContext still keeps a reference to the destroyed surface, set by gl->SetEGLSurfaceOverride(surface), which can break the future eglMakeCurrent calls.

Differential Revision: https://phabricator.services.mozilla.com/D75413
2020-05-14 22:50:02 +00:00
Matthew Gaudet ea897a6d72 Bug 1638006 - Removed missed piece of optional parser allocation deferral r=caroline
Differential Revision: https://phabricator.services.mozilla.com/D75324
2020-05-14 18:13:51 +00:00
Jason Kratzer 1d45f1d433 Bug 1637707 - Suppress LibEGL_mesa.so required by xvfb. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D75327
2020-05-14 21:37:29 +00:00
Sebastian Streich 479a4cb3a1 Bug 1636148 - Disable Building Principal->GetURI r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D74249
2020-05-14 19:42:59 +00:00
Sebastian Streich 1ec5974790 Bug 1636148 - "BandAid" - Cast Remaining Callers To BasePrincipal r=ckerschb,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D74248
2020-05-14 19:42:57 +00:00
Imanol Fernandez bbbf079a0d Bug 1638123 - Call WebGLContext::ClearVRFrame when ending WebXR session. r=jgilbert,kip,daoshengmu
In WebVR we call WebGLContext::ClearVRFrame when the presentation ends. We didn't have the equivalent call in WebXR. It helps to reduce memory usage earlier when exiting WebXR and reduces potential deadlocks if the ExternalVR client didn't call SurfaceTexture->ReleaseTexImage() correctly.

Differential Revision: https://phabricator.services.mozilla.com/D75417
2020-05-14 23:05:48 +00:00
Bert Peers b26c4286f6 Bug 1623821 - reftests/split/filter.yaml fails when picture caching optimization is disabled r=gw
Differential Revision: https://phabricator.services.mozilla.com/D74351
2020-05-14 23:15:39 +00:00
Edwin Takahashi ffa6cb8cbe Bug 1608837 - add necessary files to taskgraph sparse-profile for web-platform-tests chunking r=ahal
Changes:

  - add web-platform-tests files to the sparse-profile to support test chunking.

Differential Revision: https://phabricator.services.mozilla.com/D70752
2020-05-08 21:28:08 +00:00
Bert Peers c6ad2fc167 Bug 1637120 - Tileview improvements r=gw
1/ add tile_cache to input path if frame00000 can't be found
2/ add visual IDs to each tile
3/ hiding a slice also hides its Invalidation info
4/ code cleanup (+= instead of push_str)

Differential Revision: https://phabricator.services.mozilla.com/D75432
2020-05-14 22:46:25 +00:00
Dorel Luca 10dd3cdcec Backed out changeset 0c94dc7dfbff (bug 1561225) for Reftests failure in transform-animation-on-path.html. CLOSED TREE 2020-05-15 02:13:48 +03:00
Dorel Luca 3fc1366dd1 Backed out changeset b04d0b734c52 (bug 1634508) for Browser-chrome failures in modules/test/browser/browser_UsageTelemetry.js. CLOSED TREE 2020-05-15 02:12:25 +03:00
Hiroyuki Ikezoe 95d1bdc7c7 Bug 1561225 - Add a reftest a transform aniamtion which is runnin on the compositor on a path element. r=boris
This reftest is based on a reduced test case provided by thewingthing.

Differential Revision: https://phabricator.services.mozilla.com/D75258
2020-05-14 20:54:31 +00:00
Aaron Klotz 819b856572 Bug 1638105: Remove obsolete assumeThat statement from ContentDelegateTest; r=geckoview-reviewers,agi
This is no longer necessary now that we've gotten rid of the `aww_crap_handler`
stuff in x86 debug builds.

Differential Revision: https://phabricator.services.mozilla.com/D75400
2020-05-14 20:34:09 +00:00
Hiroyuki Ikezoe 72a269999d Bug 1637808 - Make SampleAnimations a member function of AsyncCompositionManager. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D75225
2020-05-14 19:01:01 +00:00
Dave Townsend e5989d6961 Bug 1634719: Drop the broken extraProps argument to newAppInfo. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D73469
2020-05-14 20:34:28 +00:00
Marco Castelluccio 5747ae4098 Bug 1638103 - Stop trying to hit bugbug after it times out. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D75409
2020-05-14 20:05:48 +00:00
Ricky Stewart cbd2ddf64f Bug 1638036 - Delete reference to PY3 in configure r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D75346
2020-05-14 20:08:40 +00:00
Karl Tomlinson a9ed249e9d Bug 1637837 adjust assert so as not to read mForceShutDown until it is known set r=padenot
mForceShutDown is set on the graph thread and so can be safely read
once the graph has handed control to the main thread.

Differential Revision: https://phabricator.services.mozilla.com/D75239
2020-05-14 18:14:35 +00:00
Ricky Stewart 5af71702d3 Bug 1637709 - Configure purge extension when calling `hg purge` r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D75328
2020-05-14 18:14:11 +00:00
Ricky Stewart 69ecad92c6 Bug 1579329 - Run `mach file-info` with Python 3 r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D75343
2020-05-14 18:20:22 +00:00
Iain Ireland c2c75e91f9 Bug 1637977: Make LazyInstanceImpl threadsafe r=tcampbell
V8's LazyInstance is roughly equivalent to lazy_static! in Rust. It's used here: https://searchfox.org/mozilla-central/source/js/src/new-regexp/special-case.cc#49-54.

The current implementation uses a lazily initialized Maybe<T>, but the initialization can race with offthread parsing. This patch wraps the Maybe in an ExclusiveData.

Differential Revision: https://phabricator.services.mozilla.com/D75410
2020-05-14 20:43:31 +00:00
pbz 225f10d76a Bug 1631362 - Bind prompts to JSWindowActor lifetime instead of closing them on pagehide. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73882
2020-05-14 12:21:49 +00:00
Razvan Caliman c85367f9d5 Bug 1623988 - Extract CSS variables used in a CSS declaration for quick reference r=jdescottes
Inspecting pages with many CSS variables makes DevTools Inspector very slow.
For example, try to inspect an element on [youtube.com](https://www.youtube.com/).

One of the stylesheets loaded by youtube.com contains more than 7800 CSS rules (it's 55K lines long). Some of them specify a very large number of CSS variable delcarations on `:root` which will be inherited by all nodes on the page. This is a perf bottleneck for DevTools.
{F2150398}

Whenever an element is selected, its matching CSS declarations show in the Rules view. If the node inherits CSS variables, for **each declaration**, the Rules view checks if the [variables apply to the current declaration](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/models/element-style.js#403-408,417,424).

This among other expensive operations which are repeated for each declaration. But for CSS variables, it's particularly slow given the frequent [checks with a regular expression](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/utils/utils.js#292-295) to verify if a CSS declaration's value includes any references to a given CSS variable name.

This patch introduces new functionality. When a `TextProperty` (aka CSS declaration model) is created on the client, the names of CSS variables found in its value are extracted ahead of time into a `Set`. Whenever we want to check if the declaration uses a certain CSS variable name, we check against this pre-compiled list instead of verifying the string value every time. For high volume checks, like the ones done by the `ElementStyle`, this approach proves significantly faster.

Profile without this patch: https://bit.ly/2Yd7khD
Profile with this patch: https://bit.ly/3aMhJTZ

There are still many optimizations that can be done, but the `hasCSSVariable()` method is no longer a performance bottleneck.

Differential Revision: https://phabricator.services.mozilla.com/D73062
2020-05-14 18:20:00 +00:00
Karl Tomlinson edd2019f42 Bug 1637159 rename BindToOwnerInternal() to BindToOwner() r=smaug
This method can be and is used by derived classes as well as DOMEventTargetHelper
itself, so it does not need to be "Internal".

Differential Revision: https://phabricator.services.mozilla.com/D75246
2020-05-14 19:51:55 +00:00
Karl Tomlinson 57c91c20a0 Bug 1637159 remove unused unbind code from BindToOwnerInternal() r=smaug
Depends on D75042

Differential Revision: https://phabricator.services.mozilla.com/D75043
2020-05-14 19:51:55 +00:00
Karl Tomlinson 62c2076a1b Bug 1637159 remove now-unused public DOMEventTargetHelper::BindToOwner() rebind methods r=smaug
The virtual is no longer required since
https://hg.mozilla.org/mozilla-central/rev/a01586b62cf5#l1.92

Differential Revision: https://phabricator.services.mozilla.com/D75042
2020-05-14 05:29:49 +00:00
Karl Tomlinson b33bcd4e3b Bug 1637159 use BindToOwnerInternal() from WorkerGlobalScopeBase r=smaug
WorkerGlobalScopeBase has no override for `BindToOwner()`, so there is no need
for the virtual call.

The DOMEventTargetHelper(nsIGlobalObject*) constructor is not suitable here
because the nsIGlobalObject would not have been constructed when the
DOMEventTargetHelper constructor would need it.

Depends on D75037

Differential Revision: https://phabricator.services.mozilla.com/D75039
2020-05-14 05:29:49 +00:00
Dana Keeler b52b92bb4e Bug 1631847 - use effectiveTimestamp and parent fields from CRLite entries to determine most recent full and incremental filters r=jcj
Differential Revision: https://phabricator.services.mozilla.com/D75201
2020-05-14 20:06:47 +00:00