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

709836 Коммитов

Автор SHA1 Сообщение Дата
Karl Tomlinson c56de200f3 Bug 1633493 don't EnsureNextIteration() in SourceMediaTrack::End() after forced shutdown r=padenot
Most EnsureNextIteration() callers don't need this check, because they are
either on the graph thread or otherwise know the graph has not shut down.

Differential Revision: https://phabricator.services.mozilla.com/D76795
2020-05-26 18:36:50 +00:00
Matt Woodrow 7b18a9452b Bug 1631405 - Run nsMixedContentBlocker::AsyncOnChannelRedirect checks in the parent for documents, since this is now supported correctly. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75449
2020-05-27 00:31:51 +00:00
Matt Woodrow 5cf1f845a8 Bug 1631405 - Update tests to account for security UI only living in the parent process. r=kmag,ckerschb,webcompat-reviewers,twisniewski
This is mostly changes to handle retrieving the security state asynchronously via the parent process, needing lots of async/await additions.

It also removes the docshell mixed content flag checks (which don't seem to be used in code, only tests), which are mostly still covered by checks of the security UI.

Differential Revision: https://phabricator.services.mozilla.com/D75448
2020-05-27 00:31:25 +00:00
Matt Woodrow e060a86c42 Bug 1631405 - Move nsISecureBrowserUI to be owned by the canonical browsing context instead of docshell. r=nika,ckerschb,Gijs,webcompat-reviewers,twisniewski
This removes all docshell nsISecureBrowserUI and mixed content properties, and moves them into CanonicalBrowsingContext/WindowGlobalParent. It makes the mixed content blocker just compute the state for the current load, and then send the results to the parent process, where we update the security state accordingly.

I think we could in the future remove onSecurityChange entirely, and instead just fire an event to the <browser> element notifying it of changes to the queryable securityUI.

Unfortunately we have a lot of existing code that depends on specific ordering between onSecurityChange and onLocationChange, so I had to hook into the RemoteWebProgress implementation in BrowserParent to mimic the same timings.

Differential Revision: https://phabricator.services.mozilla.com/D75447
2020-05-27 00:28:59 +00:00
Matt Woodrow 2083b054bd Bug 1631405 - Make sure we initialize all fields of WindowGlobalParent in the constructor. r=nika
Previously we only set some fields as part of WindowGlobalInit, but WindowGlobalParent sets itself as the current window global on the CanonicalBrowsingContext.

This exposes a period of time where only part of the document state was set, and this was observable to consumers.

This makes OnNewDocument only run when there is a new Document for the same WindowGlobal.

Differential Revision: https://phabricator.services.mozilla.com/D75446
2020-05-27 00:27:30 +00:00
Chris Fronk 0752132932 Bug 1620369 Convert Cache Deleter to use background thread pool r=necko-reviewers,michal
Differential Revision: https://phabricator.services.mozilla.com/D74577
2020-05-27 00:05:58 +00:00
Chris Fronk 39313c3fb4 Bug 1620366 - Convert BackgroundFileSaver to use background thread pool. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74546
2020-05-27 00:06:16 +00:00
Yura Zenevich 280d4e0f46 Bug 1640767 - remove old backward compatibility code. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D76777
2020-05-26 19:43:57 +00:00
Emilio Cobos Álvarez 9dd644c92d Bug 1640667 - Manually tweak inlining in stateless pseudo selector matching. r=boris
This addresses a minor regression in bloom-matching.html. The common
case here is that there's no selector to the right of the
pseudo-element, so keep that path inline, while keeping all other checks
out of line.

Differential Revision: https://phabricator.services.mozilla.com/D76793
2020-05-27 00:00:52 +00:00
Timothy Nikkel b1a5b829a2 Bug 1640332. Access imgRequest::mIsMultiPartChannel while holding the mutex. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D76580
2020-05-26 02:06:07 +00:00
Timothy Nikkel 821ecf5a31 Bug 1640332. Move fields out of the bitfield that is accessed off main thread. r=aosmond
We don't access them off main thread so just move them out of the bitfield that is protected by the mutex.

Differential Revision: https://phabricator.services.mozilla.com/D76579
2020-05-26 02:06:00 +00:00
Nika Layzell 73f14abd78 Bug 1638910 - Clear JSActorService EventListener references in Unlink, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D76018
2020-05-26 22:19:31 +00:00
Neil Deakin f26bcad85c Bug 1640221, remove content-forms.js frame script from session store tests. Replace with SpecialPowers.spawn, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D76515
2020-05-26 16:11:09 +00:00
Neil Deakin e302160291 Bug 1640221, remove content.js frame script from session store tests. Replace with BrowserTestUtils functions and SpecialPowers.spawn, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D76514
2020-05-26 16:10:36 +00:00
Adam Gashlin e38a47a505 Bug 1633505 - Show refresh button within the uninstaller. r=mhowell
Detect a profile for the installation, if found offer refresh on welcome page:
- Replace text
- Add help link and button

Add a different prompt to close the browser for refresh.

When leaving the welcome page:
- via help link, launch a URL
- via Refresh button, launch Firefox with the necessary args

Add utility functions to launch the link and Firefox.

Remove the UN_CONFIRM_CLICK label and hide the subheading, this was an
addition to the design. Move down UN_CONFIRM_PAGE_TITLE to fill in the space.

Move the check for the install-specific profile to common.nsh from stub.nsi,
wrapped in stack ops to save regs and with _MOZFUNC_UN for uninstaller compat.

Move InitHashAppModelId to just after un.UninstallUnOnInitCommon (which sets
$INSTDIR correctly), so AUMID would be available in un.PreWelcome. I don't
think there's anything else that would change $INSTDIR in the uninstaller
so this should be ok.

Unrelated but adjacent cleanup: Remove inappropriate use of _MOZFUNC_UN
in CopyPostSigningData.

Differential Revision: https://phabricator.services.mozilla.com/D76435
2020-05-26 21:47:58 +00:00
Adam Gashlin f66d880b9e Bug 1634115 - Send telemetry when refresh is requested from uninstaller. r=MattN,mhowell,chutten
Differential Revision: https://phabricator.services.mozilla.com/D76234
2020-05-26 21:47:58 +00:00
Bogdan Tara 289f25408c Backed out changeset 2cb92b52fb42 (bug 1639454) for telemetry related bustages CLOSED TREE 2020-05-27 02:18:35 +03:00
Cameron McCormack 1e8189c0f1 Bug 1640537 - Improve style sheet dumping in the layout debugger. r=TYLin
Make it show the contents of style sheets (as it used to before Stylo)
and make it work in --disable-debug --enable-layout-debugger builds.

Differential Revision: https://phabricator.services.mozilla.com/D76640
2020-05-26 23:07:36 +00:00
Daisuke Akatsuka 36563c2de3 Bug 1639454: Introduce OPENED_COUNT and TIME_ACTIVE_SECONDS telemetry for the compatibility panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76261
2020-05-21 13:28:01 +00:00
Hiroyuki Ikezoe cb41bbc2c4 Bug 1640525 - Avoid looking up AnimatedValue twice. r=boris
We've already tried to looking up the existing AnimatedValue so that when we
want to replace the old one in the hash table we can reuse the existing one.
With this manner, we no longer need to copy TransformData if we don't need to
do.

Differential Revision: https://phabricator.services.mozilla.com/D76633
2020-05-26 21:56:20 +00:00
Cameron McCormack 5df8c99574 Bug 1641076 - Remove RestyleManager::ProcessPostTraversal unused argument. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D76946
2020-05-26 22:52:47 +00:00
Emilio Cobos Álvarez 7e76f582e7 Bug 1640985 - Remove two useless mem::replace calls. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D76884
2020-05-26 21:58:25 +00:00
Hubert Boma Manilla 5d9dc54a29 Bug 1639751 - Headers polish r=Honza,Itiel
Update with polish recommendations
Fixed failing tests

Differential Revision: https://phabricator.services.mozilla.com/D76609
2020-05-26 20:39:54 +00:00
Michael Kaply d627dab065 Bug 1577344 - Add policy for application handlers. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74865
2020-05-26 22:38:58 +00:00
Andrew McCreight e5c54ca6f5 Bug 1640967 - Remove cpows preferences. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D76871
2020-05-26 22:19:41 +00:00
Andrew McCreight 69800c1e15 Bug 1640964 - Remove NS_ERROR_XPC_CANT_PASS_CPOW_TO_NATIVE. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D76870
2020-05-26 22:19:33 +00:00
Nan Jiang 082a6cd662 Bug 1634481 - Add trigger to the reach ping r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D76610
2020-05-26 15:54:39 +00:00
egao a769706988 Bug 1638183 - increase xorg client count to 2048 for ubuntu1804-test docker image r=jmaher
Changes:
  - apply an explicit increase in the number of xorg client count to 2048.
  - remove the custom.conf file as it was not making any difference in the behavior of the docker image.

Differential Revision: https://phabricator.services.mozilla.com/D76897
2020-05-26 19:40:29 +00:00
Bogdan Tara a54ec3073f Backed out 4 changesets (bug 1631405) for multiple mochitest failures CLOSED TREE
Backed out changeset 9963cc0b23cb (bug 1631405)
Backed out changeset 469ac933ed7c (bug 1631405)
Backed out changeset 0c5f55864268 (bug 1631405)
Backed out changeset 20dcbcc2f3b8 (bug 1631405)
2020-05-27 01:30:20 +03:00
Bogdan Tara 6ed3c943f7 Backed out changeset f4ed4d3e0e9e (bug 1634425) for hazard failure on WebGPUParent.cpp CLOSED TREE 2020-05-27 01:12:40 +03:00
Hiroyuki Ikezoe 4331b35ab5 Bug 1640524 - Drop a variant of CompositorAnimationStorage::SetAnimatedValue. r=boris
It's not used at all.

Depends on D76631

Differential Revision: https://phabricator.services.mozilla.com/D76632
2020-05-26 21:33:25 +00:00
Hiroyuki Ikezoe 076ee01bcb Bug 1640524 - Move nsTArray for non animating values. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D76631
2020-05-26 19:05:59 +00:00
Itiel 0ad0979b7d Bug 1640438 - Overhaul the RTL logic in reader mode r=Gijs
Also mirror the line height buttons on the type controls popup if the article is RTL.

Differential Revision: https://phabricator.services.mozilla.com/D76613
2020-05-26 21:29:08 +00:00
Matt Woodrow 7321550a61 Bug 1631405 - Run nsMixedContentBlocker::AsyncOnChannelRedirect checks in the parent for documents, since this is now supported correctly. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75449
2020-05-26 21:19:45 +00:00
Matt Woodrow d692732bdd Bug 1631405 - Update tests to account for security UI only living in the parent process. r=kmag,ckerschb,webcompat-reviewers,twisniewski
This is mostly changes to handle retrieving the security state asynchronously via the parent process, needing lots of async/await additions.

It also removes the docshell mixed content flag checks (which don't seem to be used in code, only tests), which are mostly still covered by checks of the security UI.

Differential Revision: https://phabricator.services.mozilla.com/D75448
2020-05-26 21:19:28 +00:00
Matt Woodrow 240d417eb6 Bug 1631405 - Move nsISecureBrowserUI to be owned by the canonical browsing context instead of docshell. r=nika,ckerschb,Gijs,webcompat-reviewers,twisniewski
This removes all docshell nsISecureBrowserUI and mixed content properties, and moves them into CanonicalBrowsingContext/WindowGlobalParent. It makes the mixed content blocker just compute the state for the current load, and then send the results to the parent process, where we update the security state accordingly.

I think we could in the future remove onSecurityChange entirely, and instead just fire an event to the <browser> element notifying it of changes to the queryable securityUI.

Unfortunately we have a lot of existing code that depends on specific ordering between onSecurityChange and onLocationChange, so I had to hook into the RemoteWebProgress implementation in BrowserParent to mimic the same timings.

Differential Revision: https://phabricator.services.mozilla.com/D75447
2020-05-26 21:17:01 +00:00
Matt Woodrow 5b64e9bae2 Bug 1631405 - Make sure we initialize all fields of WindowGlobalParent in the constructor. r=nika
Previously we only set some fields as part of WindowGlobalInit, but WindowGlobalParent sets itself as the current window global on the CanonicalBrowsingContext.

This exposes a period of time where only part of the document state was set, and this was observable to consumers.

This makes OnNewDocument only run when there is a new Document for the same WindowGlobal.

Differential Revision: https://phabricator.services.mozilla.com/D75446
2020-05-26 21:15:42 +00:00
Dzmitry Malyshau 67c0d914f3 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-26 21:15:40 +00:00
Andrew Osmond 532a41fd80 Bug 1639574 - Disable color management for CSS due to issues with canvas. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76859
2020-05-26 21:20:18 +00:00
Matt Woodrow 38ffa87e05 Bug 1640160 - Serialize mRequestContextId with BrowsingContext's IPCInitializer to ensure that we don't try to create a request context with an id of 0. r=nika
This was a bit of pain to track down, because some code was allowing an ID of 0, and creating a request context to match, but other code was treating 0 as invalid.

Differential Revision: https://phabricator.services.mozilla.com/D76652
2020-05-26 21:14:27 +00:00
Kagami Sascha Rosylight 236de553f6 Bug 1466532 - Part 1: Drop nsIFile::followLinks r=froydnj,necko-reviewers,dragana
This drops `followLinks` as 1) it has been no-op on UNIX for a long time and 2) its Windows implementation never had a proper symlink support.

