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

765391 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew 9c97d0c7bc Bug 1722300 - patch 4 - Implement internal destinations when generating PDF output through cairo. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D120960
2021-08-04 12:52:38 +00:00
Jonathan Kew aec1a8ca85 Bug 1722300 - patch 3 - Add basic support for internal named destinations when generating PDF output via cairo-quartz-surface. r=jrmuizel
Like the earlier support for the Link tag, this is a minimal version
that just implements the features we actually use.

Differential Revision: https://phabricator.services.mozilla.com/D121240
2021-08-04 12:52:37 +00:00
Jonathan Kew c8767e7306 Bug 1722300 - patch 2 - Pull in cairo MR "pdf links: fix forward references to dest names with 'internal' flag". r=jrmuizel
This is https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/220, required so that
we can use the 'internal' attribute when generating link destinations.

Differential Revision: https://phabricator.services.mozilla.com/D121239
2021-08-04 12:52:37 +00:00
Jonathan Kew c0b0f4fc91 Bug 1722300 - patch 1 - Pull recent PDF fixes/enhancements from upstream cairo (master branch). r=jrmuizel
In particular this includes the changes from cairo MRs

  https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/197 (pdf-object-streams)
  https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/213 (floating-point glyph widths)

The object-stream support gives us significantly more compact PDF output.

Differential Revision: https://phabricator.services.mozilla.com/D121238
2021-08-04 12:52:36 +00:00
Robert Mader 7aea8e97e7 Bug 1720375 - Restructure surface pool into a buffer pool,r=stransky,gfx-reviewers,lsalzman
Note: Sorry in advance that this patch is so big. Unfortunately
splitting it up would create lots of redundant changes.
This should be the last big refactoring for the Wayland compositor
backend for now.

Up until now SurfacePoolWayland was a pool of actual `wl_surface`s,
as before bug 1718569 we had no direct access to `wl_buffer`s when
using EGL. However, the way `SurfacePoolCA` manages native surfaces
is closer to what in Wayland terminology would be a buffer pool:
buffers are heavy-weight and expansive to allocate, while
`wl_surface` objects are cheap to recreate.

So instead of having a pool of surfaces, each of them having its
own pool of buffers, make `wl_surface`s part of tiles and make
`SurfacePoolWayland` manage `wl_buffer`s (in the form of SHM- or
DMABuf buffers). This will allow us to share buffers (especially
depth buffers) more efficiently, reducing VRAM usage and allocation
times.
Apart from that it will also simplify our tile management logic.
Most importantly, we'll need to reorder `wl_surface`s less often and
less complex (no `place_below` the parent surface) and can also drop
reattaching subsurfaces to compositors. Especially the former will
likely decrease CPU time in compositors.

Overall this patch makes `NativeLayerWayland` behave more like
`NativeLayerCA` while taking in lessons learned from
`WindowSurfaceWaylandMB`.

Differential Revision: https://phabricator.services.mozilla.com/D119993
2021-08-04 12:43:21 +00:00
Sebastian Streich 68c14d7f64 Bug 1721146 - Fix Missing ReferrerInfo on Blocked Downloads r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D121608
2021-08-04 12:41:16 +00:00
Nicolas Chevobbe d666a81284 Bug 1719156 - [devtools] Fix iframe dropdown with server side target. r=jdescottes.
We used to set doNotFireFrameUpdates on all the target actors
created from the server, and as a result, we would never populate
the iframe dropdown.
The original concern was that since we can have multiple targets
now (when fission is enabled), different frameUpdate events would
be fired which would cause issues in the iframe dropdown.
But at the moment, we know that the iframe dropdown does not support
Fission (remote frames are not displayed), as the toolbox only listen
for frame-update events emitted from the top-level target.
With this patch, we'll emit frameUpdate event only from top-level targets,
so we don't send unnecessary RDP packet to client.
A test is added that checks multiple scenarios with pages adding and
removing iframes, as well as navigating so we can assert the dropdown
berhaviour with server side targets.
The test is tagged as fail-if on Fission as we're missing remote frames
in the dropdown.

Differential Revision: https://phabricator.services.mozilla.com/D121601
2021-08-04 12:39:37 +00:00
Florian Quèze d92967d5eb Bug 1723813 - Add a profiler marker in nsSocketTransportService::Poll to help understand excessive CPU use on the Socket Thread, r=mstange,necko-reviewers,valentin,gerald.
Differential Revision: https://phabricator.services.mozilla.com/D121656
2021-08-04 12:16:26 +00:00
Valentin Gosu b870386af7 Bug 1713941 - Properly handle duplicated headers in a 304 revalidation r=necko-reviewers,dragana
Going through each of the headers in the 304 response and setting it on the
cached response head will cause us to only keep the last instance when
duplicate header names are present.

