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

586051 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 5083c84c88 Bug 1445662 - Ensure ZoomToRect runs on the controller thread. r=rhunt
Currently the ZoomToRect function is only ever called on Android, on the
UI process main thread, which is neither the controller nor the sampler
thread. Instead of allowing "random" threads to run inside APZ, we
ensure that callers run it on the controller thread.
2018-03-15 15:25:10 -04:00
Kartikaya Gupta bb580f89fa Bug 1445662 - Ensure UpdateZoomConstraints runs on the sampler thread. r=rhunt
Without this patch, UpdateZoomConstraints can get called on:
a) the compositor/sampler thread (over PAPZCTreeManager)
b) the controller thread which is also the UI process main thread (on
   desktop platforms without a GPU process)
c) the UI process main thread when it's *not* the controller thread (on
   Android).
Instead of having to reason about all these scenarios separately, we can
try to unify them a little bit by ensuring the function contents always
run on the sampler thread, which is the thread that seems to make the
most sense for it.
2018-03-15 15:25:10 -04:00
Kartikaya Gupta cfbe8bb66a Bug 1445662 - Assert that IAPZCTreeManager's helper methods are always on the controller thread. r=rhunt
These two functions (UpdateWheelTransaction and ProcessUnhandledEvent)
are only ever called on the concrete APZCTreeManager when the APZ code
is living in the GPU process. This is because the calls are made by the
IAPZCTreeManager implementation which lives in the UI process, and
remoted over PAPZCTreeManager. So the assertion is safe, and will help
us guard against inadvertent breakage when we try making a different
thread the controller thread in the GPU process.

In addition, the WillHandleInput function can be called in the GPU
process on the compositor thread, but we will allow it to be called on
the main thread as well. In that case we need to ensure we don't try
running EventStateManager pref-reading code in the GPU process, and
instead preserve the current behaviour of just returning true.
2018-03-15 15:25:10 -04:00
Kartikaya Gupta 323f2093f0 Bug 1445662 - Remove ProcessTouchVelocity from PAPZCTreeManager.ipdl. r=rhunt
This function is never actually called over IPDL. It is called directly
on the concrete APZCTreeManager instance by the
AndroidDynamicToolbarAnimator code, both of which live in the
compositor. So we don't need to expose this method on IAPZCTreeManager
or over PAPZCTreeManager.
2018-03-15 15:25:09 -04:00
Kartikaya Gupta 9ab9425d9f Bug 1445662 - Make the DPI non-static and bound to the controller thread. r=rhunt
Since we can have multiple browser windows on multiple different
displays with different DPIs, it doesn't make sense to have a single
static DPI value shared across all APZCTreeManagers. Instead, each
APZCTM should store its own DPI value for the display the window is on.
Since the DPI is only ever read from the controller thread, we can make
it bound to that thread, and update the setter code to also set it on
that thread.

As with the previous patch, the change in APZCTreeManagerParent is a
no-op but allows making some other thread in the GPU process the controller
thread. And the change in nsBaseWidget is a no-op everywhere except
Android.
2018-03-15 15:25:09 -04:00
Kartikaya Gupta d59c0946db Bug 1445662 - Ensure the keyboard map access is threadsafe. r=rhunt
- The change in APZCTreeManagerParent is functionally a no-op because it
  only ever runs in the GPU process on the controller thread. But it
  allows moving the controller thread to some other thread.
- The change in nsBaseWidget is a no-op for desktop platforms, because
  in the UI process the main thread is the controller thread. But on
  Android it moves the call from the main thread to the Java UI thread.
