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

742482 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu 49617f2e5c Bug 1687618 - Remove browser_networkIsolation.js r=baku
This test checked the implementation of cache_isolation by checking the
values of the hashing keys. This has been removed in favour of
privacy.partition.network_state (Bug 1590107)

Depends on D102715

Differential Revision: https://phabricator.services.mozilla.com/D103030
2021-01-27 09:02:52 +00:00
Valentin Gosu 2d8c4e4c26 Bug 1687618 - Remove implementation of IsIsolated and TopWindowOrigin r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102715
2021-01-26 10:32:43 +00:00
Valentin Gosu 53b6dbb8ec Bug 1687618 - Remove isolated and topWindowOrigin from altServices r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102714
2021-01-26 11:08:46 +00:00
Valentin Gosu 77df497a8e Bug 1687618 - Remove topWindowOrigin from nsHttpConnectionInfo r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102713
2021-01-26 10:57:40 +00:00
Valentin Gosu e1ed055c88 Bug 1687618 - Remove isolated bit from nsHttpConnectionInfo r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102712
2021-01-26 10:32:14 +00:00
Valentin Gosu d2046a6e97 Bug 1687618 - Remove browser.cache.cache_isolation r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102711
2021-01-26 10:32:07 +00:00
Jamie Nicol 62eb49693e Bug 1688921 - Support GPU cache resize when EXT_color_buffer_float is not supported. r=kvark
Currently when the GPU cache is resized we allocate a new texture and
then copy the contents of the old texture to the new texture. This
copy requires either EXT_copy_image (for glCopyImageSubData) or
EXT_color_buffer_float (to bind the RGBAF32 texture to a framebuffer).

On devices where neither extension is supported, don't attempt to copy
the old texture. Instead mark the entire CPU-side copy of the cache as
dirty, meaning we will subsequently upload the entire contents to the
new texture. (A complete CPU-side copy is only mainted for the
PixelBuffer gpu cache bus type, not for Scatter ones. However, as the
Scatter type also requires EXT_color_buffer_float, we will only be in
this situation for PixelBuffer buses.)

Differential Revision: https://phabricator.services.mozilla.com/D103071
2021-01-27 08:47:11 +00:00
Emilio Cobos Álvarez fd5fcc2c87 Bug 1687878 - Fix test_bug703150.xhtml with nnt on linux. r=dholbert
The linux non-native-theme doesn't create scrollbar buttons, so we can't
rely on the indices.

Differential Revision: https://phabricator.services.mozilla.com/D103145
2021-01-27 07:45:03 +00:00
Timothy Nikkel ce5fd1398c Bug 1687928. Move call to MaybeCreateDisplayPortInFirstScrollFrameEncountered before DecideScrollableLayer in PaintFrame. r=botond
Because DecideScrollableLayer uses the existence of a displayport in it's decision.

In practice though we only paint from process root documents and the root scroll frame will have a displayport (almost?) always. So it's a small correctness improvement that is likely to have little effect.

Differential Revision: https://phabricator.services.mozilla.com/D102588
2021-01-25 23:33:21 +00:00
Lee Salzman b9384b091e Bug 1675590 - avoid using alpha-pass version of gradient shader for clip-mask-only cases. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D102999
2021-01-26 03:56:10 +00:00
Lee Salzman 8b4b32c5c1 Bug 1675590 - implement provisional fast-paths for linear and radial gradients. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103136
2021-01-27 06:00:15 +00:00
James Teh 38a46d893a Bug 493683 part 5: When aria-labell/describedby is set, set HasName/DescriptionDependent on the target subtree. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D102680
2021-01-25 17:31:19 +00:00
James Teh 49597d49e1 Bug 493683 part 4: Add a PivotRule to match any local Accessible in the same document. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D102679
2021-01-25 01:12:17 +00:00
James Teh c9893f0237 Bug 493683 part 3: When an Accessible mutates, fire description change events on an Accessible described by it (or an ancestor thereof) via a relation. r=eeejay
This uses a similar approach to HasNameDependent, introducing a new HasDescriptionDependent.
However, we don't fire events on ancestors, since a description is never computed from an Accessible's own subtree without an explicit described by relation.

