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

585876 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta a7f18cd8d9 Bug 1445662 - Annotate remaining PAPZCTreeManager-invoked methods with threading constraints. r=rhunt
These methods are already guaranteed to be called on the controller
thread.

MozReview-Commit-ID: 4pfUZe6cI8e

--HG--
extra : rebase_source : 9ad24c0bb2e45bbd63e0a2febc14391e1a28f274
2018-03-14 16:57:52 -04:00
Kartikaya Gupta 186ffd08c7 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.

MozReview-Commit-ID: 64LkHaFLIOl

--HG--
extra : rebase_source : 61f397c0e18f83c68c228879692c9d4767b25675
2018-03-14 16:57:52 -04:00
Kartikaya Gupta 139ae9307f 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.

MozReview-Commit-ID: 8V4WTNtST3d

--HG--
extra : rebase_source : c4ebda75657d906d318acc07c174e8f3f634d18f
2018-03-14 16:57:42 -04:00
Kartikaya Gupta 43bc6e764c 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.

MozReview-Commit-ID: JFBX3NSXywn

--HG--
extra : rebase_source : 6718944034ec7b7223581e562aa59e9e79b54b53
2018-03-14 16:57:41 -04:00
Kartikaya Gupta 354719495e 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.

MozReview-Commit-ID: 6fEkJpDDvhl

--HG--
extra : rebase_source : cff9bb8fa43698950388b77f782b0b3fe6ec119b
2018-03-14 16:57:41 -04:00
Kartikaya Gupta 20e68959db 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.

MozReview-Commit-ID: CB23MxGISeL

--HG--
extra : rebase_source : b3358202ec5fa27422c56ae1b0b2237dbc8e489b
2018-03-14 16:57:41 -04:00
Kartikaya Gupta 73717e624e 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.

MozReview-Commit-ID: LVVZLFxSuyj

--HG--
extra : rebase_source : 89e9c8824c31867ad92152ff9b496744a6afdd83
2018-03-14 16:57:41 -04:00
Noemi Erli da9500ef7d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-15 19:44:05 +02:00
Noemi Erli 6e96a3f1e4 Merge autoland to mozilla-central. a=merge 2018-03-15 19:38:46 +02:00
Alex Gaynor 59aea7c021 Bug 1445958 - fixed a method name name in a comment; r=jrmuizel
MozReview-Commit-ID: DHvy0cufcXt

--HG--
extra : rebase_source : 025125a18f561f6fa4359eb49af29147d1d5900f
2018-03-15 10:31:28 -04:00
Josh Matthews 10133961e8 servo: Merge #20260 - Run automated test for memory report charter (from servo:jdm-patch-11); r=asajeffrey
No point in having tests if they don't get run.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1c7424d9206605e8a3dbf851b8d6900dfa4906b9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4d9aa12921f6fb5ed0e9f39c2ae8f1bca50b701d
2018-03-15 11:07:40 -04: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
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 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
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
Nicholas Nethercote 38dbedbf69 Bug 1445556 - Remove media.cubeb.sandbox from MediaPrefs. r=cpearce
Like the other media.cubeb.* prefs, it doesn't need to be a VarCache pref.

MozReview-Commit-ID: A2L8Tf3GAt

--HG--
extra : rebase_source : 86791123613c2f21e4a771c99cb079125495dec3
2018-03-14 16:53:47 +11:00
Nicholas Nethercote 91b9abd6e8 Bug 1445556 - Remove the media.playback.warnings-as-errors.stagefright-vs-rust pref. r=cpearce
It's unused.

MozReview-Commit-ID: 9SRWz8uj4wl

--HG--
extra : rebase_source : c36451b697959953cefb74ab7abfb46fdf0dcb5c
2018-03-14 16:11:44 +11:00
Nicholas Nethercote 112caaf2ed Bug 1445556 - Remove the media.rust.test_mode pref. r=cpearce
It's unused.

MozReview-Commit-ID: 4JDoKDxHqf6

--HG--
extra : rebase_source : 4d4d7578b18193f4969dfe8c39a3d0da5bd26e95
2018-03-14 15:58:46 +11:00
Andrea Marchesini 330807a747 Bug 1445554 - Remove the raw pointer WorkerPrivate from ServiceWorkerRegistrationImpl, r=catalinb 2018-03-15 08:57:05 +01:00
Andrea Marchesini 0f2dc46935 Bug 1445554 - Use of WorkerRef in ServiceWorkerRegistrationImpl, r=catalinb 2018-03-15 08:57:05 +01:00
Kris Maglione 4f1d6d3f42 Bug 1445551: Part 6 - Remove JSAddonId type and addonId compartment flag. r=mccr8
This compartment flag was only ever needed in order to track system-privileged
add-on code running under the compartment-per-addon system. That system, and
the legacy add-ons it supported, are gone.

WebExtension compartments have their add-on ID stored on their principal, and
are tracked in less obtrusive ways, so this code is no longer useful.