2018-03-15 15:25:08 -04:00
Gijs Kruitbosch 58ea959557 No bug, update documentation of nsAboutRedirector.cpp that was outdated, rs=Mossop 2018-03-15 18:20:02 +00:00
Noemi Erli 6e96a3f1e4 Merge autoland to mozilla-central. a=merge 2018-03-15 19:38:46 +02:00
Dão Gottwald e8799dff1d Bug 1445949 - updateCurrentBrowser cleanup. r=mconley 2018-03-15 15:14:53 +01:00
Dão Gottwald 28fed2662a Bug 1445948 - Use gMultiProcessBrowser in gBrowser.init. r=mconley 2018-03-15 15:13:21 +01:00
Andrea Marchesini 5050d63343 Bug 1445894 - Move serviceworkers gtest into dom/serviceworkers/test, r=catalinb
--HG--
rename : dom/workers/test/gtest/TestReadWrite.cpp => dom/serviceworkers/test/gtest/TestReadWrite.cpp
rename : dom/workers/test/gtest/moz.build => dom/serviceworkers/test/gtest/moz.build
2018-03-15 14:46:03 +01:00
Masayuki Nakano 4a54352ab1 Bug 1445935 - HTMLEditRules::SplitMailCites() remove left node of split node if it becomes empty r=m_kato
Before bug 1413181, HTMLEditRules::SplitMailCites() receives left node of
split node with |leftCite| from SplitNodeDeep().  However, the out argument
was removed by the bug and now, it can be retrieved with
SplitNodeResult::GetPreviousNode().  Its result is used for creating <br>
element etc, but not set to |leftCite| but HTMLEditRules::SplitMailCites()
still checks if |leftCite| is empty to remove it from the DOM tree.

So, now, both |leftCite| and |rightCite| are not necessary and
HTMLEditRules::SplitMailCites() should use |previousNodeOfSplitPoint|
instead of |leftCite|.

MozReview-Commit-ID: 408MJt6X1IV

--HG--
extra : rebase_source : fa6095ccc972d33afe8deb0f124adffea7371f4e
2018-03-15 22:34:57 +09:00
Glenn Watson 3c3fe611d7 servo: Merge #20311 - Update WR (local clip API change, texture cache optimizations) (from glennw:update-wr-pic); r=mbrubeck
Update WR (local clip API change, texture cache optimizations).

Source-Repo: https://github.com/servo/servo
Source-Revision: 57b12aaaaf61ad02006014465ed2c93c7ecb1e77

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 50170d6496ac9fc002e86f33c9f0173465ad190a
2018-03-15 22:19:31 -04:00
Dão Gottwald 114738a496 Bug 1443937 - Make the autoscroll popup explicitly consume outside clicks. r=enn 2018-03-15 13:14:50 +01:00
Dão Gottwald 80e97e4bf5 Bug 1443462 - Copy default browser attributes from the initial browser to dynamically created ones. r=mconley
MozReview-Commit-ID: DGy6W2w75Y2

--HG--
extra : rebase_source : 58d2014b00780b1b8839e0ed847582f5e52896b7
2018-03-15 12:25:35 +01:00
Andrea Marchesini 37ecc8fc55 Bug 1445681 - EventSource::close must do a sync call to CloseInternal, r=smaug 2018-03-15 11:16:04 +01:00
Nicolas Silva b3fa768783 Bug 1437032 - Rely on WebRender to pixel snap gradients instead of doing it when building the display list. r=mstange
To correctly apply pixel snapping during display list construction we would need to snap each tile of a repeated gradient individually. It's preferrable to do this in WebRender rather than decompose gradients into many display items.
2018-03-15 11:54:35 +01:00
Andrew Osmond a53f4da6d7 Bug 1445802 - Disable broken asserts to unbreak Windows QR mda tests. r=aosmond 2018-03-15 06:42:19 -04:00
Emilio Cobos Álvarez bfce521488 Bug 1439875: Fix extension windows. r=kmag
Now we're loading the sizemode attribute earlier, doing this on load stops
working.

MozReview-Commit-ID: ToiJiYrvFw

--HG--
extra : rebase_source : 48ad80e5535ecc5f7c8c8297f417f797deddc017
extra : source : 80194b5bf0e7bbcccf727d2fec140e747ebd0949
extra : histedit_source : 2b7755fece2a564fc806369280559c8829d3d486
2018-03-15 21:21:33 +11:00
Emilio Cobos Álvarez 3256e9aa31 Bug 1439875: Flag chevron.svg as intermittently shown on windows. r=johannh
MozReview-Commit-ID: 7gJvF00WDgR

--HG--
extra : rebase_source : 50c250c56941333ba753760ef6b2dcf1e3572ce8
extra : source : bd74c58f27f5cc8b8b7c2b3c43ebd275c76ec9ac
extra : histedit_source : 651580da8005a3ed4fded7171a617a2093df042c
2018-03-15 21:21:33 +11:00
Emilio Cobos Álvarez 97e085269a Bug 1439875: Update browser_windowopen_flicker.js. r=florian
To avoid hacking around the empty window, and handle the activation issue seen
on Windows / OSX.

MozReview-Commit-ID: oK3T8FKd5n

