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

722843 Коммитов

Автор SHA1 Сообщение Дата
Botond Ballo 67a3f19e6f Bug 1519285 - Fix UiCompositorControllerParent::NotifyUpdateScreenMetrics(). r=kats
Based on the usage of this in GeckoView, it wants the visual scroll
offset. Now that we populate the visual scroll offset into the
layer tree FrameMetrics as well, this works correctly, but make it
explicit by using GetVisualScrollOffset().

There is still a known correctness issue in the Layers codepath
which this patch documents.

Differential Revision: https://phabricator.services.mozilla.com/D87163
2020-08-18 04:13:26 +00:00
Botond Ballo d0d6c1480e Bug 1519285 - Remove FrameMetrics::mVisualViewportOffset. r=kats
It is now redundant with mScrollOffset which always stores the
visual scroll offset.

Differential Revision: https://phabricator.services.mozilla.com/D87162
2020-08-18 05:12:37 +00:00
Botond Ballo aa190d473c Bug 1519285 - Populate the (main thread's view of the) visual scroll offset in ComputeScrollMetadata(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D87160
2020-08-18 04:13:01 +00:00
Botond Ballo a4ecb96c87 Bug 1519285 - Replace most calls to FrameMetrics::{Get,Set}ScrollOffset() with calls to the more specific visual or layout accessors. r=kats
Likewise for RepaintRequest, and direct usages of mScrollOffset
inside FrameMetrics.

The general idea is:

 * APZ's copy of the FrameMetrics stores the visual scroll offset,
   so calls to GetScrollOffset() on it are replaced with
   GetVisualScrollOffset()

 * The layer tree's copy of the frame metrics (and copies derived
   from that like mLastContentPaintMetrics) currently stores the
   layout scroll offset, so calls to GetScrollOffset() on those
   are replaced with GetLayoutScrollOffset().

The latter changes are particularly important, as they enable us
to modify the layer tree's copy to store (a main thread snapshot
of) the visual offset in mScrollOffset in a future patch.

This patch intends no functional changes. In the cases where we
change GetScrollOffset() to GetLayoutScrollOffset(), mScrollOffset
and mLayoutViewport.TopLeft() should already be storing the same
thing.

The patch identifies a few usages as suspicious but leaves them
functionally unchanged for now.

A few problematic usages of GetScrollOffset() remain, which will
require other fixes to remove.

Differential Revision: https://phabricator.services.mozilla.com/D87159
2020-08-18 05:11:23 +00:00
Botond Ballo 096cdfa219 Bug 1519285 - Remove an assertion in GetCurrentAsyncTransform(). r=kats
In a later patch, the main thread will start populating mScrollOffset
with its snapshot of the visual scroll offset, so to preserve the
meaning of the assertion, we'd have to call GetLayoutScrollOffset(),
making the assertion tautological.

Differential Revision: https://phabricator.services.mozilla.com/D87157
2020-08-18 04:59:14 +00:00
Botond Ballo 6ec4a23dd3 Bug 1519285 - Populate both scroll offsets in CalculateBasicFrameMetrics(). r=kats
Take advantage of them in CalculateRectToZoomTo(), where we also fix
a previously-incorrect usage.

Differential Revision: https://phabricator.services.mozilla.com/D87156
2020-08-18 04:55:46 +00:00
Botond Ballo 2da1b79878 Bug 1519285 - Rename a variable to be more specific. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D87155
2020-08-18 04:11:45 +00:00
Botond Ballo 6740c552aa Bug 1519285 - Keep subframes' mLayoutViewport in sync with the visual viewport. r=kats
This reduces the need for conditional logic, and clarifies the model that
AsyncPanZoomController::mFrameMetrics stores the up-to-date async-scrolled
versions of the visual and layout viewport offsets, while
mLastContentPaintMetrics stores the versions as of the last paint.

Differential Revision: https://phabricator.services.mozilla.com/D87154
2020-08-18 04:11:38 +00:00
Botond Ballo 539d62590c Bug 1519285 - Give FrameMetrics separate getters and setters for the layout and visual scroll offsets. r=kats
Likewise for RepaintRequest (which only has getters).

Differential Revision: https://phabricator.services.mozilla.com/D87153
2020-08-18 04:16:44 +00:00
Adam Vandolder d8e2490fd9 Bug 1659509 - Add tests for Reflect.parse private method support. r=mgaudet
Depends on D87310

