Commit Graph

746063 Commits

Author SHA1 Message Date
Tooru Fujisawa
87f2f509f0 Bug 1692648 - Part 2: Pass LifoAlloc to ScopeStencil::createFor*. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D105141
2021-02-24 04:22:28 +00:00
Tooru Fujisawa
38cae24ecb Bug 1692648 - Part 1: Pass LifoAlloc to CompilationState constructor. r=tcampbell
As a preparation to decouple CompilationState from the final CompilationStencil,
removed the direct dependency to CompilationStencil from the constructor.

The later patch adds yet another LifoAlloc inside CompilationState base class.

Differential Revision: https://phabricator.services.mozilla.com/D105140
2021-02-24 04:22:28 +00:00
Masayuki Nakano
cc1bfd3ee1 Bug 1691622 - part 13: Make helper_scrollbarbutton_repeat.html use new API to synthesize native mouse click. r=fix CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D106244
2021-02-24 03:38:59 +00:00
Mike Conley
344a56022e Bug 1693177 - Apply Proton stylings to Firefox Accounts menu and surroundings. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D105697
2021-02-24 03:01:51 +00:00
Mike Conley
3da2d710da Bug 1688960 - Use h1 and h2 elements for panel headers and subheaders. r=Standard8,yzen,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105081
2021-02-24 02:52:30 +00:00
Mike Hommey
1b305c741e Bug 1694323 - Upgrade psutil to 5.8.0. r=firefox-build-system-reviewers,andi,sheehan,mhentges
It is the first version that comes with wheels for most platforms.

Differential Revision: https://phabricator.services.mozilla.com/D106066
2021-02-24 02:45:59 +00:00
Mike Hommey
0aa3513884 Bug 1694324 - Use in-tree autoconf in make-source-package. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D106067
2021-02-24 02:36:41 +00:00
Mike Hommey
61a1cf7c5a Bug 1694296 - Remove the debian8-amd64-build-base docker image. r=firefox-build-system-reviewers,andi,sheehan,mhentges
It was added back when we were using Debian 7-based images, and we
were using a more recent version of Gtk than available in Debian 7 in
the normal Firefox build. We've since upgraded to Debian 8 and removed
the difference.

Differential Revision: https://phabricator.services.mozilla.com/D106055
2021-02-24 02:17:14 +00:00
Daisuke Akatsuka
9e63f9ba1f Bug 1692368: Make page-removed event to batch handle. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D105283
2021-02-24 02:15:46 +00:00
Mike Hommey
1afcdbc6aa Bug 1693725 - Make --enable-bootstrap install missing toolchains. r=firefox-build-system-reviewers,andi,sheehan,mhentges
This means --enable-bootstrap now is the same as what
--enable-bootstrap=install currently does. --enable-bootstrap=install is at the
same time desupported.
We also remove --enable-bootstrap=update, which is not worth supporting.

Differential Revision: https://phabricator.services.mozilla.com/D105719
2021-02-24 02:13:10 +00:00
Mike Hommey
34ada26a0e Bug 1693723 - Avoid bootstrapping when an explicit path is given for tools. r=firefox-build-system-reviewers,mhentges
This changes things such that setting e.g. NASM=/usr/bin/nasm will avoid
bootstrapping nasm even when bootstrapping is enabled.

This is not applied to CC/CXX/HOST_CC/HOST_CXX because things are more
complicated.

This also simplifies how check_prog is called for a bootstrapped tool,
and avoids the repetition of when.

CBINDGEN handling needs the pattern being applied manually because it
currently doesn't use check_prog. Once --enable-bootstrap=install
becomes the default on developer builds, it will be possible to simplify
this.

Differential Revision: https://phabricator.services.mozilla.com/D105718
2021-02-24 02:01:33 +00:00
Mike Hommey
dfb8c396a6 Bug 1693723 - Pass bootstrap path in one piece to bootstrap_{,search_}path. r=firefox-build-system-reviewers,andi,mhentges
It will make upcoming changes simpler.

