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

700386 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 04158012da Bug 1618759 - Part 6. Don't open on-screen keyboard when inputmode is none. r=masayuki
`inputmode=none` means that OSK is closed.

`SetInputContext` doesn't call `DismissOnScreenKeyboard` directly since
`DismissOnScreenKeyboard` has no hack of Firefox VR.

Depends on D68316

Differential Revision: https://phabricator.services.mozilla.com/D68317

--HG--
extra : moz-landing-system : lando
2020-04-07 22:31:16 +00:00
Makoto Kato cb21fe6467 Bug 1618759 - Part 5. Lazy check whether OSK is closed. r=masayuki
As long as I test on my environment, bug 1226148 isn't fixed. Since native
message queue has high priority, Gecko may check whether focus is changed
before changing focus to another.

So we shouldn't use native message queue for this. It is better to use idle
queue instead.

Depends on D68315

Differential Revision: https://phabricator.services.mozilla.com/D68316

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:58 +00:00
Makoto Kato 8a25b6b137 Bug 1618759 - Part 4. Use InputPane to open on-screen keyboard for Windows 10 RS1+. r=masayuki
Unfortunately, current on-screen keyboard (OSK) code in Gecko doesn't work on
current Windows 10. Actually, Windows automatically control OSK when getting
focus. But this isn't good for web browser since `inputmode` spec can close
OSK by `none` value.

Windows 10 RS1 has new API (IInputPane [*1]) to control software keyboard. So
we have to use it if OS is RS1 or later.

TSF has new flag as `TS_SD_INPUTPANEMANUALDISPLAYENABLE` not to control OSK by
TSF. We should use it.

IMM doesn't have this feature to manage OSK. This will become a limitation for
`inputmode` implementation.

[*1] https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane

Depends on D68314

Differential Revision: https://phabricator.services.mozilla.com/D68315

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:37 +00:00
Makoto Kato 5010b729b6 Bug 1618759 - Part 3. Allow inputmode for non-input element. r=masayuki
Current WHATWG spec is that `inputmode` attribute supports non-input element.
I would like to remove input element check for bug 142484 that is
contenteditable support.

Microsoft IME, Google IME and etc refer 1st input scope that they support, so
we will add both input scopes from `type` and `inputmode`.

Depends on D68313

Differential Revision: https://phabricator.services.mozilla.com/D68314

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:30 +00:00
Makoto Kato 3b55303417 Bug 1618759 - Part 2. Support decimal and search value for inputmode. r=masayuki
Current WHATWG spec means that `numeric` is `IS_DIGITS` and `decimal` is
`IS_NUMBER`.

Depends on D68312

Differential Revision: https://phabricator.services.mozilla.com/D68313

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:24 +00:00
Makoto Kato 7045529ab7 Bug 1618759 - Part 1. Use common method to set input scope. r=masayuki
Gecko has duplicated code for input scope support, so I would like to clean up
this.

Differential Revision: https://phabricator.services.mozilla.com/D68312

--HG--
extra : moz-landing-system : lando
2020-04-07 22:30:19 +00:00
Chris Peterson 32270107d9 Bug 1625855 - Replace MOZ_MUST_USE with [[nodiscard]] in some Servo Rust code. r=emilio
Are there any Rust crates outside mozilla-central that include or emit Mozilla C++ code that should be updated to use [[nodiscard]] instead of MOZ_MUST_USE?

Depends on D68751

Differential Revision: https://phabricator.services.mozilla.com/D69319

--HG--
extra : moz-landing-system : lando
2020-04-02 08:27:59 +00:00
Chris Peterson 4a9feda3ee Bug 1625855 - Replace MOZ_MUST_USE with [[nodiscard]] in layout. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D68751

--HG--
extra : moz-landing-system : lando
2020-04-08 01:59:36 +00:00
Stefan Hindli 585cd46052 Backed out 3 changesets (bug 1617023) for causing mass bustages CLOSED TREE
Backed out changeset 2ff0eabe84e9 (bug 1617023)
Backed out changeset 8cadc6705690 (bug 1617023)
Backed out changeset 3a6247b39244 (bug 1617023)
2020-04-08 04:26:40 +03:00
Ting-Yu Lin b0af8afd5e Bug 1627398 Part 5 - Support dumping frame trees in CSS pixels for gdb and lldb. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D69918