Differential Revision: https://phabricator.services.mozilla.com/D87349
2020-08-18 15:31:24 +00:00
Ed Lee 44952e64bb Bug 1639173 - Replace import info icon with Learn More autocomplete entry r=MattN,fluent-reviewers,flod
When adding importable logins, also add new single row autocomplete entry with fluent text and ignore it for telemetry.

Differential Revision: https://phabricator.services.mozilla.com/D84464
2020-08-18 17:48:34 +00:00
Adam Vandolder 0b5f30f383 Bug 1659134 - Implement private static methods. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D87093
2020-08-18 17:45:27 +00:00
Dragana Damjanovic 2cb51f4e64 Bug 1659705 - Update neqo to version 0.4.10 r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D87441
2020-08-18 13:22:00 +00:00
Jon Coppeard f3e44d5aa4 Bug 1659472 - Avoid pre-barrier when marking JS Map/Set keys r=sfink
Ideally this would be reworked to separate out the barrier from HashableValue
but that ended up being more work than expected. This is a small fix to clear
the value and avoid the barrier in this situation.

Differential Revision: https://phabricator.services.mozilla.com/D87293
2020-08-18 17:33:51 +00:00
Olli Pettay 19cafeb0ec Bug 1656207 - Disable BFCache (for now) if session history in parent is enabled, r=peterv
https://searchfox.org/mozilla-central/rev/358cef5d1a87172f23b15e1a705d6f278db4cdad/docshell/base/nsDocShell.cpp#6579
is where the essential check is done

Differential Revision: https://phabricator.services.mozilla.com/D87095
2020-08-18 15:23:30 +00:00
Eugen Sawin 7609049ab6 Bug 1623715 - [8.2] Move media fullscreen event to JS and extend its metadata. r=geckoview-reviewers,snorp,alwu
Differential Revision: https://phabricator.services.mozilla.com/D86350
2020-08-18 17:29:33 +00:00
Eugen Sawin 308a5f3d79 Bug 1623715 - [7.2] Extract media utility functions. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D86349
2020-08-18 17:29:24 +00:00
Eugen Sawin 980edb37d5 Bug 1623715 - [5.1] Add missing media control API for GV implementation. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D86043
2020-08-18 17:29:17 +00:00
Eugen Sawin 9caff81fa1 Bug 1623715 - [4.1] Fix LinkedList::length() for a const context. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84543
2020-08-18 17:29:07 +00:00
Eugen Sawin 48d824c5b0 Bug 1623715 - [3.2] Update changelog. r=geckoview-reviewers,droeh
Differential Revision: https://phabricator.services.mozilla.com/D84405
2020-08-18 17:29:03 +00:00
Eugen Sawin da3c98ab79 Bug 1623715 - [2.4] Add MediaSession API tests. r=geckoview-reviewers,droeh,snorp
Differential Revision: https://phabricator.services.mozilla.com/D84190
2020-08-18 17:28:54 +00:00
Eugen Sawin 35d86f7eeb Bug 1623715 - [1.8] Add MediaSession API for (DOM) media session control delegation. r=snorp,alwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D84189
2020-08-18 17:28:44 +00:00
Ryan Hunt 8356043d37 Bug 1561521 - Clean up wasm::ToString and drop wasm::ToCString. r=lth
wasm::ToCString is losing relevance as we have more constructed types. This
commit removes ToCString and replaces all uses with wasm::ToString.

Differential Revision: https://phabricator.services.mozilla.com/D85071
2020-08-18 16:59:26 +00:00
Ryan Hunt e554e8264b Bug 1561521 - Report error when decoding a value-type and there are no bytes. r=lth
We need to report an error message here or else it will be reported as an OOM.

Differential Revision: https://phabricator.services.mozilla.com/D85070
2020-08-18 16:59:22 +00:00
Ryan Hunt 54b0d27de1 Bug 1561521 - Refine ref.null decoding to decode heaptype instead of reftype. r=lth
ref.null takes a heaptype immediate. This is backwards compatible for
reference-types, but is a breaking change for the GC proposal. This commit
implements decoding for this refinement.

Differential Revision: https://phabricator.services.mozilla.com/D85069
2020-08-18 16:59:06 +00:00
Ryan Hunt 84f9e0c38e Bug 1561521 - Add non-nullable references. r=lth
This commit adds decoding, validation, and JS-API type-checking for
non-nullable references.