Differential Revision: https://phabricator.services.mozilla.com/D105717
2021-02-24 02:01:32 +00:00
Masayuki Nakano
1c60ca0e2c Bug 1691622 - part 12: Change the default unit of screenX/Y of synthesizeNativeMouseEvent from device pixels to CSS pixels r=smaug
For minimizing the previous patch changes, `scale`'s default value for
`screenX/Y` is treated as 1.0.  It means that `screenX/Y` are device
pixels by default, but `offsetX/Y` are in CSS pixels by default.  This
difference may make developers confused.  Therefore, we should align the
default unit of them to `screenPixelsPerCSSPixel`.  I.e., their default
unit becomes CSS pixels.

Differential Revision: https://phabricator.services.mozilla.com/D105929
2021-02-24 01:27:11 +00:00
Masayuki Nakano
876ef492b9 Bug 1691622 - part 11: Make mochitests stop using nsIDOMWindowUtils.sendNativeMouseEvent directly as far as possible r=smaug
For making the test framework/API change easier, such raw API shouldn't be
used directly.  Therefore, this patch makes tests using it directly stop
using it and use `synthesizeNativeMouseEvent` instead.

However, this patch does not fix `browser_touch_event_iframes.js` because
it accesses the API from `ContentTask`.  So, `EventUtils.js` isn't available
without larger change.

Note that this patch disables `test_bug596600.xhtml` because as I commented
in it, it's completely broken.  It depends on the race of next native event
loop and `waitForTick`, and this patch changes the result of the race.

Differential Revision: https://phabricator.services.mozilla.com/D105765
2021-02-24 01:27:11 +00:00
Masayuki Nakano
b77b790e20 Bug 1691622 - part 10: Make synthesizeNativeMouseEvent take a button argument r=smaug
Now, it should take `button` argument whose default value is 0 (primary
button).

Differential Revision: https://phabricator.services.mozilla.com/D105764
2021-02-24 01:27:10 +00:00
Masayuki Nakano
ef2253b4a1 Bug 1691622 - part 9: Make nsIWidget::SynthesizeNativeMouseEvent take an XP button ID and abstract message value r=smaug,geckoview-reviewers,agi,m_kato
Currently, it takes a raw native message value, but it makes JS content too
complicated.  And on Linux, it cannot synthesize non-primary button events
because GDK has only button press and release messages which dont' include
mouse button information.

For solving these problems, this patch creates a new abstract native message
as `nsIWidget::NativeMouseMessage` and makes each widget converts it to
a platform native message.

Additionally, this patch adds an argument to make it possible its callers
to specify pressing or releasing mouse button with a DOM mouse button value.

Note that the following patch adds new argument to
`synthesizeNativeEventMouse*` for mochitests and which will be tested by
new tests.

Differential Revision: https://phabricator.services.mozilla.com/D105763
2021-02-24 01:27:10 +00:00
Masayuki Nakano
e675c8343f Bug 1691622 - part 8: Get rid of nsIDOMWindowUtils::SendNativeMouseMove() r=smaug
Now, there are no users of this API.  However,
`nsIWidget::SynthesizeNativeMouseMove()` is still used by `EventStateManager`.
Even though it's just redirected to `nsIWidget::SynthesizeNativeMouseEvent()`,
but it hides the native event message from `EventStateManager`.  Therefore,
this patch keeps the widget API for now.

Differential Revision: https://phabricator.services.mozilla.com/D105762
2021-02-24 01:27:09 +00:00
Masayuki Nakano
bc2a8bc131 Bug 1691622 - part 7: Merge synthesizeNativeMouseMove* with synthesizeNativeMouseEvent* r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105761
2021-02-24 01:27:09 +00:00
Masayuki Nakano
44ff291cb4 Bug 1691622 - part 6: Merge synthesizeNativeMouseClick* with synthesizeNativeMouseEvent* r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105760
2021-02-24 01:27:08 +00:00
Masayuki Nakano
293d2541c8 Bug 1691622 - part 5: Make synthesizeNativeMouseClick* take an event type r=smaug
Let's make `synthesizeNativeMouseClick*` take an event type, and only when
it's click, it should send native mouse event twice.