--HG--
extra : moz-landing-system : lando
2020-04-07 23:42:38 +00:00
Ting-Yu Lin fc904d6c63 Bug 1627398 Part 4 - Remove nsIFrame::RootFrameList(), and simplify DumpFrameTree()'s implementation. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D69917

--HG--
extra : moz-landing-system : lando
2020-04-07 23:41:30 +00:00
Ting-Yu Lin 014e9adb5c Bug 1627398 Part 3 - Add a menu item in layout debugger to dump frames in CSS pixels. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D69916

--HG--
extra : moz-landing-system : lando
2020-04-08 00:29:36 +00:00
Ting-Yu Lin af15e4dfe8 Bug 1627398 Part 2 - Support printing frame tree in CSS pixels. r=heycam
Audit all the types related to app units [1] printed in
nsIFrame::List (and all the methods that override it), and use
ConvertToString to convert their printing format to CSS pixels if
needed.

In addition, add operator<< to BaseCoord so that it can cooperate with
mozilla::ToString, which is needed by ConvertToString.

[1] The types include nsRect, nsSize, nscoord, LogicalRect, and
LogicalSize.

Differential Revision: https://phabricator.services.mozilla.com/D69915

--HG--
extra : moz-landing-system : lando
2020-04-08 00:18:52 +00:00
Ting-Yu Lin 5610a9711b Bug 1627398 Part 1 - Convert nsIFrame::List flags to EnumSet. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D69914

--HG--
extra : moz-landing-system : lando
2020-04-08 00:22:19 +00:00
Daosheng Mu 2fcc59f39e Bug 1617023 - Part 3: Implement XR controller selection and squeeze actions. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D67433

--HG--
extra : moz-landing-system : lando
2020-04-07 22:55:48 +00:00
Daosheng Mu 24566d323f Bug 1617023 - Part 2: OpenVR/Oculus controller XR mode. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D67432

--HG--
extra : moz-landing-system : lando
2020-04-07 22:55:39 +00:00
Daosheng Mu 91ad9bdf58 Bug 1617023 - Part 1: Integrating Gamepad with XRInputSource. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D67431

--HG--
extra : moz-landing-system : lando
2020-04-07 22:55:41 +00:00
Stefan Hindli e2003e251b Backed out 3 changesets (bug 1470350) for reftest failures in image/test/crashtests/delaytest.html?523528-1.gif CLOSED TREE
Backed out changeset 78dfbdcb7eea (bug 1470350)
Backed out changeset 01aae64a6b4b (bug 1470350)
Backed out changeset 8fa4c531ab77 (bug 1470350)
2020-04-08 04:08:59 +03:00
Timothy Nikkel 772d2f3c88 Bug 1470350. Enable delaytest.html tests again. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D70105

--HG--
extra : moz-landing-system : lando
2020-04-08 00:20:39 +00:00
Timothy Nikkel d9027714b1 Bug 1470350. Wait for MozReftestInvalidate event in delaytest.html and then wait for the animated image to complete. r=emilio
Just waiting for the load event of the image doesn't even mean the image has been painted at all yet, but by the time MozReftestInvalidate fires the first frame should be guaranteed to have been painted.

Also, switch to using new img.decode api. img.decode will decode an animated version of the img, whereas drawing to a canvas will kick off a first frame only decode which the page can't use.

Differential Revision: https://phabricator.services.mozilla.com/D70104

--HG--
extra : moz-landing-system : lando
2020-04-08 00:23:59 +00:00
Timothy Nikkel 076552a89f Bug 1470350. Fix delaytest.html tests to compare to an html document instead of just an image. r=emilio
Loading just the image results in "theatre mode" display of the image (centered, dark background). But the test needs to be in an html document. We either changed how top level images were displayed or stopped using a style sheet in reftests that displayed images like this since the tests were last enabled.

