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

722833 Коммитов

Автор SHA1 Сообщение Дата
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
Cody Welsh 2184f67eef Bug 1654218 - single grid layout in Fission popup. r=nchevobbe
Wraps the header container and the preferences list in a grid layout
that is meant to be a "single source of truth" for nested grids via
subgrid.

Differential Revision: https://phabricator.services.mozilla.com/D86866
2020-08-19 08:16:35 +00:00
Tim Huang bfb1bc7248 Bug 1656135 - Extend Telemetry probe 'browser.search.data_transferred'. r=chutten,xeonchen,data-review=chutten
Differential Revision: https://phabricator.services.mozilla.com/D87412
2020-08-19 07:52:02 +00:00
Bryce Seager van Dyk 0c45c50c1f Bug 1659726 - Fix mode line docs to use 2 space indents rather than 8. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D87448
2020-08-19 07:51:42 +00:00
shravanrn@gmail.com 4213c84fbe Bug 1658401 - Update rlbox to fix clang 12 break on is_reference_v r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D86681
2020-08-19 07:49:34 +00:00
Tom Prince 08f2a71b7d Bug 1492362: [mozharness] Set reasonable `avds_dir` values; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D86671
2020-08-19 01:05:39 +00:00
Tom Prince 3ffe1948d3 Bug 1492362: [taskgraph] Don't delete fetches after running a task; r=glandium
In Bug 1466660, we started deleting the fetches after a task had run, to avoid
interference between tasks. It turns out the only tasks this was for were the
`source-test-jsshell` tasks, which were changed to use an absolute directory in
Bug 1465181. However, since Bug 1568460 we've always used a per-task directory
for fetches, so can remove the work-around of removing fethes.

Differential Revision: https://phabricator.services.mozilla.com/D86670
2020-08-19 01:05:42 +00:00
Tom Prince a0b7e33bea Bug 1492362: [taskgraph] Stop setting `workdir` on generic-worker tasks; r=glandium
After changing the default checkout path on linux generic-worker tasks to be
relative these settings have no effect.

Differential Revision: https://phabricator.services.mozilla.com/D86669
2020-08-19 01:05:46 +00:00
Tom Prince 4a99315c95 Bug 1492362: [taskgraph] Only use absolute paths for checkouts in docker; r=glandium
We define a value `run.workdir` to point to the defaut directory to use for
all sorts of paths, including checkouts, in the job transform. However, that
directory only makes sense for docker-worker tasks, and relative paths should
be used elsewhere. Adjust the paths on non-docker-worker linux tasks to match
macOS paths.

Differential Revision: https://phabricator.services.mozilla.com/D86668
2020-08-19 01:05:50 +00:00
Narcis Beleuzu 6cc48251bb Backed out changeset 3755692f8d5f (bug 1649987) as per glandium req 2020-08-19 10:32:09 +03:00
Nicolas Silva cc32927985 Bug 1656236 - Vendor euclid update. r=kvark,gw
Differential Revision: https://phabricator.services.mozilla.com/D85545
2020-08-18 22:58:20 +00:00
Nicolas Silva 298e987b8e Bug 1656236 - Update euclid in stylo. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D85762
2020-08-18 17:28:27 +00:00
Nicolas Silva cebafe261f Bug 1656236 - Update to euclid 0.22. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D85549
2020-08-18 22:09:27 +00:00
Masayuki Nakano 37a2794486 Bug 1655388 - part 7: Split off the check whether `<hr>` element should be removed or not from `HTMLEditor::HandleDeleteCollapsedSelectionAtHRElement()` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87035
2020-08-19 06:48:31 +00:00
Masayuki Nakano d84d4847b0 Bug 1655388 - part 6: Get rid of unnecessary arguments of `HTMLEditor::HandleDeleteCollapsedSelectionAtAtomicContent()` and `HTMLEditor::HandleDeleteCollapsedSelectionAtHRElement()` r=m_kato
Depends on D87033

Differential Revision: https://phabricator.services.mozilla.com/D87034
2020-08-19 05:39:36 +00:00
Masayuki Nakano c9bee9126b Bug 1655388 - part 5: Split the special handling for `<hr>` element off from `HTMLEditor::HandleDeleteCollapsedSelectionAtAtomicContent()` r=m_kato
Depends on D87032

Differential Revision: https://phabricator.services.mozilla.com/D87033
2020-08-19 02:15:01 +00:00
Masayuki Nakano 416bf2f5ad Bug 1655388 - part 4: Get rid of `WhiteSpaceVisiblityKeeper::PrepareToDeleteNode()` r=m_kato
Now, the new method is only user of it.  So, we can get rid of it.

Depends on D87031

Differential Revision: https://phabricator.services.mozilla.com/D87032
2020-08-18 23:03:08 +00:00
Masayuki Nakano e844854c69 Bug 1655388 - part 3: Make `HTMLEditor::HandleDeleteSelectionInternal()` use the new method when it removes an invisible `<br>` element r=m_kato
Even though it hasn't normalize white-spaces before invisible `<br>` element,
it needs to do it for making them visible.  Therefore, we should make it
use the new method in this case too.

Depends on D87030

Differential Revision: https://phabricator.services.mozilla.com/D87031
2020-08-18 09:23:16 +00:00