Then, we can all them `synthesizeNativeMouseEvent*`.

Differential Revision: https://phabricator.services.mozilla.com/D105759
2021-02-24 01:27:08 +00:00
Masayuki Nakano
b63882dde8 Bug 1691622 - part 4: Make synthesizeNativeMouseClick*() aware of modifiers r=smaug,geckoview-reviewers,m_kato
Surprisingly, they don't take modifiers, and
`nsIWidget::SynthesizeNativeMouseEvent()` which are implementations of
`nsIDOMWindowUtils::SendNativeMouseEvent()` treat given modifier flags
are native's ones, and handle modifiers only on macOS.  Therefore, this
patch makes them handle native modifiers of Gecko.

Unfortunately, I'm not so familiar with Android API, and in the short
term, I don't need the support on Android.  Therefore, this patch just
adds a TODO comment on Android widget.

Additionally, we don't have a simple way to set modifier only while
posting a mouse input on Windows too.  It requires complicated code.
Therefore, I don't add the support for it on Windows too.

Differential Revision: https://phabricator.services.mozilla.com/D105758
2021-02-24 01:27:07 +00:00
Masayuki Nakano
613d02b00b Bug 1691622 - part 3: Make synthesizeNativeMouseClick take screenX/Y r=smaug
Some tests want to specify screen position directly.  Therefore, they should
have additional fields in the `Object` param to take offset in screen.

Differential Revision: https://phabricator.services.mozilla.com/D105757
2021-02-24 01:27:07 +00:00
Masayuki Nakano
0d0a504a13 Bug 1691622 - part 2: Merge synthesizeNativeMouseClickAtCenter with synthesizeNativeMouseClick r=smaug
With adding new feild to the `aParam`, `synthesizeNativeMouseClick` can
work as `synthesizenativeMouseClickAtCenter` too.  Therefore, we can get
rid of the redundant API.

Additionally, this patch makes `synthesizeNativeMouseClickWithAPZ` can
take the new field for consistency between them.

Differential Revision: https://phabricator.services.mozilla.com/D105756
2021-02-24 01:27:07 +00:00
Masayuki Nakano
7242445ca1 Bug 1691622 - part 1: Make synthesizeNativeMouseClick take an Object instead of multiple arguments for synthesizing events r=smaug
In these days, API should take an `Object` instead of multiple arguments
since the callers look like using "named" arguments and this allows to
add new optional arguments with changing not all callers.

This patch also changes similar API for APZ aware tests for keeping
consistent style for their users.

Differential Revision: https://phabricator.services.mozilla.com/D105755
2021-02-24 01:27:06 +00:00
Emilio Cobos Álvarez
97e19087ff Bug 1694141 - Implement :user-valid and :user-invalid. r=xidorn
And alias :-moz-ui-valid and :-moz-ui-invalid to them.

There are CSSWG resolutions for these for quite a while, and spec for
user-invalid.

Differential Revision: https://phabricator.services.mozilla.com/D105966
2021-02-24 01:11:40 +00:00
Jeff Muizelaar
3a98d963c9 Bug 1694543 - Add a profiler label to RenderThread::UpdateAndRender. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D106225
2021-02-24 00:50:07 +00:00
Stephen A Pohl
701d445789 Bug 1694522: Mark webkit-appearance-progress-bar-002.html as expected pass on Windows when the non-native theme is enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D106216
2021-02-23 23:35:50 +00:00
Michael Comella
6e18d8be19 Bug 1670247: change VIEW perftest page to our github.io. r=acreskey,sparky
Differential Revision: https://phabricator.services.mozilla.com/D102351
2021-02-23 23:31:58 +00:00
Aaron Klotz
004362bf3e Bug 1690384: Propagate error information up through XPCOMGlueLoad and GetBootstrap; r=glandium
We know that some GV installations (particularly but not exlcusively Focus) are
failing to load `libxul.so` during early Gecko bootstrapping. Unfortunately
a boolean pass/fail result is not giving us sufficient information to be able to
properly troubleshoot this problem.

