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

722950 Коммитов

Автор SHA1 Сообщение Дата
Tom Tung e116198cc4 Bug 1609625 - Deal with recorded time duration if it across sleep/wake; r=dom-workers-and-storage-reviewers,sg,janv
Depends on D83305

Differential Revision: https://phabricator.services.mozilla.com/D83524
2020-08-18 07:31:24 +00:00
Tom Tung 93f8af72df Bug 1609625 - Remove the probe for tracking time duration on initializing repositories and add a probe for tracking time duration on loading quota; r=dom-workers-and-storage-reviewers,sg,janv
Depends on D83304

Differential Revision: https://phabricator.services.mozilla.com/D83305
2020-08-18 07:53:15 +00:00
Jan Varga 246bfa7db7 Bug 1659962 - Add additional MOZ_ARG_* macros; r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D87579
2020-08-19 14:31:40 +00:00
Jan Varga 8773058b99 Bug 1659909 - ToResultInvoke should also work with RefPtr/nsCOMPtr on win32; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D87556
2020-08-19 14:34:06 +00:00
Mark Striemer d7e93fa211 Bug 1659463 - Include spin button for print zoom setting r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D87344
2020-08-19 14:18:42 +00:00
Jamie Nicol 456abf2772 Bug 1647797 - Add geckoview-junit tests for onPaintStatusReset. r=agi,geckoview-reviewers
Add test paintStatusReset() to ContentDelegateTest, which asserts that
onPaintStatusReset() is called after GeckoSession.setActive(false).

Add test capturePixelsSessionDeactivatedActivated() to ScreenshotTest, which
asserts that capturePixels() is successful if called when the session is
deactivated then reactivated, after waiting for the onPaintStatusReset() and
onFirstContentfulPaint() callbacks.

Differential Revision: https://phabricator.services.mozilla.com/D87463
2020-08-19 15:25:26 +00:00
longsonr e3b924526e Bug 1659783 - Fix use pointing to image elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D87571
2020-08-19 15:25:39 +00:00
Julian Descottes b34da59978 Bug 1642295 - Stop and start resource listening when switching targets r=ochameau
Depends on D86964

Differential Revision: https://phabricator.services.mozilla.com/D86965
2020-08-19 15:27:22 +00:00
Julian Descottes 8aecb1e6df Bug 1642295 - Enable server side resource watching by default r=ochameau
Depends on D86963

Just for reference for now, since this is incompatible with target switching.

Differential Revision: https://phabricator.services.mozilla.com/D86964
2020-08-19 14:08:40 +00:00
Julian Descottes 09373e81c9 Bug 1642295 - Do not check property order in WebConsole stub tests r=nchevobbe
Depends on D86962

Differential Revision: https://phabricator.services.mozilla.com/D86963
2020-08-19 14:08:39 +00:00
Julian Descottes e9bb161639 Bug 1642295 - Fold clearCachedMessage from ConsoleServiceListener into WebConsoleActor r=nchevobbe
Depends on D86961

Differential Revision: https://phabricator.services.mozilla.com/D86962
2020-08-19 14:08:37 +00:00
Julian Descottes 3507a935c3 Bug 1642295 - Fix shouldHandleMessage signature in platform-message DevTools resource r=nchevobbe
Depends on D86960

Differential Revision: https://phabricator.services.mozilla.com/D86961
2020-08-19 14:08:36 +00:00
Julian Descottes 2703786741 Bug 1642295 - Add missing Cu import in devtools/server/actors/object/utils.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86960
2020-08-19 14:08:36 +00:00
Jamie Nicol 54ed855193 Bug 1647797 - Add GeckoView API to listen for when contentful paint status has been reset. r=geckoview-reviewers,agi,esawin
Android-components listens to the GeckoView callback onFirstContentfulPaint to
track whether a contentful paint has occured, in order to decide when to
thumbnail a tab. Currently this gets fired once per tab.

However, when the GeckoSession is paused, we clear cached resources in the
compositor. This means that when the session is resumed, the compositor does not
have the necessary information to render the page (such as painted content
buffers, or the webrender display list). Because android-components attempts to
capture a new thumbnail immediately upon resuming, it ends up capturing a blank
thumbnail.