We should instead use the GetHeader method which properly handles merging the
response.

Differential Revision: https://phabricator.services.mozilla.com/D121527
2021-08-04 12:07:37 +00:00
Dimi Lee 40d91932fc Bug 1703977 - P4. Remove unused comment in FormAutofillStorage r=agi
_save() is only used by _saveImmediately(), which is test only code.
"Save" action in the android platform occurs in FormAutofillPrompter.promptToSaveCreditCard

Differential Revision: https://phabricator.services.mozilla.com/D121658
2021-08-04 11:50:29 +00:00
Dimi Lee df725dbdd6 Bug 1703977 - P3. Rename FormAutofillPrompter show func to _showCreditCardCaptureDoorhanger r=agi
In order to sync the naming with the password manager.

Differential Revision: https://phabricator.services.mozilla.com/D121635
2021-08-04 11:50:28 +00:00
Dimi Lee d280a2a569 Bug 1703977 - P2. Do not decrypt credit card number in getDuplicateGuild function in the android platform. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D121634
2021-08-04 11:50:28 +00:00
Dimi Lee b2a788a792 Bug 1703977 - P1. Extend Form Autofill credit card saving support for the GeckoView storage r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D121633
2021-08-04 11:50:28 +00:00
Eden Chuang d0d552c951 Bug 1720613 - renew the opaque response blocking related telemetry probes. r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D121146
2021-08-04 11:07:21 +00:00
Alexandru Michis b042913290 Backed out 4 changesets (bug 1703977) for causing geckoview failures in AutocompleteTest#creditCardSelectAndFill
CLOSED TREE

Backed out changeset 25e5608dad37 (bug 1703977)
Backed out changeset e5af3f0446fa (bug 1703977)
Backed out changeset 40915609cbd8 (bug 1703977)
Backed out changeset 17226fa8618a (bug 1703977)
2021-08-04 14:13:28 +03:00
Jari Jalkanen b2adac0d90 Bug 1711657 - Rename Note to Info in Severity enum and QM_TRY macros. r=dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D121618
2021-08-04 09:39:55 +00:00
Nazım Can Altınova b5188bfd15 Bug 1723537 - Mention the MOZ_GECKO_PROFILER for macros/function that are no-op when it's not defined r=gerald
Depends on D121535

Differential Revision: https://phabricator.services.mozilla.com/D121623
2021-08-04 09:37:32 +00:00
Nazım Can Altınova 4088fb0eff Bug 1723537 - Add can_accept_markers profiler API for Rust r=emilio,gerald
This is a prerequisite for adding a marker API. There is the same API for C++
as `profiler_can_accept_markers`. This API can both be used as an external API
before adding an expensive payload to the profile marker, and it can be used as
an internal function to check it inside the new `add_marker` API that will be
introduced soon.

Differential Revision: https://phabricator.services.mozilla.com/D121535
2021-08-04 09:37:32 +00:00
Julian Descottes 1c16859c67 Bug 1682936 - [remote] Re-enable browser.tabs.remote.separatePrivilegedContentProcess for remote protocols r=webdriver-reviewers,whimboo
This preference should no longer be necessary now that Bug 1513045 is fixed

Differential Revision: https://phabricator.services.mozilla.com/D121530
2021-08-04 09:27:17 +00:00
Dimi Lee 3364a9d1f7 Bug 1703977 - P4. Remove unused comment in FormAutofillStorage r=agi
_save() is only used by _saveImmediately(), which is test only code.
"Save" action in the android platform occurs in FormAutofillPrompter.promptToSaveCreditCard

Differential Revision: https://phabricator.services.mozilla.com/D121658
2021-08-04 08:38:44 +00:00
Dimi Lee 3b15b7747d Bug 1703977 - P3. Rename FormAutofillPrompter show func to _showCreditCardCaptureDoorhanger r=agi
In order to sync the naming with the password manager.