--HG--
extra : rebase_source : 4d1ed1bae673b3b0e533d7c66303a3cf995fda8b
extra : source : 461021b4bf3ab189babba096584682b2469ce9df
extra : histedit_source : eaa97d93bb4e100e1410471b19585ac125bd828d
2018-03-15 21:21:33 +11:00
Emilio Cobos Álvarez e022841fa9 Bug 1439875: Update browser_windowopen_reflows.js to not wait for a resize that no longer exists. r=florian
MozReview-Commit-ID: Jln9ejZh2b6

--HG--
extra : rebase_source : 7e3eafa77fae784433dffc80ad20dd02a55f1141
extra : source : 8793a244abce5dab717769cbec698a6ece9c28c5
extra : histedit_source : aad1c97c5fe726c1a4ddd35b43aec7224c7e601c
2018-03-15 21:21:33 +11:00
Emilio Cobos Álvarez 3beb2dc514 Bug 1439875: Fire MozBeforeInitialXULLayout before sizing the window. r=florian,smaug
This gives the chance to code that relies on setting the XUL window attributes
to run before we actually size the window.

This should prevent the resizing on OSX and fix some other untested stuff that
the first commit probably broke...

MozReview-Commit-ID: DhCWgmCppek

--HG--
extra : rebase_source : 253bea4c4e90727c0e8cce4726bf7a695ca26d9d
extra : source : 4d6f855ea529f6043b3ca886f53901e16a3d6405
extra : histedit_source : b0aa76063dca7a85e43b3bf670aab8f185a57915%2C760885a660c4fd92e7ae777614ad3cdc84dc9b31
2018-03-15 21:19:50 +11:00
Emilio Cobos Álvarez c41e281661 Bug 1439875: Size the XUL window before doing layout. r=smaug
The only subtle thing is the mCenterAfterLoad stuff, which is gated after a
mChromeLoaded.

Other than that it follows the same pattern as bug 345560.

MozReview-Commit-ID: 8qDiA2yn9DB

--HG--
extra : rebase_source : 8ad309e3f449cea1536bfbff8e8b1585fefbc186
extra : source : f582644f846cee16b554d694d24b4eb8ca3c5106
2018-03-15 21:19:50 +11:00
shindli b5ff200fa2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-15 12:18:31 +02:00
shindli 9bfc016707 Merge inbound to mozilla-central. a=merge 2018-03-15 12:15:17 +02:00
Jan de Mooij 3a631decc0 Bug 1445610 - Clean up some enums in Value.h. r=jwalden 2018-03-15 10:38:59 +01:00
sotaro 0cc1972d14 Bug 1432039 - Improve assumption of content process's back-end prefs r=jrmuizel 2018-03-15 14:48:54 +09:00
Kris Maglione 853856ff98 Bug 1445537: Follow-up: Add test. r=aswan
MozReview-Commit-ID: 8rDoqbPfnrS

--HG--
extra : rebase_source : ceee3287ffcfc2d1fea70d91c8686a9d0de3ec16
2018-03-14 21:43:11 -07:00
Kris Maglione a4d72e2a38 Bug 1445551: Follow-up: Fix typo. r=emk DONTBUILD
MozReview-Commit-ID: BDJD4SvrIX9
2018-03-15 21:57:28 -07:00
Yuki Hiroshi 6f6e95b2d4 Bug 1440573 - Policy: Disable safe mode. r=jimm,felipe
This policy disables the safe-mode UI entry points. In addition, only on Windows when using GPO, it also disables entering Safe Mode by holding down the Shift Key
2018-03-15 23:06:22 -03:00
Brindusan Cristian ed15f7d5a4 Backed out changeset 83dffebb1536 (bug 1440573) for bc failures on browser_policy_disable_safemode.js CLOSED TREE 2018-03-16 05:15:39 +02:00
Ekanan Ketunuti 603ddf6b44 Bug 1445841 - Add words to en-US dictionary. r=ehsan 2018-03-15 08:47:36 +07:00
Kris Maglione b33f7da261 Bug 1445537: Track frameloader swaps when monitoring for channel disconnections. r=aswan
When we swap <browser> frameloaders, the message managers on the parent side
also change. And since a frameloader swap is usually followed by the original
<browser> and its message manager being destroyed, this leads us to think the
message manager has disconnected earlier than it actually does.

MozReview-Commit-ID: LC9aaoynWzH