To fix this, add a new callback onPaintStatusReset() which is invoked when the
cached resources are cleared. Android-components can listen for this to be
informed when the contentful paint is no longer visible. It can then wait until
the subsequent contentful paint occurs before capturing the thumbnail.

Differential Revision: https://phabricator.services.mozilla.com/D87341
2020-08-19 15:24:14 +00:00
Dão Gottwald f5c045a279 Bug 1659745 - Fix history shortcut icon color. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D87568
2020-08-19 14:53:49 +00:00
Ricky Stewart d7122f80af Bug 1659836 - Don't log to telemetry for `mach create-mach-environment` r=mhentges,froydnj
`mach create-mach-environment` is what installs `glean_sdk` to the `mach` `virtualenv`. `create-mach-environment` runs on the system Python and we can't assume the system Python has `glean_sdk` installed.

Differential Revision: https://phabricator.services.mozilla.com/D87507
2020-08-19 14:03:46 +00:00
Simon Giesecke 0541f523d9 Bug 1659679 - Unify overflow handling in Base64.cpp encoding functions. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87461
2020-08-19 10:52:25 +00:00
Simon Giesecke 9352526320 Bug 1659674 - Change BulkWrite to return mozilla::Result. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87419
2020-08-19 14:39:03 +00:00
Simon Giesecke 55a58f0a61 Bug 847347 - Ensure that FileReader::GetAsDataURL does not trigger a release-mode assertion failure on large files. r=jstutte,froydnj
We avoid going through Substring which imposes a limit on the string length of
INT32_MAX and failing a MOZ_RELEASE_ASSERT otherwise.

This adds a new `Base64EncodeAppend` function that takes 8-bit char input and
produces 16-bit char output, and appends to an existing string, which is what
we need here to avoid doing a large copy. Base64EncodeHelper is generalized
to accomodate for that.

So in addition to fixing the defect, this also optimizes performance and
memory usage.

Differential Revision: https://phabricator.services.mozilla.com/D87413
2020-08-19 08:11:42 +00:00
Narcis Beleuzu d556294b23 Backed out changeset 07e51bfc3436 (bug 1633710) for xpcshell failure on test_permissions.js CLOSED TREE 2020-08-19 18:00:21 +03:00
pbz ba9d385d5f Bug 1659841 - Fixed title visibility test for commonDialog prompts on osx. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87575
2020-08-19 14:28:44 +00:00
Rob Wu e668856070 Bug 1655190 - Always include third-party cookies in downloads r=Gijs,baku
The internal Download API and the downloads API for extensions trigger
download requests on behalf of users. These should be considered
first-party requests, and therefore not be restricted by sameSite cookie
restrictions or tracking protection.

This patch has two components:

- Ensure that triggeringPrincipal is always the system principal, to
  make sure that `BasePrincipal::IsThirdPartyChannel` returns false
  when called by `CookieCommons::IsSameSiteForeign`.

  The extension API implementation was the only consumer of the
  Download API where triggeringPrincipal wasn't the system principal
  (because loadingPrincipal is a moz-extension:-URI since bug 1579911).

- Set `channel.forceAllowThirdPartyCookie` to true, so that cookies are
  always included in download requests even if the preference
  `network.cookie.cookieBehavior` is 1 (aka BEHAVIOR_REJECT_FOREIGN).

Differential Revision: https://phabricator.services.mozilla.com/D87359
2020-08-19 11:07:37 +00:00
Narcis Beleuzu 0e759593c7 Backed out changeset 1b7eb33c8ec9 (bug 1656296) for bc failure on browser_test_mixed_content_download.js . CLOSED TREE 2020-08-19 16:39:33 +03:00
Sebastian Streich 4343b0f4b5 Bug 1633710 - Replace principal.uri.prepath with principal.prepath r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D82916
2020-08-19 12:58:46 +00:00
Simon Giesecke 6b1b0ed613 Bug 1659950 - Move instead of copy where possible in nsMultiplexInputStream::SerializeInternal. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87574
2020-08-19 12:46:26 +00:00
Nicolas Chevobbe 2378891a30 Bug 1659643 - Refactor browser_dbg-chrome-debugging.js. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D87408
2020-08-19 12:46:52 +00:00
Neil Deakin 3523a27055 Bug 1659219, send password filled notification to child iframe instead of top window, and enable tests in cross origin mode that failed due to this, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D87150
2020-08-19 13:05:27 +00:00
Sebastian Streich a797186639 Bug 1656296 - Pass Blocked Downloads to the DownloadsUI r=ckerschb,Gijs
***

