Commit Graph

720861 Commits

Author SHA1 Message Date
Masayuki Nakano
4d84607c7e Bug 1655389 - part 2: Move recursive call in AutoBlockElementsJoiner::HandleDeleteCollapsedSelectionAtCurrentBlockBoundary() to HTMLEditor::HandleDeleteAroundCollapsedSelection() r=m_kato
The recursive call is not safe.  We should do it more carefully.  For now,
we should not hide the recursive call into the leaf handler.

Differential Revision: https://phabricator.services.mozilla.com/D85573
2020-08-04 12:14:33 +00:00
Masayuki Nakano
2323c386e9 Bug 1655389 - part 1: Move HTMLEditor::HandleDeleteCollapsedSelectionAtCurrentBlockBoundary() into AutoBlockElementJoiner r=m_kato
Same as the patch for bug 1655391, this patch splits the method to 2 parts.
One is to consider content nodes to join or a `<br>` element to delete instead.

Note that this patch changes the behavior a little.  That is, when the other
block is not editable, it throws an exception here:
https://searchfox.org/mozilla-central/rev/56bb74ea8e04bdac57c33cbe9b54d889b9262ade/editor/libeditor/HTMLEditSubActionHandler.cpp#3124

But it should just cancel the edit action.  Therefore, some tests in
BrowserScope are fixed by this patch.  I.e., result of DOM tree in the
situation isn't changed, but stops throwing unnecessary exception.

Differential Revision: https://phabricator.services.mozilla.com/D85569
2020-08-04 11:42:55 +00:00
Drew Willcoxon
591e526c82 Bug 1657140 - Don't show one-offs under Search Tips when update 2 is enabled. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D85942
2020-08-05 06:08:21 +00:00
Bogdan Tara
56e3736afb Backed out changeset ac5dc4c13464 (bug 1656706) for prefixNeeded related failures 2020-08-05 07:31:48 +03:00
Itiel
bcfc9fbe66 Bug 1656706 - Fix prefixed properties being displayed incorrectly in the Compatibility panel, for RTL r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D85663
2020-08-05 03:47:28 +00:00
Tom Prince
4585d70c82 Bug 1657217: Remove unused test binaries; r=firefox-build-system-reviewers,glandium
elfhack is unneeded after Bug 1645842  and filedid after Bug 1619840.

Differential Revision: https://phabricator.services.mozilla.com/D85924
2020-08-05 03:59:51 +00:00
Mike Conley
22de1f0d2a Bug 1655078 - Make the 'Stop Sharing' button in the WebRTC indicator stop all screen sharing streams. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D85414
2020-08-05 03:38:19 +00:00
championshuttler
790296ef00 Bug 1649966 - Discard the docs for vcs-setup git. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D82087
2020-08-05 02:47:20 +00:00
Daniel Holbert
96d67c6eb3 Bug 1652278 part 2: Flesh out PrintedSheetFrame implementation so that it serves as the container for nsPageFrame. r=TYLin
This patch:
- Creates an anon-box pseudo-style for PrintedSheetFrame, in part so that it
  can co-opt the styles that we formerly gave to page-frames in ua.css, to draw
  the sheet of paper and the shadow in Print Preview.
- Adjusts nsCSSFrameConstructor to create a PrintedSheetFrame as the parent of
  nsPageFrame (inserting between it and its nsPageSequenceFrame container, in
  the frame tree).
- Fleshes out out a simple BuildDisplayList() implementation for
  PrintedSheetFrame (taking the responsibility for "paper"-drawing from
  nsPageFrame).
- Fleshes out a simple Reflow implementation for PrintedSheetFrame, just
  placing the child page (assuming there's only one for now) at the origin.
- Adjusts nsPageFrame and nsPageSequenceFrame to account for the fact that
  there's another layer between them now.

Note that PrintedSheetFrame needs to implement AppendDirectlyOwnedAnonBoxes()
(just as nsSimplePageSequence and nsPageFrame do), since it owns anonymous
nsPageFrame instances. This implementation only needs to append the first
child, as explained in the code-comment and in
https://bugzilla.mozilla.org/show_bug.cgi?id=1374761#c9 (and of course, for
now, PrintedSheetFrame only has one child at a time anyway.)

