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

21928 Коммитов

Автор SHA1 Сообщение Дата
Timothy Nikkel 379be147cb Bug 1700064. Disable double tap to zoom inside pdf.js. r=botond
Chrome and Safari either disable this or handle it badly. We don't handle it great so disable it.

Although the document principal looks like it can change I think if that happened at minimum the presshell would be recreated, which creates the ZoomConstraintsClient so we shouldn't need to register to be notified if this changes.

The other option would be to implement support for prevent default of double taps and then have modify pdf.js (if it doesn't already prevent default ctrl wheel events).

Differential Revision: https://phabricator.services.mozilla.com/D109421
2021-03-22 21:45:40 +00:00
Sean Feng 2d171637c1 Bug 1689156 - Don't generate first-contentful-paint if the paint doesn't come from Tick r=smaug
When a contentful paint occurs which doesn't come from Tick, we should
not generate a first-contentful-paint entry for it because
    1) It violates the spec
    2) It usually means some magical paints which we should not expose
    to the web.

So this patches stop generating a contentful paint entry for that,
instead asking the next tick to generate the entry.

Depends on D107858

Differential Revision: https://phabricator.services.mozilla.com/D107859
2021-03-22 20:49:05 +00:00
Florian Quèze 8ad1e5d0aa Bug 1699742 - Remove MOZ_GECKO_PROFILER ifdefs that are no longer needed, r=gerald.
Differential Revision: https://phabricator.services.mozilla.com/D109078
2021-03-22 16:29:52 +00:00
Olli Pettay 4dfc15fe87 Bug 1689677 - Ensure layout/base/tests/test_bug607529.html works with SHIP-BFCache r=nika
Depends on D109215

Differential Revision: https://phabricator.services.mozilla.com/D109216
2021-03-21 19:40:49 +00:00
Daniel Holbert 714c3178d4 Bug 1699810: Use "InProcess" version of GetCrossDocParentFrame() in nsPresContext.cpp. r=tnikkel
This patch doesn't change behavior; it's just switching us between two
functions that do the same thing. (One is literally a trivial wrapper for the
other.)

We're using the new "InProcess" version of this API as a way of annotating
callsites that have been vetted as behaving properly in out-of-process iframes.

This callsite in nsPresContext.cpp is for some invalidation logic that we only
need to perform when the outer and inner document are part of the same display
list (i.e. part of the same process), as discussed in the adjacent
code-comment.  It behaves just fine (doing nothing) if GetCrossDocParentFrame()
fails due to being in an out-of-process iframe.

Differential Revision: https://phabricator.services.mozilla.com/D109145
2021-03-19 22:07:13 +00:00
Timothy Nikkel d88956ef30 Bug 1698785. Don't allow double tap to zoom in print preview documents. r=botond
We shouldn't need mutation change notifications for print/preview changes as the static document bool looks to be set very early to document creation.

Differential Revision: https://phabricator.services.mozilla.com/D108731
2021-03-18 05:34:26 +00:00
Emilio Cobos Álvarez 6c2d77e198 Bug 1698445 - background-position changes should be throttable. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D108611
2021-03-17 23:07:25 +00:00
Simon Giesecke b9621d6376 Bug 1695162 - Use range-based for instead of custom hashtable iterators. r=xpcom-reviewers,kmag
Differential Revision: https://phabricator.services.mozilla.com/D108585
2021-03-17 15:49:46 +00:00
Botond Ballo b8e98ca57e Bug 1698680 - Add nsLayoutUtils::GetCrossDocParentFrameInProcess(). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D108533
2021-03-16 21:52:23 +00:00
Olli Pettay 68cfdbdaf9 Bug 1698044 - add a pref to set paint suppression for oopif r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D108179
2021-03-16 15:52:32 +00:00
Botond Ballo 05e584de93 Bug 1683002 - Do not build an async zoom container in APZ-disabled windows. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D108558
2021-03-16 15:04:21 +00:00
Bas Schouten 2e3c2b0fe4 Bug 1698191: Convert IdleTaskRunner to use the TaskController API directly. r=smaug,sfink
Differential Revision: https://phabricator.services.mozilla.com/D108272
2021-03-16 14:39:45 +00:00
Sean Feng 4150fa8a93 Bug 1669734 - For abspos frames, resolve intrinsic BSize keywords to the actual intrinsic BSize, instead of stretching to fill the available space r=emilio,dholbert
This patch creates a new behavior for absolute positioned frames such
that if they have intrinsic size keywords (-moz-fit-content, min-content,
max-content) for their BSize and the margins are auto, instead of taking
as much space as possible, use the actual intrinsic BSize as the BSize.