Differential Revision: https://phabricator.services.mozilla.com/D70103

--HG--
extra : moz-landing-system : lando
2020-04-08 00:20:16 +00:00
Emma Malysz b657384896 Bug 1590573, create a unified approach for caching fragments in our Custom Elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D58866

--HG--
extra : moz-landing-system : lando
2020-04-07 23:56:45 +00:00
Glenn Watson 8485fe5358 Bug 1627864 - Fix invalidation of tiles when the shape of the spatial node tree changes. r=nical,Bert,kvark
Previously, primitive dependency checking would invalidate a tile if
the spatial node index for a given primitive changed.

However, if a new display list is sent that changes the shape of
the spatial node tree this may cause unnecessary invalidations.

For example, a new display list that inserts a new spatial node at
the start of the tree could result in spatial node indices being
different, even though the values of the transforms was the same.

This patch changes the invalidation logic for spatial nodes to
compare the transforms by value, rather than index, meaning that
invalidations are avoided if the shape of the spatial tree has
changed, but the values are consistent.

Differential Revision: https://phabricator.services.mozilla.com/D69913

--HG--
extra : moz-landing-system : lando
2020-04-07 23:58:19 +00:00
Daosheng Mu 7f945fd97b Bug 1611310 - Implement XRInputSource module. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D67430

--HG--
extra : moz-landing-system : lando
2020-04-07 23:49:47 +00:00
Timothy Gu bfaebdfe1e Bug 1627285 - Check for NaN before std::min/max() in DOMQuad and DOMRect. r=emilio,jwalden
Tests were added as a part of bug 1626471. Expectations that the tests fail
have been removed.

Differential Revision: https://phabricator.services.mozilla.com/D69605

--HG--
extra : moz-landing-system : lando
2020-04-07 22:27:36 +00:00
Randall E. Barker 1dde134b0f Bug 1626979 - Add GeckoView API for appending app notes to crash report. r=geckoview-reviewers,snorp,droeh
Differential Revision: https://phabricator.services.mozilla.com/D69662

--HG--
extra : moz-landing-system : lando
2020-04-07 23:42:42 +00:00
Mike Hommey f805480ab5 Bug 1627163 - Switch python configure to python 3. r=firefox-build-system-reviewers,rstewart
This also does a few remaining python 2 incompatible changes to
.configure files.

Differential Revision: https://phabricator.services.mozilla.com/D69538

--HG--
extra : moz-landing-system : lando
2020-04-07 18:31:56 +00:00
Mike Hommey 848d849a24 Bug 1627163 - Fix a few python 3 issues in mozbuild.backend.visualstudio. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D69950

--HG--
extra : moz-landing-system : lando
2020-04-07 15:39:58 +00:00
Mike Hommey 21a4f4b925 Bug 1627163 - Do not rely on write_indented_repr serializing list-like items as lists. r=firefox-build-system-reviewers,rstewart
Many values we get out from configure are of types that look like
lists/tuples, that write_indented_repr will serialize as lists... but
only in python 2, because the alternative implementation for python 3
is not doing that. So sanitize first.

Differential Revision: https://phabricator.services.mozilla.com/D69949

--HG--
extra : moz-landing-system : lando
2020-04-07 22:08:48 +00:00
Mike Hommey 19b511423c Bug 1627163 - Fix a few more python 3 incompatibilities in some .configure files. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D69948

--HG--
extra : moz-landing-system : lando
2020-04-07 15:44:06 +00:00
Mike Hommey 1ca5fc294d Bug 1627163 - Avoid a comparison between a str and an int in gyp. r=firefox-build-system-reviewers,rstewart
Python 3 doesn't like that.

Differential Revision: https://phabricator.services.mozilla.com/D69537

--HG--
extra : moz-landing-system : lando
2020-04-07 09:10:42 +00:00
Mike Hommey 2f950fc227 Bug 1627163 - Add comments to virtualenv_python2 that can be seen in virtualenv_python3. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D69536