Differential Revision: https://phabricator.services.mozilla.com/D83457
2020-08-05 03:28:32 +00:00
Daniel Holbert
41ce298d55 Bug 1652278 part 1: Add stub implementation for new frame class "PrintedSheetFrame", to represent an individual printed sheet of paper. r=TYLin
This patch is just to get the "new file/frame class" boilerplate out of the
way.  As of this patch, this frame class *is* compiled, but it doesn't do
anything and it's never instantiated. The next patch in this series will make
us actually start using it at runtime.

Differential Revision: https://phabricator.services.mozilla.com/D83456
2020-08-04 02:00:10 +00:00
Matt Woodrow
6d402027a6 Bug 1656813 - Implement non-premultiplied blending in SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85732
2020-08-05 02:19:43 +00:00
Matt Woodrow
ba66eda840 Bug 1656813 - Mark failing test. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85717
2020-08-05 02:19:31 +00:00
Matt Woodrow
557fb9c941 Bug 1656813 - Set correct blend mode for non-premultiplied alpha. r=gw
I believe this is correct for blending a non-premuliplied source into a premultiplied destination. Only the source color part should be different to normal blending, since it needs to be multiplied by the source alpha channel.

Differential Revision: https://phabricator.services.mozilla.com/D85716
2020-08-05 02:19:18 +00:00
Matt Woodrow
b31970d899 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 02:19:08 +00:00
Matt Woodrow
f52c35fb5a Bug 1656813 - Remove document layer from ZBufferIdGenerator allocation. r=gw
This was added for document splitting, which has since been removed from Gecko.

Differential Revision: https://phabricator.services.mozilla.com/D85714
2020-08-05 02:18:18 +00:00
Matt Woodrow
a4e9f1908e Bug 1656813 - Make swgl a dependency of gkrust so that we have correct dependencies for sccache. r=glandium
See https://github.com/rust-lang/rust/issues/58393

Differential Revision: https://phabricator.services.mozilla.com/D85713
2020-08-05 02:18:11 +00:00
Matt Woodrow
52816fc9fb Bug 1656813 - Add SWGL support for UNSIGNED_INT_8_8_8_8_REV. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85712
2020-08-05 02:18:09 +00:00
Matt Woodrow
7a12eb7ada Bug 1656813 - Clang format gl.cc. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85711
2020-08-05 02:18:07 +00:00
Ted Campbell
a3e53f4228 Bug 1653248 - Rename ScopeCreationData to ScopeStencil r=arai
Differential Revision: https://phabricator.services.mozilla.com/D85941
2020-08-05 01:30:39 +00:00
Ted Campbell
79573da00d Bug 1653248 - Remove AbstractScopePtr from ScopeCreationData r=arai
Replace the enclosing scope field with a Maybe<ScopeIndex> field. When the
enclosing scope is an existing concrete scope, the CompilationInfo data will
be used instead.

One source of complexity is that scripts in the self-hosting global use the
existing empty global scope and indicate this with a placeholder type in the
gc-things array. In this case there is no ScopeCreationData and we return
mozilla::Nothing for the scopeIndex. When ScopeCreationData::enclosing
computes the actual scope, it handles this case.

Differential Revision: https://phabricator.services.mozilla.com/D84889
2020-08-05 01:30:36 +00:00
Ted Campbell
3803b71ec4 Bug 1653248 - Remove EnvironmentShapeCreationData structure r=arai
Replace the EnvironmentShapeCreationData variant with a Maybe<uint32>
numEnvironmentSlots field. Nothing value here indicates no environment shape
is used, and the empty environment case is identified by numEnvironmentSlots
being 0. The firstFrameSlot value is also saved in order to recreate the
BindingIter during stencil instantiation.

Also simplify the `updateEnvShapeIfRequired` methods by using the
BASESHAPE_FLAGS values introduced in earlier patch.

Differential Revision: https://phabricator.services.mozilla.com/D84887
2020-08-05 01:30:27 +00:00
Ted Campbell
fafb7a77eb Bug 1653248 - Remove ScopeCreationData::scope_ field r=arai
Replace this field with a vector on CompilationInfo in a similar way to how
JSFunctions are handled.