Users can still use `auto` keyword to make it to fill the available
space.

This change is to align with the spec text for these intrinsic sizing
keywords at https://drafts.csswg.org/css-sizing/#valdef-width-min-content,
per the changes resolved on in https://github.com/w3c/csswg-drafts/issues/3973

This patch modifies the centering.html WPT, to expand the test
cases to test the centering functionalities for not only explicitly specified
height and width, but also the default size and width, in this case the
intrinsic sizing keywords.

Differential Revision: https://phabricator.services.mozilla.com/D106497
2021-03-15 15:45:18 +00:00
Steven MacLeod c264391ef2 Bug 1646561 - Stop using DocShell::GetVisibility in nsRefreshDriver. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D108239
2021-03-15 03:24:55 +00:00
Steven MacLeod 418bb94608 Bug 1646561 - Stop using DocShell::GetVisibility in PresShell. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D108238
2021-03-15 03:24:55 +00:00
Hiroyuki Ikezoe f048161880 Bug 1697890 - Use IsRootContentDocumentCrossProcess in ScrollbarAreaToExcludeFromCompositionBoundsFor. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D108143
2021-03-13 08:15:38 +00:00
Daniel Holbert 801cf30e07 Bug 1662838 part 2: Remove nsIContentViewer's unused pausePainting() and resumePainting() APIs. r=tnikkel
These APIs are entirely unused (aside from one usage in a test, which part 1 in
this patch series removed), so this patch shouldn't impact behavior at all.

Historical note: we briefly removed these APIs once before, in this commit:
https://hg.mozilla.org/mozilla-central/rev/c216ff19d690
...but we brought them back because we had a motivating use case at the time.
We don't have any such motivating use cases any more, though.  So, this patch
here is essentially a modernized version of that older commit.

Differential Revision: https://phabricator.services.mozilla.com/D108148
2021-03-13 06:11:34 +00:00
Andrew Halberstadt 4ad325da5a Bug 1694833 - Skip some mochitest-plain tests with fission so we can add new tasks, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D108251
2021-03-12 20:43:26 +00:00
Emilio Cobos Álvarez 01ddda75d3 Bug 1697963 - Sync decode for print preview. r=aosmond
Even with the above fixes, this is not enough to fix all the
invalidation issues, because frame update notifications arrive for the
proxies of the inner image, not for the frozen image.

The simpler thing to do here is sync-decoding for print preview like we
do for print documents.

I think imgRequestProxyStatic is the only thing that can suffer from
these issues (because other ImageOps users like image-orientation don't
create a fake proxy).

Depends on D108198

Differential Revision: https://phabricator.services.mozilla.com/D108199
2021-03-12 18:39:06 +00:00
Steve Fink 6e36aed705 Bug 1692308 - Add an initial delay to IdleTaskRunner r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D107504
2021-03-12 06:55:46 +00:00
Timothy Nikkel 7d1fc30871 Bug 1696802. Add code to support double tap to zoom on mac. r=botond,mstange
We already have a pref for double tap to zoom with is already enabled by default so it's kind of awkward to add another pref.

Differential Revision: https://phabricator.services.mozilla.com/D107389
2021-03-12 02:10:36 +00:00
Emilio Cobos Álvarez d0a5079132 Bug 1697886 - PresShell::GetPrimaryContentDocument shouldn't trigger about:blank creation. r=smaug
It's called during painting, so that'd be bad. This trivially happens
with e10s disabled.

Differential Revision: https://phabricator.services.mozilla.com/D108077
2021-03-11 20:56:41 +00:00
Kagami Sascha Rosylight 46f609593d Bug 1697253 - Hide VisualViewport interface behind the existing pref r=edgar
Bug 1357785 accidentally omitted the flag on the interface itself. This patch makes thing consistent to prevent potential confusion in feature detection.

Differential Revision: https://phabricator.services.mozilla.com/D107742
2021-03-11 20:51:51 +00:00
Dorel Luca 0f483545c6 Backed out changeset e780bd8fa66a (bug 1697253) for Mochitest failures in dom/base/test/test_domwindowutils.html. CLOSED TREE 2021-03-11 01:24:46 +02:00
Kagami Sascha Rosylight c7276af0c1 Bug 1697253 - Hide VisualViewport interface behind the existing pref r=edgar
Bug 1357785 accidentally omitted the flag on the interface itself. This patch makes thing consistent to prevent potential confusion in feature detection.