--HG--
extra : moz-landing-system : lando
2020-04-05 08:51:22 +00:00
Mike Hommey 6f5d58ae41 Bug 1627163 - Avoid scanning ConfigureSandbox._implied_options when handling implied options. r=firefox-build-system-reviewers,rstewart
ConfigureSandbox._implied_options is a list of ReadOnlyNamespaces.
In python 3.5, ReadOnlyNamespaces end up with no guarantee in the order
of their __dict__. So when comparing

   ReadOnlyNamespace(a=1, b=2)

and

   ReadOnlyNamespace(a=3, b=4)

It's not guaranteed that the a's are compared before the b's.

In ConfigureSandbox._implied_options, some of those ReadOnlyNamespace
fields are SandboxDependsFunctions, which actually raise an error when
they're being compared, because we don't want that to happen in the
sandbox.

So when using python 3, configure would randomly fail when trying to
remove items from the ConfigureSandbox._implied_options list because
removing an item from a list scans the list to find the first element
that matches.

And ConfigureSandbox._implied_options needs to be ordered, which is why
it's currently a list.

So instead of removing by value, we create a new list with the remaining
values. But because the loop recurses, and needs the updated list, we
filter first.

Differential Revision: https://phabricator.services.mozilla.com/D69535

--HG--
extra : moz-landing-system : lando
2020-04-07 15:38:29 +00:00
Kristen Wright 6de3ea1964 Bug 1626388 - Convert ui.key.menuAccessKeyFocuses to static pref r=njn
Converts `ui.key.menuAccessKeyFocuses` to a static pref and removes `nsMenuBarListener::InitializeStatics()`. This pref sets to `true` in windows and linux, which may affect behavior in SeaMonkey and Thunderbird.

Differential Revision: https://phabricator.services.mozilla.com/D69617

--HG--
extra : moz-landing-system : lando
2020-04-07 17:10:30 +00:00
Kristen Wright 41a1cec59e Bug 1626388 -Convert mousewheel.min_line_scroll_amount to static pref r=njn
Converts mousewheel.min_line_scroll_amount to a static pref.

Differential Revision: https://phabricator.services.mozilla.com/D69616

--HG--
extra : moz-landing-system : lando
2020-04-06 20:18:14 +00:00
Kristen Wright 4a3747126f Bug 1626388 - Convert layout.framevisibility.numscrollportwidths/heights to static prefs r=njn
Converts layout.framevisibility.numscrollportwidths and layout.framevisibility.numscrollportheights to static prefs.

Differential Revision: https://phabricator.services.mozilla.com/D69615

--HG--
extra : moz-landing-system : lando
2020-04-06 20:16:38 +00:00
Kristen Wright 05a7022978 Bug 1626388 - Convert dom.select_events.textcontrols.enabled to static pref r=njn
Converts dom.select_events.textcontrols.enabled to a static pref.

Differential Revision: https://phabricator.services.mozilla.com/D69614

--HG--
extra : moz-landing-system : lando
2020-04-06 23:30:18 +00:00
Kristen Wright b0a2f87323 Bug 1626388 - Convert layout.testing.overlay-scrollbars.always-visible to static pref. r=njn
Converts `layout.testing.overlay-scrollbars.always-visible` to a static pref.

Differential Revision: https://phabricator.services.mozilla.com/D69611

--HG--
extra : moz-landing-system : lando
2020-04-06 20:18:58 +00:00
Kristen Wright d433a32b2d Bug 1626388 - Convert two prefs in nsDocumentViewer to static pref r=njn
Converts `dom.disable_beforeunload` and `dom.require_user_interaction_for_beforeunload` to static pref.

Differential Revision: https://phabricator.services.mozilla.com/D69600

--HG--
extra : moz-landing-system : lando
2020-04-06 19:57:01 +00:00
Kristen Wright 37d15858db Bug 1626388 - Convert layout.framevisibility.enabled to a static pref r=njn
Converts `layout.framevisibility.enabled` to a static pref.

Differential Revision: https://phabricator.services.mozilla.com/D69598