Differential Revision: https://phabricator.services.mozilla.com/D84888
2020-08-05 01:30:29 +00:00
Ted Campbell
1a75b31875 Bug 1653248 - Add js::BindingIter constructor for environment shape deferral r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D84886
2020-08-04 21:03:53 +00:00
Ted Campbell
d26a912f27 Bug 1653248 - Add BASESHAPE_FLAGS to EnvironmentObject subclasses r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D84885
2020-08-04 21:06:05 +00:00
Cosmin Sabou
12db94501a Backed out changeset 3dba9cbe665b (bug 1657217) for mass failures on windows. CLOSED TREE 2020-08-05 04:59:20 +03:00
Cosmin Sabou
38cd82e194 Backed out 8 changesets (bug 1656813) for reftest failures on bipbop_300_215kbps.mp4.lastframe.html.
Backed out changeset 92e0209dc7f1 (bug 1656813)
Backed out changeset 1b3842f2ca27 (bug 1656813)
Backed out changeset efed1b35fe47 (bug 1656813)
Backed out changeset d1c313ebe358 (bug 1656813)
Backed out changeset 4d6a3bf61345 (bug 1656813)
Backed out changeset 060254b3ad73 (bug 1656813)
Backed out changeset 37e5e5e6593a (bug 1656813)
Backed out changeset 12c0e9554a5f (bug 1656813)
2020-08-05 04:52:20 +03:00
Bogdan Tara
abfa3262b8 Backed out changeset 1ccda1d0c3ea (bug 1650363) for causing a serious regression in packaging time 2020-08-05 04:23:20 +03:00
Tom Prince
c8dfe8b2b0 Bug 1657217: Remove unused test binaries; r=firefox-build-system-reviewers,glandium
`elfhack` is unneeded after Bug 1645842 and `fileid` after Bug 1619840.

Differential Revision: https://phabricator.services.mozilla.com/D85924
2020-08-05 01:09:27 +00:00
Mike Conley
3143e581af Bug 1656274 - Add a probe to record when users cause the WebRTC sharing indicator to open. r=pbz,data-review=chutten
Differential Revision: https://phabricator.services.mozilla.com/D85422
2020-08-04 22:37:39 +00:00
Matt Woodrow
efff724681 Bug 1656813 - Implement non-premultiplied blending in SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85732
2020-08-05 00:55:01 +00:00
Matt Woodrow
abeb17f2ef Bug 1656813 - Mark failing test. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85717
2020-08-05 00:54:48 +00:00
Matt Woodrow
1d129542c3 Bug 1656813 - Set correct blend mode for non-premultiplied alpha. r=gw
I believe this is correct for blending a non-premuliplied source into a premultiplied destination. Only the source color part should be different to normal blending, since it needs to be multiplied by the source alpha channel.

Differential Revision: https://phabricator.services.mozilla.com/D85716
2020-08-05 00:54:36 +00:00
Matt Woodrow
1885d56be1 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 00:54:23 +00:00
Matt Woodrow
84feb51b10 Bug 1656813 - Remove document layer from ZBufferIdGenerator allocation. r=gw
This was added for document splitting, which has since been removed from Gecko.

Differential Revision: https://phabricator.services.mozilla.com/D85714
2020-08-05 00:53:31 +00:00
Matt Woodrow
e23caa3eba Bug 1656813 - Make swgl a dependency of gkrust so that we have correct dependencies for sccache. r=glandium
See https://github.com/rust-lang/rust/issues/58393

Differential Revision: https://phabricator.services.mozilla.com/D85713
2020-08-05 00:53:13 +00:00
Matt Woodrow
8968a8c00a Bug 1656813 - Add SWGL support for UNSIGNED_INT_8_8_8_8_REV. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85712
2020-08-05 00:52:56 +00:00
Matt Woodrow
b262c2fc91 Bug 1656813 - Clang format gl.cc. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85711
2020-08-05 00:52:54 +00:00
Thomas Daede
0d996643b9 Bug 1657075 - AVIF: use matrix coefficients to set YUVColorSpace. r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D85839
2020-08-04 23:00:38 +00:00
Bogdan Tara
954472a91e Backed out 2 changesets (bug 1653355) by mstange's request, for causing bug 1657239 and bug 1657241
Backed out changeset c05bf982e469 (bug 1653355)
Backed out changeset 8de5ba3d1c6f (bug 1653355)
2020-08-05 02:37:30 +03:00
Ricky Stewart
1223a30be7 Bug 1657230 - Specify text editors should open js/sub.configure as a Python file r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D85932
2020-08-04 22:29:04 +00:00
Gijs Kruitbosch
88eef896a5 Bug 333811 - send referrer info for favicons and obey the referrer policy when doing so, r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D85798
2020-08-04 22:19:52 +00:00
Jeff Gilbert
58dfb9f0a1 Bug 1656999 - Unmark now-passing tests.
Some tests now pass after rebuilding Docker images in bug 1616925.