Differential Revision: https://phabricator.services.mozilla.com/D107742
2021-03-10 21:20:30 +00:00
Simon Giesecke ad01a10a3b Bug 1634281 - Use nsTHashMap instead of nsDataHashtable. r=xpcom-reviewers,necko-reviewers,jgilbert,nika,valentin
Note that this patch only transforms the use of the nsDataHashtable type alias
to a directly equivalent use of nsTHashMap. It does not change the specification
of the hash key type to make use of the key class deduction that nsTHashMap
allows for in some cases. That can be done in a separate step, but requires more
attention.

Differential Revision: https://phabricator.services.mozilla.com/D106008
2021-03-10 10:47:47 +00:00
Ting-Yu Lin e1b891089b Bug 1697325 Part 5 - Add GetOverflowAreasRelativeToParent(), and simplify all the call sites. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D107740
2021-03-10 05:59:49 +00:00
Olli Pettay 93c81f5154 Bug 1696527 - Remove unused 'JankLevel' code from nsRefreshDriver, r=bas
Differential Revision: https://phabricator.services.mozilla.com/D107283
2021-03-09 12:37:25 +00:00
Simon Giesecke 5a848bb452 Bug 1634281 - Use nsTHashMap for nsBaseHashtable/nsDataHashtable uses with UniquePtr data type. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D105965
2021-03-09 11:39:36 +00:00
Emilio Cobos Álvarez f43b9d5fe9 Bug 1696717 - Ignore viewport meta in fullscreen. r=botond
This seems to match Chrome, and makes our fullscreen implementation more
consistent between desktop and mobile.

Do you know how to best test this? This repros in RDM, but all
fullscreen tests seem disabled on Android...

Differential Revision: https://phabricator.services.mozilla.com/D107365
2021-03-09 03:28:02 +00:00
Emilio Cobos Álvarez dc86e8c401 Bug 1684001 - Move the code to compute a principal for blocklisting to Document. r=masayuki
Depends on D107455

Differential Revision: https://phabricator.services.mozilla.com/D107456
2021-03-08 23:36:41 +00:00
Emilio Cobos Álvarez 7dac28d4c1 Bug 1684001 - IsURIInPrefList should be infallible. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D107455
2021-03-08 23:36:40 +00:00
Butkovits Atila d795f5b731 Backed out 2 changesets (bug 1684001) for causing failures on test_ext_webRequest_filterResponseData.js. CLOSED TREE
Backed out changeset 2396dd65ee8d (bug 1684001)
Backed out changeset 52c6a21b39fb (bug 1684001)
2021-03-09 03:10:19 +02:00
Emilio Cobos Álvarez 5bc8dcd002 Bug 1684001 - Move the code to compute a principal for blocklisting to Document. r=masayuki
Depends on D107455

Differential Revision: https://phabricator.services.mozilla.com/D107456
2021-03-08 23:36:41 +00:00
Emilio Cobos Álvarez 6aff310271 Bug 1684001 - IsURIInPrefList should be infallible. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D107455
2021-03-08 23:36:40 +00:00
Micah Tigley 1fd9e9b229 Bug 1695403 - Support image-set in the content property. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D107397
2021-03-08 23:27:49 +00:00
Ting-Yu Lin 23ed4bcff6 Bug 1696584 - Remove UnionRectEdges() and replace the callers with the equivalent UnionEdges(). r=emilio
UnionRectEdges() and UnionEdges() are equivalent, and the later has a
modern interface with a shorter name. Let's remove the former.

Differential Revision: https://phabricator.services.mozilla.com/D107315
2021-03-07 23:07:08 +00:00
Emilio Cobos Álvarez c1467459f8 Bug 1696717 - Mark GeckoMVMContext final. r=hiro
Again, just drive-by cleanup.

Depends on D107363

Differential Revision: https://phabricator.services.mozilla.com/D107364
2021-03-07 21:46:00 +00:00
Kagami Sascha Rosylight a2323b59a0 Bug 1691515 - Add MOZ_KNOWN_LIVE member annotation r=andi
Differential Revision: https://phabricator.services.mozilla.com/D107321
2021-03-05 23:23:03 +00:00
Emilio Cobos Álvarez dc59483894 Bug 941356 - Fix start offset of transformed drag images. r=botond
I'm not sure whether we should deal with ancestor scales and such. There
seemed to be a discussion about that in D77436 but dealing with
partially-3d-transformed content sounds like a massive pain. For now
this fixes the start point, which is a progression.