--HG--
extra : moz-landing-system : lando
2020-04-06 19:55:07 +00:00
Logan Smyth 3f76247abc Bug 1598309 - Part 2: Avoid leaking memory for sourcemap loading. r=jlast
Depends on D69930

Differential Revision: https://phabricator.services.mozilla.com/D69931

--HG--
extra : moz-landing-system : lando
2020-04-07 17:06:15 +00:00
Logan Smyth 083033cd6c Bug 1598309 - Part 1: Update bundles with recent Boolean changes. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D69930

--HG--
extra : moz-landing-system : lando
2020-04-07 17:06:38 +00:00
David Major 8aae4415b9 Bug 1628036 - Use linux64-binutils in the mac instrumented build r=glandium
This is needed so we have a workable ld for building host libraries. Prior to my patch in bug 1326486, we had been getting an ld in the clang package by accident, since 1-stage builds had the wrong value of `is_final_stage` here: https://searchfox.org/mozilla-central/rev/4d2a9d5dc8f0e65807ee66e2b04c64596c643b7a/build/build-clang/build-clang.py#162-170

Since the build-clang comment says "we expect any consumers of the newly-built toolchain to provide an appropriate ld themselves", I'm doing so in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D70054

--HG--
extra : moz-landing-system : lando
2020-04-07 22:34:40 +00:00
Mike Hommey 4e228dc5f5 Bug 1627873 - Always unbuffer python output when invoking python commands from mach. r=firefox-build-system-reviewers,rstewart
When the build is stalled for some random reason, and mach executed a
python subcommand (this may or may not be limited to python 3, I'm not
sure, and it doesn't really matter since it's a problem on python 3,
which matters most), the subcommand may not have actually sent its last
bits of output before the stall because its output is a pipe and in that
case python uses buffered outputs.

Now, when your build is completely stalled and you ctrl+C, you end up
without these bits of output, and in some cases, those bits of output
can contain actual information, like... tracebacks.

A real life example of this is bug 1624670 when running mach build or
mach configure with the patches from bug 1627163 applied, and configure
stalls without printing out the ValueError message at all.

Differential Revision: https://phabricator.services.mozilla.com/D69925

--HG--
extra : moz-landing-system : lando
2020-04-07 15:52:00 +00:00
Mike Hommey a83c3a6e86 Bug 1624670 - Cap ProcessPoolExecutor's max_workers to 60 on Windows. r=firefox-build-system-reviewers,rstewart
See https://bugs.python.org/issue26903#msg365886.

Differential Revision: https://phabricator.services.mozilla.com/D69921

--HG--
extra : moz-landing-system : lando
2020-04-07 15:55:09 +00:00
Logan Smyth d256d771ed Bug 1607559 - Part 2: Avoid perf issue with data: URLs for inlined source-maps. r=jlast
Depends on D69933

Differential Revision: https://phabricator.services.mozilla.com/D69934

--HG--
extra : moz-landing-system : lando
2020-04-07 17:06:56 +00:00
Logan Smyth b8acb33b40 Bug 1607559 - Part 1: Do not replace the global URL with whatwg-url. r=jlast
By loading whatwg-url like this, we replace the worker global URL property
(among others), which means that code that uses `URL` and expects it to be the
version that is built into Firefox may not get what they expect.

Differential Revision: https://phabricator.services.mozilla.com/D69933

--HG--
extra : moz-landing-system : lando
2020-04-07 16:46:37 +00:00
Razvan Maries 95bcfbaafd Backed out changeset 32871d284eef (bug 1622978) for perma failures on test_distribution.js. CLOSED TREE 2020-04-08 02:34:51 +03:00
Scott 6d42c8f893 Bug 1627317 - Ensure collections are also disabled, if newtab stories are disabled. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D69609

--HG--
extra : moz-landing-system : lando
2020-04-06 21:43:31 +00:00
Stefan Hindli 3b135390cf Backed out changeset 717f97c0d871 (bug 1611310) for causing mass build bustages CLOSED TREE 2020-04-08 01:46:32 +03:00