Differential Revision: https://phabricator.services.mozilla.com/D85937
2020-08-04 22:42:13 +00:00
Jon Bauman
48626ed575 Bug 1655846 - Hit MOZ_CRASH(assertion failed: (left == right) left: 1024, right: 0). r=tsmith
Differential Revision: https://phabricator.services.mozilla.com/D85796
2020-08-04 22:40:52 +00:00
Mike Hommey
cd31cb1f77 Bug 1116553 - Rewrite version_win.pl in Python. r=firefox-build-system-reviewers,rstewart
This is not a feature-for-feature rewrite. The python version removes
unused things, and simplifies some others:

- Only two command line arguments are taken in, and all the others are
  dropped and the corresponding values are gotten from the buildconfig
  module instead. The command line arguments are also taken as
  positional arguments rather than going with a full argument parser.

- Variable expansion in module.ver used to be limited to one specific
  variable to expand for a given value, which is now replaced with the
  possibility to expand any of the variables that are allowed in
  module.ver.

- The perl version was adding a RT_MANIFEST entry on its own if a
  manifest file existed in the objdir for the given binary, but if such
  a file existed, the build would fail after linking from the changes in
  bug 1613799.

- The perl version was defaulting the module name to the binary name in
  a branch that was never taken because the module name was assigned to
  an empty string before that.

The output from the new script has been validated to being identical to
the output from the perl script, except for one extra whitespace at the
end of a comment.

Differential Revision: https://phabricator.services.mozilla.com/D85817
2020-08-04 22:21:01 +00:00
Eitan Isaacson
8fa865b06a Bug 1635722 - Check existance of proxy accessibles for pivot boundaries. r=Jamie
The new pivot boundaries might consist of accessibles that don't exist
yet in the parent process proxy tree.

I guess we can tweak the timing of the pivot boundaries message to be
sent only after remote tree construction. But this seems like an edge
case that quickly gets corrected after the next cache refresh.

Differential Revision: https://phabricator.services.mozilla.com/D85912
2020-08-04 22:16:23 +00:00
Cameron McCormack
bca8782a80 Bug 1656801 - Fix typo in UserInteractionTimer name. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D85696
2020-08-04 15:06:11 +00:00
Geoff Brown
e35f7cf171 Bug 1599109 - Make a few more mochitest error messages visible to treeherder; r=jmaher
Follow-up on part 1 of https://bugzilla.mozilla.org/show_bug.cgi?id=1599109#c16: preface
more mochitest error messages with TEST-UNEXPECTED-FAIL so that treeherder and especially
the log viewer will recognize the errors.

Differential Revision: https://phabricator.services.mozilla.com/D85925
2020-08-04 21:34:52 +00:00
Chris Martin
c946e6eaf9 Bug 1656349 - Refactor the IPC lifetimes for the PGamepadEventChannel object r=daoshengmu
Change the GamepadEventChannel so it is fully-initialized by the IPC
constuctor and needs no separate "init" message, and so its completely
destroyed by the ActorDestroy() message so it needs no "cleanup" message.

This simplifies the object lifetime, as well as unifies the IPC error vs
clean shutdown paths.

Differential Revision: https://phabricator.services.mozilla.com/D85481
2020-08-04 21:27:53 +00:00
Mike Hommey
cb4022c808 Bug 1652374 - Use LLD for non-PGO-profile-use clang builds on automation. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D85536
2020-08-04 02:26:42 +00:00
Mike Hommey
3228564df4 Bug 1652374 - Disable elfhack when explicitly building with --enable-linker=lld. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D85811
2020-08-04 21:56:41 +00:00