Differential Revision: https://phabricator.services.mozilla.com/D121635
2021-08-04 08:38:44 +00:00
Dimi Lee 3b0f9f8899 Bug 1703977 - P2. Do not decrypt credit card number in getDuplicateGuild function in the android platform. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D121634
2021-08-04 08:38:43 +00:00
Dimi Lee 5384b694a0 Bug 1703977 - P1. Extend Form Autofill credit card saving support for the GeckoView storage r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D121633
2021-08-04 08:38:43 +00:00
Alexandru Michis 4f28e79ca9 Merge mozilla-central to autoland a=merge on a CLOSED TREE 2021-08-04 12:41:22 +03:00
Alexandru Michis 4b49a0dc50 Merge autoland to mozilla-central. a=merge 2021-08-04 12:35:44 +03:00
Alexandru Michis 5ca72bfc53 Backed out 7 changesets (bug 1650089) for causing xpcshell failures in test_ext_cookieBehaviors.js
Backed out changeset 336d6eb2fc15 (bug 1650089)
Backed out changeset 283ba29cdbeb (bug 1650089)
Backed out changeset c470e4c65117 (bug 1650089)
Backed out changeset 8fc2f428694d (bug 1650089)
Backed out changeset 37e5185dae14 (bug 1650089)
Backed out changeset a26afdc56d91 (bug 1650089)
Backed out changeset 32e207558b3d (bug 1650089)
2021-08-04 12:32:07 +03:00
Emilio Cobos Álvarez 6c3cce394e Bug 1716028 - Update crossbeam-deque. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D121550
2021-08-04 08:10:19 +00:00
mbrubeck@limpet.net 3c9cf910ab Bug 1723791 - Upgrade to uluru 1.1.1. r=emilio
MANUAL PUSH: Patch wasn't pushed via phabricator.
2021-08-04 10:07:56 +02:00
stransky 2e7b1387b7 Bug 1721326 - Use small stack for DoClone(). r=jld
Patch author is Florian Weimer <fweimer 'at' redhat.com>

Differential Revision: https://phabricator.services.mozilla.com/D120709
2021-08-04 06:24:47 +00:00
Gian-Carlo Pascutto 3dcadce0be Bug 1721326 - Allow dynamic PTHREAD_STACK_MIN. r=glandium
https://phabricator.services.mozilla.com/D120708

Differential Revision: https://phabricator.services.mozilla.com/D120972
2021-08-04 06:24:47 +00:00
Alexandru Michis 402def0103 Backed out 2 changesets (bug 1723198, bug 1723536) for causing xpcshell failures in test_SocketScalars.js and test_ext_cookieBehaviors.js
CLOSED TREE

Backed out changeset 43a0e54578b1 (bug 1723198)
Backed out changeset 15c67fd83308 (bug 1723536)
2021-08-04 09:20:31 +03:00
Christoph Kerschbaumer 9a0f9768c9 Bug 1723682: Update tests within dom/websocket to work with https-first enabled r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D121597
2021-08-04 06:14:22 +00:00
Makoto Kato 074bf8f89d Bug 1721395 - Don't send composing text to Gecko when selection is out of composing range. r=geckoview-reviewers,agi
Actually, Gecko cannot set caret position that is out of composing range. When
having composition, caret (in other word, IME caret) has to be within composing
string.

But Android's text framework can set caret position (selection) that is out of
composing range. Example, Android can have the following. `"ABCD[]"` is current
text and `[]` is selection and AB is composing string. But Gecko cannot.

So if this situation, we have to remove composing state then set selection from
Android's.

Differential Revision: https://phabricator.services.mozilla.com/D121502
2021-08-04 04:52:57 +00:00
Masayuki Nakano 1d519835ab Bug 1722748 - Make `TextServicesDocument::OffsetEntryArray::RemoveInvalidElements()` adjust selection indexes when middle of the selection start and end entry is removed r=m_kato
It handles selection indexes really roughly since it does it only when
start index is same or greater then removing index.  So, only end index
may be greater than the removing index, and if the start index is 0, it
sets `-1` to selection start.

I don't find any other issues around setting selection indexes.  However,
for detecting wrong selection index management, this patch adds
`MOZ_DIAGNOSTIC_ASSERT` to every setter.

Differential Revision: https://phabricator.services.mozilla.com/D121592
2021-08-04 04:40:38 +00:00
Marian-Vasile Laza 237ee94bb0 Backed out 3 changesets (bug 1722396) for causing gv-junit test failures. CLOSED TREE
Backed out changeset 086278457495 (bug 1722396)
Backed out changeset ea0639278659 (bug 1722396)
Backed out changeset 9c723d30ef5f (bug 1722396)
2021-08-04 07:29:15 +03:00
Mike Hommey 7c1a8502ed Bug 1723878 - Fix CI artifact builds after bug 1723623. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D121693
2021-08-04 03:37:14 +00:00
Kris Maglione d11b68db25 Bug 1719319: Make consistency error non-fatal on relase. r=mccr8
I still haven't figured out why this is happening, so since we can make it
non-fatal on release builds, we should, given the crash volume.

I don't want to completely silence the issue in non-release builds, since
something is clearly still wrong.