***
Added Better Testing

Differential Revision: https://phabricator.services.mozilla.com/D85439
2020-08-19 12:45:55 +00:00
Bryce Seager van Dyk ef9adbbe49 Bug 1659521 - Add file that exposes CDM symbols and undefs clashing X11 macros. r=alwu
When using the CDM headers in ipc codegen we run into issues where X11 defines
a `Status` macro that tramples the CDM headers. Since we can't undef `Status` in
ipdl we can instead add a header that ipdl can include which does the undef.

Differential Revision: https://phabricator.services.mozilla.com/D87324
2020-08-18 14:37:42 +00:00
sotaro cb65c01565 Bug 1659233 - Remove AsyncImagePipelineManager::mPendingUpdates r=nical
It is not necessary with current gecko.

Differential Revision: https://phabricator.services.mozilla.com/D87158
2020-08-19 09:32:02 +00:00
alwu 9835a91852 Bug 1646554 - use browsing context to validate the sender. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D86879
2020-08-19 10:31:54 +00:00
alexandru.ionescu 4d73ee3280 Bug 1654206 yahoo-news is timing out intermittently while rerecording on mitm5 r=perftest-reviewers,igoldan
Differential Revision: https://phabricator.services.mozilla.com/D86679
2020-08-19 10:07:36 +00:00
André Bargull 3a981e3671 Bug 1659140 - Part 4: Use VM calls for non-Latin1 characters in LoadStringCharResult. r=jandem
Restricting LoadStringCharResult to Latin-1 characters means Warp won't be
able to optimise accesses when Two-Byte characters are present. Instead slow
generic VM calls were used for string accesses.

Differential Revision: https://phabricator.services.mozilla.com/D87101
2020-08-19 10:06:33 +00:00
André Bargull 413020db0e Bug 1659140 - Part 3: Change LoadStringCharResult to an unshared CacheIR op. r=jandem
Part 4 will add compiler specific changes to these methods.

Differential Revision: https://phabricator.services.mozilla.com/D87100
2020-08-19 09:10:58 +00:00
André Bargull ee7df3a451 Bug 1659140 - Part 2: Optimise string comparisons in Warp. r=jandem
Implement `MCompare::tryFoldCharCompare` to port the improvements from
bug 813836 and bug 1538690. This wasn't previously handled through `foldsTo`,
because relational comparison support for strings (bug 1538692) wasn't present
at that point of time.

Differential Revision: https://phabricator.services.mozilla.com/D87099
2020-08-19 09:06:02 +00:00
André Bargull cfc15cd8f5 Bug 1659140 - Part 1: Implement constant charCodeAt optimisation through MCharCodeAt::foldsTo. r=jandem
This optimisation was added in bug 1041781 and still seems useful to have.

Differential Revision: https://phabricator.services.mozilla.com/D87098
2020-08-19 09:05:54 +00:00
Emilio Cobos Álvarez 7c7897149c Bug 1414600 - Make media queries and viewport units in print be evaluated against the default page size minus margins. r=dholbert,nordzilla
For that, move the default page margin computation to nsPresContext.

See https://github.com/w3c/csswg-drafts/issues/5437 as to why doing this
and other alternatives.