MozReview-Commit-ID: NVEd3Oawak

--HG--
extra : rebase_source : 31908a4daa5e7897ce165a5383110fb722391662
2018-03-13 21:02:34 -07:00
Kris Maglione 38156094a4 Bug 1445551: Part 5 - Remove add-on path service. r=aswan,mccr8
The path service was created to allow us to track resources that were part of
legacy add-ons, and to map URIs ponting to those resources to add-on IDs, so
that we could apply special behavior to them.

We have better ways to track resources belonging to WebExtensions, so this
code does not benefit them in any significant way.

The only remaining legacy extensions are system add-ons, which we control, and
do not need the path service in order to track.

MozReview-Commit-ID: BKXkcaM7jJx

--HG--
extra : rebase_source : c8cb0f7cec919b767bbcfe5433a6838523747676
2018-03-13 20:21:22 -07:00
Kris Maglione 83371fe0b5 Bug 1445551: Part 4 - Remove compartment-per-addon. r=mccr8
The compartment-per-addon code was added so that we could segregate at least
some of the code from system-privileged add-ons into tagged compartments, even
when it ran in browser windows. That allowed us to apply certain special
behavior to them, such as enabling e10s shims, and to track some performance
characteristics.

The only remaining chrome-privileged add-ons now are system add-ons controlled
by us, and the shim system and per-compartment performance metrics are gone,
it no longer serves a purpose.

MozReview-Commit-ID: Ap186bWAaqP

--HG--
extra : rebase_source : c5bf81b44dd42b7cebce2784b7dd98480b41b593
2018-03-13 19:43:30 -07:00
Kris Maglione 664bb69fcc Bug 1445551: Part 3 - Remove AllowCPOWsInAddon machinery. r=mccr8
This is all dead code now that the add-on manager support for shimmed add-ons
has been removed.

MozReview-Commit-ID: J6aRQDqEahs

--HG--
extra : rebase_source : 406d65b2a0be6340df6c28f42b38bd8a47b96b77
2018-03-13 19:20:17 -07:00
Kris Maglione 3bff085af2 Bug 1445551: Part 2 - Remove multiprocessCompatible flag. r=aswan
We no longer support legacy extensions with e10s shims, and the only remaining
uses that matter are in-tree test harnesses, which have been fixed. This flag
no longer serves a purpose.

MozReview-Commit-ID: EdCNqF4MttN

--HG--
extra : rebase_source : 0fef334354faa7541628614cb964a29faaa9df41
2018-03-13 19:02:42 -07:00
Kris Maglione ae3e671c55 Bug 1445551: Part 1c - Fix browser tests that attempt to use importGlobalProperties. r=mconley
When compartment-per-addon is disabled, browser mochitests will no longer
automatically run in an implicit Sandbox scope, which means that things like
Cu.importGlobalProperties will stop working.

MozReview-Commit-ID: AWloQ7gasEf

--HG--
extra : rebase_source : dacd0f8676dd3af60eeb372985e26d7850470e69
2018-03-13 18:18:27 -07:00
Kris Maglione 83957914cc Bug 1445551: Part 1b - Whitelist unsafe CPOW use in existing tests. r=mconley
MozReview-Commit-ID: 4ojwvjw9XGT

--HG--
extra : rebase_source : f7b79ad5998f1138266e89767ee1b434e4797b30
2018-03-14 14:35:05 -07:00
Kris Maglione 63ee0f9a5a Bug 1445551: Part 1a - Add uses-unsafe-cpows annotation to mochitest harness. r=mconley
This allows us to specifically whitelist browser mochitests which still rely
on unsafe CPOWs, and run them in a separate Sandbox global with permissive
CPOWs enabled.

The test harness and most of the in-tree tests will run with permissive CPOWs
disabled, like the rest of the browser.

MozReview-Commit-ID: CxIkuxr5PXJ

--HG--
extra : rebase_source : 897c951e5ea84db58e92c8b627679f029ebf4a42
2018-03-13 19:11:10 -07:00
Andreea Pavel 41ec48d989 Backed out 2 changesets (bug 1435373) for devtools failures at devtools/client/shared/test/browser_telemetry_button_eyedropper.js and devtools/client/inspector/rules/test/browser_rules_eyedropper.js and devtools/client/inspector/test/browser_inspector_highlighter-cssshape_04.js on a CLOSED TREE
Backed out changeset 195379cf14f0 (bug 1435373)
Backed out changeset 14a22276dc53 (bug 1435373)
2018-03-15 01:50:45 +02:00
Emilio Cobos Álvarez 02a0a55ecc Bug 1369411: Use a runnable instead of a timer for pref changes in nsPresContext. r=bholley
This should hopefully make pushPrefEnv able to deal with it.

I optimistically enabled Android too, pending a CI run.

MozReview-Commit-ID: 47C4q0lzIek
2018-03-14 23:33:21 +01:00