Differential Revision: https://phabricator.services.mozilla.com/D102678
2021-01-27 00:39:08 +00:00
James Teh 77fe9db976 Bug 493683 part 2: When an Accessible mutates, fire name change events on an Accessible labelled by it (or an ancestor thereof) via a relation. r=eeejay
HasNameDependent is now set on an Accessible (and thus its descendants) which has A LABEL_FOR relation.
When text mutations occur on such an Accessible, EventQueue::PushNameChange now queues a name change for the Accessible being labelled.

Differential Revision: https://phabricator.services.mozilla.com/D102677
2021-01-27 00:34:21 +00:00
James Teh 1af2138c00 Bug 493683 part 1: Rename HasNameDependentParent to HasNameDependent due to upcoming broader usage. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D102676
2021-01-25 00:39:39 +00:00
Emilio Cobos Álvarez 27e5bcae00 Bug 1688925 - Make nsLinkState an enum class, and make it smaller. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D103061
2021-01-27 04:48:51 +00:00
Emilio Cobos Álvarez 20752f9efd Bug 1688925 - Move nsHTMLDNSPrefetch to the mozilla::dom namespace. r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D103060
2021-01-27 04:37:58 +00:00
Tooru Fujisawa a77cdd404d Bug 1686375 - Part 9: Use BaseCompilationStencil::isInitialStencil instead of CompilationInput.lazy for condition. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103025
2021-01-27 03:23:22 +00:00
Tooru Fujisawa 9c250ec83c Bug 1686375 - Part 8: Use BaseCompilationStencil::isInitialStencil instead of abusing Handler::canSkip*. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103024
2021-01-27 03:23:14 +00:00
Tooru Fujisawa 3d005940a5 Bug 1686375 - Part 7: Assert BaseCompilationStencil::isInitialStencil() is consistent with the existence of lazy script. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103023
2021-01-27 03:23:12 +00:00
Tooru Fujisawa bc34ef2eca Bug 1686375 - Part 6: Cache BaseCompilationStencil::isInitialStencil() in FunctionBox and use it instead of checking scriptExtra size. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103022
2021-01-27 03:23:04 +00:00
Tooru Fujisawa 6d07d3c8d3 Bug 1686375 - Part 5: Remove SharedContext::copyScriptFields. r=tcampbell
SharedContext doesn't have script-specific field of ScriptStencil.
All fields are for ScriptStencilExtra.

Differential Revision: https://phabricator.services.mozilla.com/D103021
2021-01-27 03:22:56 +00:00
Tooru Fujisawa a62dd4030b Bug 1686375 - Part 4: Populate CompilationStencil.functionKey at the beginning of delazification. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103020
2021-01-27 03:22:49 +00:00
Tooru Fujisawa d3b493c9e5 Bug 1686375 - Part 3: Remove misleading BaseCompilationStencil::isCompilationStencil. r=tcampbell
`BaseCompilationStencil::isCompilationStencil() == true` means it's always
`CompilationStencil`, because initial stencil is always stored into
`CompilationStencil`.
However, `BaseCompilationStencil::isCompilationStencil() == false` doesn't
always mean it's not `CompilationStencil`, because while delazification
the delazification stencil is stored into `CompilationStencil`.

Differential Revision: https://phabricator.services.mozilla.com/D103019
2021-01-27 03:22:41 +00:00
Tooru Fujisawa 2b82623df3 Bug 1686375 - Part 2: Remove BaseScript parameter from Parser constructors. r=tcampbell
CompilationStencil.input.lazy already contains it.

Differential Revision: https://phabricator.services.mozilla.com/D103018
2021-01-27 03:22:33 +00:00
Tooru Fujisawa da493ce052 Bug 1686375 - Part 1: Remove CompilationInput& parameter from JSScript::fromStencil. r=tcampbell
CompilationStencil already contains CompilationInput.