--HG--
extra : rebase_source : 7fdcd78d12bad8898a6219ee799f64e15427e189
2018-03-14 15:44:08 -07:00
Phil Ringnalda 0bf2d49044 Bug 1369411 followup, redisable test_bug394057.html on Android, where it still fails, on a CLOSED TREE 2018-03-14 19:45:09 -07:00
Ryan VanderMeulen 7fcc589a8c Bug 1445834 - Skip css/CSS2/borders web-platform-tests on Linux32 opt due to frequent failures on a CLOSED TREE.
--HG--
extra : amend_source : d3912fab7f663816d33873e55f61315452e294a9
2018-03-14 20:41:01 -04:00
Ryan VanderMeulen 0007daf65b Backed out changeset 1ec0f839a905 (bug 1086964) for mass Win7 debug test failures. 2018-03-14 20:35:43 -04:00
Peter Bacalso 0445cb7bdd Bug 1443292 - Move TouchBehaviorFlags from APZUtils.h to LayersTypes.h. r=botond
--HG--
extra : rebase_source : 2b4b07718222f65d8e30342b6f52eec114358318
extra : amend_source : b4fe1d0570f7f8c19f545504cd6a33fe3345d476
2018-03-14 18:18:27 -04:00
Tim Nguyen f74cd699cc Bug 1445100 - Remove pageReport property from browser binding. r=Paolo 2018-03-15 17:56:48 +00:00
Noemi Erli 4472289127 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-03-15 19:43:12 +02:00
J.C. Jones 7c82a66a30 Bug 1445731 - land NSS f0d4789c8916 UPGRADE_NSS_RELEASE, r=me
--HG--
extra : rebase_source : e5f6d2e5e607bc624847e5b95904be2901832368
2018-03-15 09:00:48 -07:00
Emilio Cobos Álvarez 2738470e2b Bug 474655: Add a deprecation warning + use counter to GetPropertyCSSValue. r=bholley
The use counter comes built-in with the DeprecatedOperationList stuff.

MozReview-Commit-ID: 9Opag1NMp32
2018-03-15 18:22:32 +01:00
Emilio Cobos Álvarez 7536928a98 Bug 1445605: Make GetCSSFloatValue use GetPropertyValue instead of GetPropertyCSSValue. r=masayuki
We only use it for properties that return pixels anyway, so we can use it
without much problem.

This also fixes bug 1428974.

MozReview-Commit-ID: 5BbVOUdQT7o
2018-03-15 18:22:31 +01:00
Emilio Cobos Álvarez bf16aa2b2b Bug 1445599: Unbreak HTMLEditor::GetTemporaryStyleForFocusedPositionedElement, and make it stop using GetPropertyCSSValue. r=masayuki
MozReview-Commit-ID: 4cRQ8sJfT3a
2018-03-15 18:22:31 +01:00
Dragan Mladjenovic 5bd79d93b3 Bug 1445978 - [MIPS] Define ABINonVolatileReg. r=bbouvier 2018-03-15 13:20:35 -04:00
Kris Maglione 62cdcecdd3 Bug 1445780: Part 2 - Remove CPOW usage in WebExtension tests. r=aswan
MozReview-Commit-ID: I27tO3K1E9r

--HG--
extra : rebase_source : 254a5d1482d0594269aaadae225499e83703c8ba
2018-03-14 15:08:52 -07:00
Kris Maglione ef176184cb Bug 1445780: Part 1 - Allow synthesizeMouse to accept an array of selectors for content in iframes. r=aswan
MozReview-Commit-ID: JCRagaqkkZ6

--HG--
extra : rebase_source : 81d1bd14030b41196c951512c26025e2cf0db9ac
2018-03-14 15:08:34 -07:00
Jan-Erik Rediger 62ae352d87 Bug 1436786 - Link to DTMO from main Telemetry documentation. r=gfritzsche 2018-03-14 16:52:40 +01:00
Steve Fink 1eee4cf5bc Bug 1444335 - Nursery allocation is not infallible, even right after collecting the nursery, r=jonco
--HG--
extra : rebase_source : 95507e2e88124f951c41bae71b0212d8547cf152
2018-03-14 10:51:53 -07:00
James Willcox 1738c4b66f No bug, fix the GeckoView docs build, r=me and DONTBUILD
MozReview-Commit-ID: 895PZCZWWVi
2018-03-15 11:59:40 -05:00