Differential Revision: https://phabricator.services.mozilla.com/D85068
2020-08-18 16:58:59 +00:00
Ryan Hunt 85d8a80c08 Bug 1561521 - Add constant for abstracting reference-types values. r=lth
TypeCode::OptRef is currently used to represent any reference-typed value
for UnpackTypeCodeTypeAbstracted and IsReferenceType. I think it's actually
clearer to have this behind a named constant.

Differential Revision: https://phabricator.services.mozilla.com/D85066
2020-08-18 16:58:55 +00:00
Ryan Hunt 0baa5c9770 Bug 1561521 - Generalize table/element code for future reference-types. r=lth
wasm::Table uses wasm::TableKind to determine the element type of the table,
which makes it difficult to extend tables to support more reference types. This
commit drops TableKind in favor of directly storing the element RefType, along
with a flag for whether this table is forAsmJS, which influences the funcref
ABI. RefType is extended to return the existing TableRepr enum, which indicates
the memory representation to use for the table.

wasm::ElemSegment uses wasm::ValType, which is a superset of the allowed
types of an elem segment. This commit switches it to use the proper
RefType class, and tweaks decoding.

Differential Revision: https://phabricator.services.mozilla.com/D85064
2020-08-18 16:58:48 +00:00
Ryan Hunt c656f2f523 Bug 1561521 - Rename TypeCode/ValType/RefType::Any to Extern. r=lth
This commit renames the TypeCode/ValType/RefType occurrences of 'any' to 'extern'
to match what they actually represent. All public API facing occurrences have
already been switched to 'externref' so this should only be aligning the
internal names with their extern usage.

Comments that only apply to 'externref' code paths are renamed as well.

Differential Revision: https://phabricator.services.mozilla.com/D85063
2020-08-18 16:58:32 +00:00
Ryan Hunt ff588ab359 Bug 1561521 - Tests: Change tests that rely on old test messages. r=lth
The following commits will change test messages for a couple tests, and this
commit fixes the breakage.

Differential Revision: https://phabricator.services.mozilla.com/D85062
2020-08-18 16:58:21 +00:00
Ryan Hunt 3b63230f7f Bug 1561521 - Tests: Clean up disabled tests for gc/ref-types. r=lth
This commit finishes the split of wasm/gc and wasm/ref-types tests by splitting
the disabled-ref.js test into a GC test and a ref-type test.

Differential Revision: https://phabricator.services.mozilla.com/D85061
2020-08-18 16:54:16 +00:00
Ryan Hunt 9f548367e7 Bug 1561521 - Tests: Rename ref-types/ tests that actually test externref. r=lth
Follow-up to the previous commit that moved these tests over to wasm/ref-types,
this commit renames the tests from 'anyref' to 'externref'.

Differential Revision: https://phabricator.services.mozilla.com/D85060
2020-08-18 16:53:58 +00:00
Ryan Hunt ab94b258ac Bug 1561521 - Tests: Add wasm/ref-types/ folder, move non-gc specific tests there. r=lth
The tests in wasm/gc are a mix of reftypes/gc tests. This commit adds a
ref-types folder and moves relevant tests over.

Differential Revision: https://phabricator.services.mozilla.com/D85059
2020-08-18 16:53:34 +00:00
Ryan Hunt 1bc94f3ab1 Bug 1561521 - Tests: Rewrite (ref.null $reftype) to (ref.null $heaptype). r=lth
The function-references spec refined ref.null to take a heaptype, which has a
slightly different text format for non-nullable references. This commit updates
tests to the new syntax.

Differential Revision: https://phabricator.services.mozilla.com/D85056
2020-08-18 16:52:42 +00:00
Ryan Hunt d433f6afa3 Bug 1561521 - Tests: Remove tests that assert one-level imports are invalid text. r=lth
Wat now implements the module-linking proposal which includes one-level imports.

This commit removes tests of the text format which asserted these were not-valid.

Differential Revision: https://phabricator.services.mozilla.com/D85055
2020-08-18 16:52:09 +00:00
Ryan Hunt 1539899844 Bug 1561521 - Tests: Rename (ref opt T) to (ref null T). r=lth
The nullable reference syntax has changed from `opt` to `null`.