Differential Revision: https://phabricator.services.mozilla.com/D87311
2020-08-19 10:32:16 +00:00
Christian Holler 478cfb5589 Bug 1659452 - Temporarily disable stripping for JS shell binaries. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D87283
2020-08-19 10:16:33 +00:00
Narcis Beleuzu 9b1cd3b0bd Backed out 4 changesets (bug 1492362) for android wpt failures. CLOSED TREE
Backed out changeset ac0fdd0c661e (bug 1492362)
Backed out changeset 89ecd6ee8edd (bug 1492362)
Backed out changeset ae17b683bf71 (bug 1492362)
Backed out changeset 485f333bc3b7 (bug 1492362)
2020-08-19 13:54:36 +03:00
Florian Quèze 918620c7cc Bug 1659771 - Remove obsolete nsIProfiler.AddMarker API, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D87470
2020-08-18 22:52:55 +00:00
André Bargull 53e90efa15 Bug 1657117: Call `ToObject(options)` before validating the language tag parameter in Intl.Locale. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D85864
2020-08-19 08:55:47 +00:00
Emilio Cobos Álvarez f04cda9679 Bug 1602410 - Make window.print() work with tab-modal printing. r=nika,geckoview-reviewers,agi
Do this by spinning the event loop until we've done the clone for
preview as appropriate.

This should be much less risky than finishing the previous patches
which would still be nice, but realistically landing them for 81 is not
going to happen.

This just returns without doing nothing in a couple cases, like when
there's already another modal dialog or such. That seems acceptable to
me, it's not clear what better way to do would be.

Differential Revision: https://phabricator.services.mozilla.com/D87484
2020-08-19 09:27:18 +00:00
Tom Schuster 2631f16bb2 Bug 1659133 - Improve GuardShape folding in Ion. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D87089
2020-08-18 21:33:15 +00:00
Jon Coppeard 9fc3fa7cb4 Bug 1659477 - Replace sweepMarkTaskStarted field by using sweepMarkTask state r=sfink
Depends on D87293

Differential Revision: https://phabricator.services.mozilla.com/D87294
2020-08-18 16:12:55 +00:00
Narcis Beleuzu 10172bd904 Backed out changeset 14c0513e6bdd (bug 1659452) as requested by decoder. CLOSED TREE 2020-08-19 11:59:11 +03:00
Sebastian Hengst 963ffca00f Bug 1620520 - set some webaudio wpt tests to fail on Linux 32-bit. r=karlt DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D87567
2020-08-19 08:41:14 +00:00
Christian Holler 1010cf4117 Bug 1659452 - Restore basic function names in GDB. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87283
2020-08-19 08:31:51 +00:00
Karl Tomlinson 856bfb0426 Bug 1659201 create AudioParamMap on demand for AudioWorkletNode#parameters r=pehrsons
When constructing a JS object derived from AudioWorkletNode, the reflector
should be created using the prototype for the derived class.
https://searchfox.org/mozilla-central/rev/2f9eacd9d3d995c937b4251a5557d95d494c9be1/dom/bindings/BindingUtils.h#3078-3081
The reflector is typically created with the correct prototype after
AudioWorkletNode::Constructor() returns.

AudioParamMap_Binding::MaplikeHelpers::Set() calls GetOrCreateDOMReflector()
to get the JS reflector for the AudioParamMap, which obtains the associated
global from the reflector on the AudioWorkletNode parent.
https://searchfox.org/mozilla-central/rev/a315a1a0f09550e23e4590a77e74f36543315da3/dom/bindings/BindingUtils.h#1591-1599
While this was done during the AudioWorkletNode::Constructor(), the
AudioWorkletNode reflector did not yet exist and so was created on-demand
without an explicit prototype, which resulted in the base class prototype
being used incorrectly.
https://searchfox.org/mozilla-central/rev/a315a1a0f09550e23e4590a77e74f36543315da3/dom/bindings/BindingUtils.h#1550

Delaying set-up of the AudioParamMap provides that the AudioWorkletNode
construction is complete and has a correct reflector before AudioParamMap
usage attempts to get the parent reflector.

Differential Revision: https://phabricator.services.mozilla.com/D87554
2020-08-19 08:27:01 +00:00
Karl Tomlinson cf2e7cf2f1 Bug 1659201 move CreateAudioParam() outparam to return value r=pehrsons
AudioWorkletNode will soon not need the return value.

Differential Revision: https://phabricator.services.mozilla.com/D87553
2020-08-19 08:20:36 +00:00
Karl Tomlinson 2043b8623a Bug 1659201 store AudioParam names as nsString r=pehrsons
so as to clarify pointer safety and to take advantage of nsString shared
buffer optimizations.

Differential Revision: https://phabricator.services.mozilla.com/D87552
2020-08-19 08:16:39 +00:00