Differential Revision: https://phabricator.services.mozilla.com/D103017
2021-01-27 03:22:26 +00:00
Ting-Yu Lin 349e6f61c6 Bug 1688690 Part 3 - Simplify nsTableWrapperFrame's methods where the nsTableFrame's margin is used. r=emilio
Rename SetDesiredSize() to ComputeFinalBSize() because it now computes
only the final block-size.

Differential Revision: https://phabricator.services.mozilla.com/D103066
2021-01-27 01:52:04 +00:00
Ting-Yu Lin 60ba2b527c Bug 1688690 Part 2 - Ensure nsTableFrame's computed margins are all zero. r=emilio
This patch makes the following changes:

1. Don't call ReflowInput::CalculateBlockSideMargins() for nsTableFrame
so that setting nsTableFrame's computed margins to zero in
SizeComputationInput::InitOffsets() remains true. Also, add an assertion
in nsTableFrame::Reflow() to ensure that.

2. Remove useless nsTableFrameWrapper::GetChildMargin() because the
method is used to get nsTableFrame's margins, which are now all zero.
Also, the old code that subtracts the block-axis margin from available
block-size doesn't really make sense.

3. Pass all-zero innerMargins to nsTableWrapperFrame::SetDesiredSize(),
and use table wrapper's content-box inline-size as the final desired
border-box inline-size rather than reconstructing it from caption and
inner table's inline-size & margin like the old code.

This inline-size already takes inner table's intrinsic size and
caption's inline-size into consideration in
nsTableWrapperFrame::ComputeAutoSize(), and is the final inline-size we
want to use.

In the next part, we are going to simplify all nsTableWrapperFrame's
methods that take inner frame's margin.

Differential Revision: https://phabricator.services.mozilla.com/D103065
2021-01-27 01:53:36 +00:00
Ting-Yu Lin 90546a2af8 Bug 1688690 Part 1 - Extract content-box inline-size in nsTableWrapperFrame::Reflow(). r=emilio
`aOuterRI.ComputedSize(wm).ISize(wm)` can be extracted as a variable
because it is used repeatedly.

Differential Revision: https://phabricator.services.mozilla.com/D103064
2021-01-26 19:52:09 +00:00
Matt Woodrow 2a0c7c976f Bug 1687124 - Pass tile valid rect into invalidate_tile, so that this is available in time for begin_compositing. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D102667
2021-01-27 03:17:41 +00:00
Matt Woodrow 05e2b31dac Bug 1687124 - Make RenderCompositorSWGL clear the non-opaque dirty areas. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102666
2021-01-27 03:17:29 +00:00
Matt Woodrow eb7fe574cb Bug 1687124 - Make SwCompositor compute the set of opaque rectangles, and forward this to the RenderCompositor. r=gw,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102665
2021-01-27 03:17:16 +00:00
Jeff Muizelaar 4c90b5a22b Bug 1688985. Elaborate the comment about transparency. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D103113
2021-01-26 22:24:45 +00:00
Bogdan Tara 5eded5baf9 Backed out 3 changesets (bug 1687124) for webrender_bindings related failure CLOSED TREE
Backed out changeset 8832f33fa266 (bug 1687124)
Backed out changeset 27de9357456e (bug 1687124)
Backed out changeset b9ca229672d5 (bug 1687124)
2021-01-27 04:04:10 +02:00
Iain Ireland 727db24003 Bug 1674143: Transpile NumberMinMaxArrayResult r=jandem
Depends on D101235

Differential Revision: https://phabricator.services.mozilla.com/D101236
2021-01-14 14:21:43 +00:00
Iain Ireland 263ceb7fdd Bug 1674143: Add NumberMinMaxArrayResult r=jandem
This is about a 12x speedup on a microbenchmark.

Depends on D101234

Differential Revision: https://phabricator.services.mozilla.com/D101235
2021-01-14 14:16:15 +00:00
Iain Ireland f35651000c Bug 1674143: Transpile Int32MinMaxArrayResult r=jandem,anba
On a microbenchmark evaluating `Math.max(...input)`, this is ~30x faster.