Differential Revision: https://phabricator.services.mozilla.com/D75569
2020-05-26 20:51:16 +00:00
Gijs Kruitbosch 209a5b2b6a Bug 1640410 - fix stacking of narrate popup and narrated text in reader mode's narrate feature, r=emalysz
The z-index: initial for the keep-open class was redundant (see https://bugzilla.mozilla.org/show_bug.cgi?id=1640410#c4 ).
However, one more change was necessary to fix this bug: the .narrating class
gets z-index: 1 in narrate.css, in order to position the word highlights
below it. But the toolbar-container also gets z-index: 1, and because it
comes before the reader mode content in the DOM, its content will never
appear above the reader mode content unless it gets a higher z-index. So
we give it a z-index of 2.

Differential Revision: https://phabricator.services.mozilla.com/D76851
2020-05-26 18:17:36 +00:00
Ted Campbell 8c9c0238df Bug 1599858 - Remove unused GCThingList::finishInnerFunctions. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D76768
2020-05-26 20:33:59 +00:00
Ted Campbell 0be93b65c2 Bug 1599858 - Defer JSFunction name assignments during delazification. r=mgaudet
The Inferred/Guessed atoms are computed by the BytecodeEmitter running on the
enclosing script. During initial compilation we have the name before we
allocate the JSFunction, but for delazification the inner functions already
have been allocated without a name. Use FunctionBox::finish to apply these
names.

Differential Revision: https://phabricator.services.mozilla.com/D76767
2020-05-26 20:33:52 +00:00
Ted Campbell c08e62fbfa Bug 1599858 - Defer JSFunction allocation until after BCE. r=mgaudet
Absorb CompilationInfo::publishDeferredFunctions into instantiateStencils and
allocate those JSFunctions after BytecodeEmitter completes.

Differential Revision: https://phabricator.services.mozilla.com/D76568
2020-05-26 20:33:50 +00:00
Ted Campbell c112957c42 Bug 1599858 - Defer JSFunction::setTypeForScriptedFunction until after BCE. r=mgaudet
We defer the call until after BytecodeEmitter finishes running but before the
ScriptStencils are instantiated. We use the FunctionBox::wasEmitted flag to
know the function is now referenced by bytecode in the enclosing script and
that it is time to apply the complete ObjectGroup information.

Differential Revision: https://phabricator.services.mozilla.com/D76548
2020-05-26 20:33:48 +00:00
Ted Campbell ac928afdc5 Bug 1599858 - Defer BaseScript allocation until after BCE. r=mgaudet
Replace CompilationInfo::finishFunctions with an instantiateStencils method
and move instantiation of all ScriptStencils into it. Add a ScriptStencil to
the CompilationInfo to hold the result for the top-level script (which may be
a function).

Eliminate the SharedContext::scriptExtent which is only special for
standalone functions and use the top-level stencil mechanism to handle that
instead.

Differential Revision: https://phabricator.services.mozilla.com/D76550
2020-05-26 20:33:40 +00:00
Ted Campbell 696b41c5b3 Bug 1599858 - Cleanup FunctionBox::emitBytecode and friends. r=mgaudet
Remove FunctionBox::exposeScript in favour of checking wasEmitted. AsmJS
functions are wasEmitted but not exposeScript so handle that case too.

Remove FunctionBox::emitLazy since the reparse rollback patch avoids us
seeing an incomplete FunctionBox. The lazy BaseScript allocation will
eventually be merged with other Stencil instantiation.

Note: During delazification, the JSFunctions already exist and as a result
publishDeferredFunctions has no work to do. The emitLazy flag was never set
for delazification.

Differential Revision: https://phabricator.services.mozilla.com/D76766
2020-05-26 20:33:38 +00:00
Ted Campbell 926dd6eaf5 Bug 1599858 - Rewind stencil info when parser reparses source. r=mgaudet
When we reparse, also rewind some deferred object creation records. This
will avoid creating junk data in the Stencil. We limit this to only the
FunctionBox list for now since that is what we traverse over.

Differential Revision: https://phabricator.services.mozilla.com/D76765
2020-05-26 20:33:36 +00:00
Ted Campbell 160979db00 Bug 1599858 - Split CompilationInfo::funcData array. r=mgaudet
Split the array of variants into an array of JSFunction and and array of
ScriptStencil. This will let use hold the Stencil generated by the BCE until
the end. In the future we will be able to remove the JSFunction array.

Differential Revision: https://phabricator.services.mozilla.com/D76549
2020-05-26 20:33:26 +00:00