This patch adds `mozilla::Result`-based return values to `XPCOMGlueLoad` and
`GetBootstrap` in an effort to produce more actionable information about these
failures.

We include either a `nsresult` or, if the failure is rooted in a dynamic linker
failure, appropriate platform-specific error information:

* On Unix-based platforms, a `UniqueFreePtr<char>` containing the string from `dlerror(3)`;
* On Windows, the Win32 `DWORD` error code from `GetLastError()`.

For non-Android platforms, I updated them to handle the new return type, but
otherwise did not make any further changes.

For Android, we include the error information in the message string that we pass
into the Java `Exception` that is subsequently thrown.

Differential Revision: https://phabricator.services.mozilla.com/D104263
2021-02-23 23:25:22 +00:00
Emilio Cobos Álvarez
03fd22c802 Bug 1694059 - Use WebRender to render non-native range inputs and radio buttons. r=mstange
The only thing missing now are things that draw arrows / checkmarks.

Make the disabled range thumb opaque, to avoid dealing with clipping
(also matches all other browsers, fwiw).

Differential Revision: https://phabricator.services.mozilla.com/D106011
2021-02-23 23:22:19 +00:00
Gijs Kruitbosch
75a736b09e Bug 1692376 - stop showing hover state for menuitems in the new windows 10 menus, r=jaws
I'm also updating the colours for the spec updates to menu colours.

Differential Revision: https://phabricator.services.mozilla.com/D106009
2021-02-23 23:20:10 +00:00
Dorel Luca
df1d85fc90 Backed out 2 changesets (bug 1688960, bug 1693177) for Browser-chrome failures in browser/base/content/test/sync/browser_sync.js. CLOSED TREE
Backed out changeset 13e08408add0 (bug 1693177)
Backed out changeset a34474998cd6 (bug 1688960)
2021-02-24 03:36:21 +02:00
Mike Conley
348076c2de Bug 1693177 - Apply Proton stylings to Firefox Accounts menu and surroundings. r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D105697
2021-02-23 23:16:12 +00:00
Mike Conley
7404b84286 Bug 1688960 - Use h1 and h2 elements for panel headers and subheaders. r=Standard8,yzen,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105081
2021-02-23 23:16:12 +00:00
Narcis Beleuzu
f0b46e9938 Backed out 2 changesets (bug 1694036) for bc failures on browser_process_crash.js. CLOSED TREE
Backed out changeset cd61de1bc04e (bug 1694036)
Backed out changeset 1a29ecee881e (bug 1694036)
2021-02-24 02:07:41 +02:00
Glenn Watson
d61eac7b12 Bug 1694305 - Fix local clip rects on off-screen surfaces that are also raster roots. r=nical
When compositing a filter (or any off-screen surface) into the
parent picture, we also need to assume non-opaque if the transform
is complex, so that AA gets applied along the edges (and that any
fragments outside the AA zone are discarded).

In future, we aim to improve the performance of this fairly rare
scenario by reducing which parts of the picture get the AA shader,
but for now this is a simple fix for a correctess issue.

Differential Revision: https://phabricator.services.mozilla.com/D106054
2021-02-23 23:00:02 +00:00
Molly Howell
b7a1648f8a Bug 1693980 - Make Proton tab bar buttons' click targets extend to the top of maximized windows. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D106189
2021-02-23 22:43:21 +00:00
Dzmitry Malyshau
b595afbcdc Bug 1694510 - Assume default last_frame_used during WR deserialization r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D106193
2021-02-23 22:08:12 +00:00
Tom Schuster
98018ecb9a Bug 1692716 - Make browser_quit_disabled.js more robust. r=Gijs
I realized that we wouldn't notice if the quit-application-requested observer wasn't called.