Differential Revision: https://phabricator.services.mozilla.com/D101234
2021-01-15 18:43:43 +00:00
Iain Ireland 895af98f12 Bug 1674143: Add Int32MinMaxArrayResult r=jandem
Depends on D101232

Differential Revision: https://phabricator.services.mozilla.com/D101233
2021-01-14 14:03:05 +00:00
Iain Ireland f3db344aee Bug 1674143: Update column offset testcase r=jorendorff
For a spread call like `foo(...args)`, if OptimizeSpreadCall succeeds, we don't hit a breakpoint associated with `...args`, because we skip past that code. Before the parent patch, this wasn't a problem in this testcase, because we were only generating OptimizeSpreadCall for rest parameters. After that patch, we are generating OptimizeSpreadCall more frequently.

We don't actually care about hitting this breakpoint, so I'm just updating the test.

Differential Revision: https://phabricator.services.mozilla.com/D101232
2021-01-27 01:30:36 +00:00
Iain Ireland de1bca0b4f Bug 1674143: Emit OptimizeSpreadCall for non-rest arguments r=arai
When OptimizeSpreadCall was introduced, we conservatively only emitted it when the spread argument was a rest parameter. At the time, OptimizeSpreadCall required a VM call. It has been rewritten to use an IC, making the failure case very efficient. If we do not emit OptimizeSpreadCall, then we must allocate and copy an array object, even if the argument is already a packed array. In a microbenchmark, emitting OptimizeSpreadCall for non-rest-parameter cases is more than a 2x speedup, and generating the OptimizeSpreadCall in a non-packed-array case is <5% slowdown. The optimized case is also likely to be much more common in real code.

This patch extends OptimizeSpreadCall to be emitted whenever the single spread argument is any Name node. In theory we might also want to allow other nodes, but currently the bytecode emitter will call emitTree on the first argument twice in this case, which is fine for a Name node but broke in testing for `foo(...function() {})` (because we tried emitting a non-hoisted function twice).

Differential Revision: https://phabricator.services.mozilla.com/D101231
2021-01-08 23:34:45 +00:00
Emily McDonough c4b65cfdda Bug 1647843 - Add page-size parsing to Servo r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102360
2021-01-27 00:47:56 +00:00
Matt Woodrow 5cbbfdc99f Bug 1687124 - Pass tile valid rect into invalidate_tile, so that this is available in time for begin_compositing. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D102667
2021-01-27 00:48:06 +00:00
Matt Woodrow 7700b29cec Bug 1687124 - Make RenderCompositorSWGL clear the non-opaque dirty areas. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102666
2021-01-26 07:03:00 +00:00
Matt Woodrow 1875a8e5ab Bug 1687124 - Make SwCompositor compute the set of opaque rectangles, and forward this to the RenderCompositor. r=gw,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102665
2021-01-26 06:53:05 +00:00
Bogdan Tara a9b6b7cff8 Backed out changeset a77ccd1c1659 (bug 1687358) for browser_lazyload_telemetry.js failures CLOSED TREE 2021-01-27 02:46:06 +02:00
Cosmin Sabou 7b8c450692 Backed out changeset ece826cc95e0 (bug 1688668) for causing bug 1688999.
CLOSED TREE
2021-01-27 01:05:40 +02:00
Steve Fink 536f49d107 Bug 1688919 - Implement `mach jit-test --cgc` r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103056
2021-01-26 23:22:46 +00:00
Andreu Botella ce8162c71a Bug 1665014 - Make the check for hidden input "_charset_" case-insensitive. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D103082
2021-01-26 23:17:17 +00:00
Sean Feng 14dee2e52c Bug 1687358 - Implement telemetry probes to determine the best possible threshold for <lazyload> r=emilio
This patch implements five telemetry probes to help us learn how
lazyload thresholds perform in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D102845
2021-01-26 21:54:33 +00:00