Differential Revision: https://phabricator.services.mozilla.com/D121686
2021-08-04 00:04:28 +00:00
Marian-Vasile Laza e954091acf Backed out 2 changesets (bug 1720965) for causing bustages on nsContentUtils.cpp. CLOSED TREE
Backed out changeset 2ed56ddce45a (bug 1720965)
Backed out changeset 3531708ab54e (bug 1720965)
2021-08-04 03:14:29 +03:00
Zibi Braniecki 0aaa1c42b8 Bug 1723187 - Update l10nregistry-rs to handle sync-during-async overload, part2. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D121643
2021-08-03 23:44:50 +00:00
Jon Bauman 2e5d433f82 Bug 1723247 - Update mp4parse-rust to 5326af6 r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D121449
2021-08-03 23:23:42 +00:00
Rob Wu f56e6314c0 Bug 1723198 - Don't delete user.js in remotexpcshelltests.py + tests r=jmaher
The new tests in testing/xpcshell/example/ cover the following scenarios:

- Local AND remote xpcshell tests. In contrast, modifications to
  selftest.py in bug 1635227 only covered runxpcshelltests.

- `prefs=` inheritance from ancestor manifests as implemented by
  https://hg.mozilla.org/mozilla-central/rev/ac51a01611dc

- Per-file `prefs` setters (used in bug 1638099).

- Multiple prefs and comments per `prefs` line.

Differential Revision: https://phabricator.services.mozilla.com/D121632
2021-08-03 22:58:34 +00:00
Rob Wu 5e275415fc Bug 1723536 - Clear generated user.js before start of xpcshell test r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D121631
2021-08-03 22:58:34 +00:00
Geoff Lankow 85f7bc44f0 Bug 1723628 - Stop loading AttributionCode.jsm outside of Firefox. r=chutten
This code ultimately loads resource:///modules/AttributionCode.jsm which only exists in Firefox. It's now causing test crashes in Thunderbird due to bug 1721627, or it was, but I've temporarily hacked them into working.

Differential Revision: https://phabricator.services.mozilla.com/D121588
2021-08-03 22:50:16 +00:00
Adam Gashlin 7fa6c2befd Bug 1722086 - Part 2: Centralize check for minimum Windows build. r=bytesized
This allows the check from bug 1719189 to be used by the WDBA without
duplication, and keeps it close to the rest of the UserChoice logic.

Differential Revision: https://phabricator.services.mozilla.com/D121559
2021-08-03 22:49:20 +00:00
Adam Gashlin e151e3d85c Bug 1722086 - Part 1: Set default browser from WDBA with UserChoice. r=bytesized
Differential Revision: https://phabricator.services.mozilla.com/D121558
2021-08-03 22:49:20 +00:00
Bernard Igiri 1742c40305 Bug 1721658 - Replace icon on certificate error page with plain warning triangle r=Gijs
Replaced the old certificate error page icon with the warning triangle. Set the color to monochrome for high contrast. Adjusted the shrinking behavior to move the icon to the top center when the viewport becomes smaller. Removed the old unused certificate error page icon.

Differential Revision: https://phabricator.services.mozilla.com/D121387
2021-08-03 22:17:05 +00:00
Ted Campbell c95409a11a Bug 1723601 - Fix OOM during self-hosting delazification. r=arai
The `CompilationStencil::delazifySelfHostedFunction` code erroneously delazified
the outer script before its full set of inner functions. This can result in a
nullptr deref under some conditions. Instead, instantaiate inner functions first
which is also consistent with the normal Stencil instantiation flow.

Differential Revision: https://phabricator.services.mozilla.com/D121637
2021-08-03 21:50:33 +00:00
alwu 57261b2aa0 Bug 1719183 - part3 : let running audio context to keep tab awake. r=padenot,nika
Let running AudioContext also prevents tab from being suspended by asking/revoking the page awake via the browsing context.

Differential Revision: https://phabricator.services.mozilla.com/D119839
2021-08-03 21:32:27 +00:00
alwu 683790582e Bug 1719183 - part2 : expose the suspended state of window to chrome window for testing. r=nika
Before we use AudioContext's state as a hack to know the suspend status of window, but now we will prevent AudioContext from being suspended in the following patch.

So we need to add a chrome-only attribute to expose that to the test.

Differential Revision: https://phabricator.services.mozilla.com/D119838
2021-08-03 21:32:26 +00:00
alwu 1c18fb5f4d Bug 1719183 - part1 : use a count to generalize the usage of preventing page from being suspended. r=nika
To support more cases, change this value to more general name and use a count instead, if the count is larger than zero, then we would not suspend the page.

In addition, this value now can be set in any processes (but still for the top level only), which is different from before where we would only set the value from the chrome process.

Differential Revision: https://phabricator.services.mozilla.com/D119837
2021-08-03 21:32:26 +00:00