Differential Revision: https://phabricator.services.mozilla.com/D105121
2021-02-23 21:23:24 +00:00
Tom Ritter
e6322c7b6f Bug 1693861: Record telemetry for popular but unsupported privacy prefs r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D105823
2021-02-23 21:05:46 +00:00
Mike Hommey
6f57e893ff Bug 1694344 - Fix --with-ccache after bug 1693689. r=firefox-build-system-reviewers,sheehan,mhentges
Because --with-ccache without a value fulfills a @depends_if, we need to
check for the length. And because we check the length, we can just use a
@depends.

Differential Revision: https://phabricator.services.mozilla.com/D106084
2021-02-23 20:52:00 +00:00
Gijs Kruitbosch
14792b1e0b Bug 1694446 - remove pocket library animation, r=emalysz,desktop-theme-reviewers,harry
I'm keeping the generic 'animate' selectors which are still used for the bookmark/star animation.
This should make it easier to add other animations to the library in future, if that
ends up useful, and making them more specific to the star animation doesn't seem like it gains
us anything. The de-duplication from bug 1393565 helps a lot here.

Differential Revision: https://phabricator.services.mozilla.com/D106153
2021-02-23 20:42:18 +00:00
Randell Jesup
14539dda32 Bug 1694036: fix testing race condition is about:home restart simulation r=mconley
Depends on D105878

Differential Revision: https://phabricator.services.mozilla.com/D106163
2021-02-23 20:41:59 +00:00
Randell Jesup
36fd177839 Bug 1694036: Fix process-start delay and add pref for startup delay r=nika
Differential Revision: https://phabricator.services.mozilla.com/D105878
2021-02-23 20:41:58 +00:00
Kris Maglione
f508b30e41 Bug 1403348: Follow-up: Remove crash annotations for AsyncShutdown load failures. r=mccr8
They've done their job. It's clear at this point that these failures are
happening because of omni.ja corruption.

Differential Revision: https://phabricator.services.mozilla.com/D105834
2021-02-23 20:18:13 +00:00
Steven Michaud
152232b602 Bug 1690604 - Get accurate system version info on all macOS builds. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D106148
2021-02-23 20:16:36 +00:00
Emilio Cobos Álvarez
e2c6f319f3 Bug 1694393 - Make it easy to enable nsIContent::List() in opt builds. r=smaug
By using a separate define than DEBUG.

Differential Revision: https://phabricator.services.mozilla.com/D106137
2021-02-23 20:08:13 +00:00
Dorel Luca
ceb2414add Backed out changeset 34b849af9365 (bug 1694161) for Clag failure in gecko/dom/gamepad/GamepadRemapping.cpp. CLOSED TREE 2021-02-23 21:52:40 +02:00
Daniel Holbert
dd90573e35 Bug 1560242: Increase fuzzy tolerance for reftest flexbox-resizeviewport-1.xhtml to account for observed fuzziness levels. (no review; just a reftest annotation adjustment) DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106159
2021-02-23 18:56:06 +00:00
Jim Blandy
4afdc767c0 Bug 1694284: Use moves to populate webrender::scene_builder_thread::BuiltTransaction r=gw
Instead of calling `std::mem::replace` with dummy values to extract fields from
the `TransactionMsg` into the `BuiltTransaction`, it's more Rustic to pass the
former by value and just move its fields out.

`SceneBuildingThread::process_transaction` seems to contribute almost no self
time to profiles, so the cost of a move instead of passing a reference is
apparently negligible.

Differential Revision: https://phabricator.services.mozilla.com/D106059
2021-02-23 18:27:40 +00:00