Differential Revision: https://phabricator.services.mozilla.com/D85054
2020-08-18 16:51:55 +00:00
Ryan Hunt 8264a9f640 Bug 1561521 - Tests: Automatically replace all uses of anyref with externref. r=lth
When we removed subtyping, we kept the anyref text syntax as an alias of
externref. This commit completes the migration over to externref. A future
commit will switch uses of externref which should be anyref back.

Differential Revision: https://phabricator.services.mozilla.com/D85053
2020-08-18 16:51:11 +00:00
Ryan Hunt 7157eeec3a Bug 1561521 - Vendor the latest wat. r=lth
Differential Revision: https://phabricator.services.mozilla.com/D85052
2020-08-18 16:50:27 +00:00
Andrew McCreight 681e8793ff Bug 1641614 - Use mozilla::Queue for ChannelImpl::output_queue_h_. r=froydnj
The goal of this patch is to reduce memory usage. On at least OSX, std::Queue
can use 4kb of memory even with nothing in it. This can be around 52kb of
memory per content process.

The segment size of 64 is fairly arbitrary, but these queues didn't have
more than a few hundred items in them, so it seemed like a reasonable
trade off between space for mostly-empty queues and segment overhead.

Differential Revision: https://phabricator.services.mozilla.com/D87325
2020-08-18 17:03:55 +00:00
Csoregi Natalia fd9ca77e37 Backed out 3 changesets (bug 1656236) for wrench failures on filter-drop-shadow-clip-3.yaml. CLOSED TREE
Backed out changeset 78205b816ac8 (bug 1656236)
Backed out changeset dc4ccb5a8ea9 (bug 1656236)
Backed out changeset dcfa644ba078 (bug 1656236)
2020-08-18 20:22:57 +03:00
Mark Hammond b0ffe6a42b Bug 1659615 - handle the fact Windows Defender might have exclusions on different disks. r=mhentges,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D87382
2020-08-18 11:28:50 +00:00
Akihiko Odaki 7f71e11e00 Bug 1605305 - Origin header field is not set to HTTP request in cases where it is required, r=ckerschb,necko-reviewers,JuniorHsu
Differential Revision: https://phabricator.services.mozilla.com/D80905
2020-08-18 16:32:43 +00:00
Nika Layzell 925fa584ff Bug 1614524 - Part 4: Clean up some GetDocumentBrowsingContext callers, r=mattwoodrow,kamidphish
These callers should likely also function with <object> and <embed> loads, so
switching them to GetLoadingBrowsingContext() should be correct.

Differential Revision: https://phabricator.services.mozilla.com/D86583
2020-08-18 16:49:48 +00:00
Nika Layzell c9967fb452 Bug 1614524 - Part 3: Add a fission.remoteObjectEmbed pref, r=mattwoodrow
With these changes, there are still a number of test failures when remote
object/embed is enabled, due to svg sizing and resource timing tests. In order
to land these changes before those features are fixed, it will be placed behind
a pref.

Differential Revision: https://phabricator.services.mozilla.com/D86582
2020-08-18 16:49:45 +00:00
Nika Layzell d3bf603977 Bug 1614524 - Part 2: Add a test for embed element process selection and navigation, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D86581
2020-08-18 16:49:41 +00:00
Nika Layzell 482d731e3a Bug 1614524 - Part 1: Add support for process-switching object/embed loads, r=mattwoodrow,smaug,kamidphish
By passing a weak reference back to the DocumentChannelParent into
DocumentLoadListener for object loads, we are able to handle process switching
loads by asking the content process to create a BrowsingContext, and delaying
the real process switch until it becomes available.

The load then completes as it would before, acting as a normal process-switching
subframe load.

Differential Revision: https://phabricator.services.mozilla.com/D86580
2020-08-18 16:49:34 +00:00
Dão Gottwald 136951db04 Bug 1643426 - Implement partner_link telemetry. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D86980
2020-08-18 08:33:53 +00:00
Punam Dahiya a4e1780103 Bug 1657976 - Multistage welcome screen should pick FxA endpoint dynamically r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D87016
2020-08-18 05:00:51 +00:00
Ricky Stewart 71dca9f811 Bug 1659746 - Move `MOZ_WINCONSOLE` from `old-configure` to Python `configure` r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D87454
2020-08-18 16:05:26 +00:00
Nicolas Silva 9341dd8a38 Bug 1656236 - Vendor euclid update. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D85545
2020-08-18 16:06:19 +00:00