Differential Revision: https://phabricator.services.mozilla.com/D106896
2021-03-04 10:56:22 +00:00
Mats Palmgren 4547bafea1 Bug 1695530 part 1 - Don't create an INCREMENT counter node when the increment is zero because it has no effect. r=emilio
Also, fix Dump() so that it logs the right type for INCREMENT/SET nodes.

Differential Revision: https://phabricator.services.mozilla.com/D107097
2021-03-04 00:37:59 +00:00
Ting-Yu Lin 7e74c47006 Bug 1690701 Part 2 - Check NS_FRAME_OUT_OF_FLOW bit in nsIFrame::IsAbsolutelyPositioned(). r=emilio
I assume nsIFrame::IsAbsolutelyPositioned()'s callers really want to
check whether a frame is a real abspos frame, not just check a frame has
a abspos style. This could potentially change the behavior, but I feel
its the right thing to do.

Differential Revision: https://phabricator.services.mozilla.com/D106580
2021-03-04 00:34:03 +00:00
Simon Giesecke b5855b89fc Bug 1634281 - Remove unused nsDataHashtable.h includes. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D106007
2021-03-03 08:58:52 +00:00
Olli Pettay bba6b348ae Bug 1689601, nested freeze/thaw, r=peterv
Non-SHIP bfcache seems to be rather complicated here, since it needs to explicitly store inner windows and what not.
SHIP should be able to handle this in a simpler way.
It is possible that some ordering needs still tweaking.

Differential Revision: https://phabricator.services.mozilla.com/D105360
2021-03-02 12:13:20 +00:00
Emilio Cobos Álvarez c17b1c2e53 Bug 1695390 - Move extremum lengths to the individual Size / MaxSize types. r=boris
This will prevent growing them when introducing fit-content(<length>).

This can _almost_ be derived, if it wasn't because of the quirky stuff.
I think the macro is probably good enough for now but let me know if you
disagree.

Differential Revision: https://phabricator.services.mozilla.com/D106713
2021-03-02 12:11:35 +00:00
Brindusan Cristian 82efbb80e1 Backed out changeset be6d9849825d (bug 1695390) for wr failures in col-definite-max-size-001.html. CLOSED TREE 2021-03-02 13:41:40 +02:00
Mihai Alexandru Michis 87f481bf9a Backed out 16 changesets (bug 1689601) for causing cpp bustages in nsFrameLoader.
CLOSED TREE

Backed out changeset 6e5523a7210d (bug 1689601)
Backed out changeset 745eaa468c74 (bug 1689601)
Backed out changeset a594bd02b8b6 (bug 1689601)
Backed out changeset 0c5fe977ced6 (bug 1689601)
Backed out changeset 2fca23521891 (bug 1689601)
Backed out changeset 334aeb627855 (bug 1689601)
Backed out changeset 2b2081a15d67 (bug 1689601)
Backed out changeset 307bde43cc96 (bug 1689601)
Backed out changeset 04aadec67ce2 (bug 1689601)
Backed out changeset 701eccb34772 (bug 1689601)
Backed out changeset 278db692aa8b (bug 1689601)
Backed out changeset c261c243a64d (bug 1689601)
Backed out changeset 7e8022e5696a (bug 1689601)
Backed out changeset 6138bfc6c08d (bug 1689601)
Backed out changeset 63295b3a62d0 (bug 1689601)
Backed out changeset 6d02e59ddc51 (bug 1689601)
2021-03-02 13:15:10 +02:00
Emilio Cobos Álvarez b5686164be Bug 1695390 - Move extremum lengths to the individual Size / MaxSize types. r=boris
This will prevent growing them when introducing fit-content(<length>).

This can _almost_ be derived, if it wasn't because of the quirky stuff.
I think the macro is probably good enough for now but let me know if you
disagree.

Differential Revision: https://phabricator.services.mozilla.com/D106713
2021-03-02 10:34:39 +00:00
Olli Pettay 9a08f751a4 Bug 1689601, nested freeze/thaw, r=peterv
Non-SHIP bfcache seems to be rather complicated here, since it needs to explicitly store inner windows and what not.
SHIP should be able to handle this in a simpler way.
It is possible that some ordering needs still tweaking.

Differential Revision: https://phabricator.services.mozilla.com/D105360
2021-03-02 09:44:13 +00:00
Hiroyuki Ikezoe b7d077670b Bug 1678505 - s/VerticalScollDirection/VerticalScrollDirection/. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D103411
2021-03-02 08:06:25 +00:00