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

585496 Коммитов

Автор SHA1 Сообщение Дата
Alex Gaynor f45434cdf0 Bug 1445249 - Part 3 - Make it an error to call IToplevelProtocol::OtherPid() on an unconnected protocol; r=jld
MozReview-Commit-ID: HAMXOYUeHoU

--HG--
extra : rebase_source : ffd8f90d4c63a05fb9c4004df2ed7f036a4edacd
2018-03-12 13:06:33 -04:00
Alex Gaynor 83b1d64e22 Bug 1445249 - Part 2 - avoid calling OtherPid() where it might return an invalid pid on android; r=jld
MozReview-Commit-ID: EXio3oNJy4U

--HG--
extra : rebase_source : a7fe96470b138bb8758c6b8683ba6ad029adb5a1
2018-03-13 12:54:35 -04:00
Alex Gaynor b5a231f297 Bug 1445249 - Part 1 - Remove unused aProcessId parameter when deleting shared memory; r=jld
MozReview-Commit-ID: Cn0q46Q67hd

--HG--
extra : rebase_source : 7f963216e3c73118ae761dc8aa961cb120255481
2018-03-13 10:07:18 -04:00
Bogdan Tara 587a636c14 Backed out changeset 3df355881aa0 (bug 1445386) for xpcshell failures on test_TelemetryScalars_buildFaster.js CLOSED TREE
--HG--
extra : amend_source : e6ce0a25d5ba6cfa5aec7e496637266def67f7c5
2018-03-13 22:33:14 +02:00
Kartikaya Gupta ba2e0d2759 Bug 1445412 - Fix typo resulting in compilation error. r=njn
MozReview-Commit-ID: 6Rtl4mtRirZ

--HG--
extra : rebase_source : cb425e851b7f2a0c90bf0d275bf458ab525d4225
2018-03-13 15:57:53 -04:00
Jan Henning 5397936515 Bug 1416169 - Part 4 - Switch the MediaControlService to running only on demand. r=snorp
Now that the AudioFocusAgent keeps monitoring all relevant tab events and
notifies the MediaControlService as necessary, we can revert to only running the
service when actually required to show the notification and keep us alive during
(background) media playback.

MozReview-Commit-ID: KV6ars2BbMW

--HG--
extra : rebase_source : 3d3681b960605c4c4e4caff0e96804b6b4770d7c
2018-03-11 12:50:22 +01:00
Jan Henning 8c5b7ccb59 Bug 1416169 - Part 3 - Resolve some lifecycle issues. r=snorp
We're not a bound service and the MediaSession is initialised during onCreate(),
so its release conversely needs to happen during onDestroy().
For consistency, we also move unregistering of the HeadSetStateReceiver into the
shutdown helper method.

Additionally, while things seem to have worked anyway in practice (possibly be-
cause we're only using the MediaSession within the same process?), technically
you're supposed to explicitly activate the session before using it.

MozReview-Commit-ID: 1HDva7p2ljF

--HG--
extra : rebase_source : b665d4d08b1a30898235ac3e1ffeab460fbb3b5b
2018-03-13 19:13:55 +01:00
Jan Henning 7d66dc5b22 Bug 1416169 - Part 2 - Move monitoring of Tab media events out of the MediaControlService. r=snorp
At the moment the MediaControlService is structured such that it is started
shortly after Firefox has launched. Then, it registers a Tab event listener and
starts listening for various, mainly media-related tab events, in response to
which the playback notification is then shown or hidden as appropriate.
This setup has the drawback that the service itself has to remain running all
the time, even when we're not actually showing the notification, so Firefox now
keeps showing up as a "Running service" even when in background and not doing
anything interesting.

It is however relatively easily possible to move the tab event tracking into a
different class that won't require a service to stay alive, and set the Media-
ControlService's state (and at the same time start it if necessary) through a
set of special intent actions.

As the AudioFocusAgent is
a) alive for the whole lifetime of the application and
b) already interacting with the MediaControlService,
we designate it as the class responsible for this.

MozReview-Commit-ID: 1CzBpC1LTuZ

--HG--
extra : rebase_source : ef846bc1c52cb55fb1dfcdf05f2705f92358244e
2018-03-10 18:38:32 +01:00
Jan Henning f424d96d19 Bug 1416169 - Part 1 - Silence StaticFieldLeak linter. r=snorp
In practice we've already been using the application context anyway, but this
way makes it more explicit.
With that out of the way, we can also silence the linter here, since the Static-
FieldLeak check is only really relevant when holding onto non-Application
contexts.

MozReview-Commit-ID: CYOs8MPnlcN

--HG--
extra : rebase_source : 5187034e3276b25f7871adb8f4a0ec1aeb25bd02
2018-03-11 13:06:25 +01:00
Jan Henning 8c4c88a15c Bug 1416169 - Part 0 - Cleanups. r=snorp
Fix some style inconsistencies, plus things Android Studio is complaining about.

MozReview-Commit-ID: BdO0UTTsidi

--HG--
extra : rebase_source : 7b7a6c6b2b5d1a43e5e69c03c7bb678087244553
2018-03-10 18:20:39 +01:00
Dão Gottwald 6a87ef97bf Bug 1445298 - Remove global nsIWebNavigation constant from browser.js. r=Felipe
MozReview-Commit-ID: 27NdHKNnyJa

--HG--
extra : rebase_source : 00706988f93942d7c4a5e7bd76fa92d3184c0cbe
2018-03-13 17:07:40 +01:00
Jan Beich b2c12ddb46 Bug 1445193 - Use notify-send on Tier3 platforms as well. r=gps
MozReview-Commit-ID: 4ONdrhqc6zf

--HG--
extra : rebase_source : 6773d64fb7dc3cfa56c148a9b455ac03e81b465d
2018-03-13 10:29:11 +00:00
Kartikaya Gupta 18fc026b3a Bug 1445019 - Use the compositing transform when checking for unused APZ transforms. r=botond
MozReview-Commit-ID: 1o1RANM3yxo

--HG--
extra : rebase_source : 1d05cda7c7677df58f8ce8f1a46d51498d52c734
2018-03-12 16:17:26 -04:00
J. Ryan Stinnett d2b1811744 Bug 1445386 - Use GreD for artifact build scalars. r=chutten
On macOS, the paths for the special directories `GreD` (Resources) vs. `GreBinD`
(MacOS) are different.  On other platforms, they are the same.

With scalar loading for artifact builds, we need to load a file from
`Resources`, so `GreD` should be used for this case.

MozReview-Commit-ID: 91JFwOISQCk

--HG--
extra : rebase_source : d94df1acc4c7b9d6fe217fb0621950eb2c53351d
2018-03-12 19:24:30 -05:00
Jan Henning 6c6b8aa3aa Bug 1402549 - Part 2 - Use something else to trigger session store activity. r=esawin
Instead of adding and immediately closing a tab, which carries the risk that we
catch a session store file that was written just in-between those two
operations (although part 1 means that we should be able to handle this safely
now), we just reload the current tab.

MozReview-Commit-ID: JbiH8rmbbwJ

--HG--
extra : rebase_source : 540ad903c3b1424b4603233044f5908cc7a09fea
2018-03-10 14:19:23 +01:00
Jan Henning 4285502395 Bug 1402549 - Part 1 - Assert number of saved tabs, too. r=esawin
MozReview-Commit-ID: DIfqQo3Fvlg

--HG--
extra : rebase_source : df104cf7d87ebdf5dec7ff708a6375dd8b75240f
2018-03-10 14:09:03 +01:00
Sylvestre Ledru 270e2db41d Bug 1445269 - Refresh tools/rewriting/ThirdPartyPaths.txt r=tjr
MozReview-Commit-ID: xui275DKni

--HG--
extra : rebase_source : 8df0979f7a286211f2947e4192fa3b11ec2ac387
2018-03-13 15:59:21 +01:00
Kartikaya Gupta 778e7fae97 Bug 1443792 - Remove direct access to AsyncPanZoomController from ContainerLayerComposite. r=botond
MozReview-Commit-ID: 7CiK7bzDcPW

--HG--
extra : rebase_source : 468e2c1e09fb03fdefc21262aeb93e7086eda50d
2018-03-12 16:06:38 -04:00
Kartikaya Gupta bb2e76ca71 Bug 1443792 - Remove direct access to AsyncPanZoomController from AsyncCompositionManager. r=botond
MozReview-Commit-ID: FA8XFOhy1wk

--HG--
extra : rebase_source : ad6085abeb2a43e5af73cfdbe575fc148c05785f
2018-03-12 16:06:38 -04:00
Kartikaya Gupta 86032d9307 Bug 1443792 - Tighten the equivalence between a layer being scrollable and having an APZC. r=botond
If we can assume that a layer being composited has an APZC at index i if and
only if the frame metrics at index i is scrollable, then we can do the
transformations in the next patch without any change in functionality.

MozReview-Commit-ID: FRkvhwdd3nh

--HG--
extra : rebase_source : f1bee292305730079b3208e447330028c1a40727
2018-03-12 16:06:37 -04:00
Kartikaya Gupta bfc7d9097f Bug 1443792 - Move ComputeTransformForScrollThumb to APZCTreeManager. r=botond
This makes more sense in APZCTreeManager, but is exposed back to
AsyncCompositionManager via APZSampler. This also makes the APZ code
better encapsulated since the method API exposed on APZSampler doesn't
need to take a AsyncPanZoomController; it can just take the
LayerMetricsWrapper instead.

MozReview-Commit-ID: 9yJJd3x8VhN

--HG--
extra : rebase_source : b6f81116183810df158d8cce72891bb2db458355
2018-03-12 16:06:37 -04:00
Kartikaya Gupta 9edc276575 Bug 1443792 - Move the SampleAPZAnimations function into APZSampler. r=botond
MozReview-Commit-ID: 2KIQ5A2J7m9

--HG--
extra : rebase_source : c3fa7b3ff696413552d8659796438fc67c6e7202
2018-03-12 16:06:37 -04:00
Sebastian Hengst 63c51237ff Bug 1443849 - Part 4: Fix broken tabbrowser.xml after merge conflict. CLOSED TREE 2018-03-13 20:23:49 +02:00
vprabhu 05d537471b Bug 1441495 - Removed signing support from mozharness. r=catlee
MozReview-Commit-ID: BNv6NUrE7gn

--HG--
extra : rebase_source : ea40827b4c6dd3f10700ac08e6e455834132880b
2018-03-03 09:11:57 +05:30
Sylvestre Ledru fd2808c467 Bug 1445245 - Add more directories in the codespell whitelist r=ahal
MozReview-Commit-ID: 5dLm1fus7J0

--HG--
extra : rebase_source : b8359df8fc65f3382f37b891f1bbf1ed5c58da1d
2018-03-13 14:50:20 +01:00
Tom Ritter 04cae16024 Bug 1444588 - Move LRUCache Initialization to startup rather than lazily. r=baku
Before, we would initialize LRUCache on the first instance of
calling the Timer Precision Reduction functions. We would both
allocate and initialize it, and call ClearOnShutdown.

ClearOnShutdown can only be called on the Main Thread, but it
just so happened that we always did that, so there was no
problem. Now that we are not calling precision reduction for
system callers, we were initializing on a non-main-thread and
we need to avoid that.

In the future, we could reduce memory use IF we are not using
the timer precision reduction functions by figuring out how
to initialize this lazily but still on the main thread. For
now, because we are using the timer precision reduction
functions, doing so would not save us any memory.

MozReview-Commit-ID: 6YGeAlCPReZ
2018-03-13 10:58:59 -07:00
Gijs Kruitbosch a55246c7fc Bug 1371888 - Stop having a sync IPC message to pass blocklist state, r=florian
Because plugin state in the content now contains blocklist state, and is updated
when the blocklist updates, we don't need to ask the parent if we're checking
blocklist state. All the consumers should now be asking the plugin code directly,
so we can stub out the last API here. We should look at removing the content side
of this service entirely, but that's something for a follow-up bug.

MozReview-Commit-ID: DE8s8RwT42r

--HG--
extra : rebase_source : 06fbc304e99679f55c7cdc52404cd138221feca3
2018-03-06 16:37:49 +00:00
Gijs Kruitbosch ca508d989b Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop
This changes the pluginreg.dat format to include the blocklist state.

There is now only the saved blocklist state in a plugin tag instance, rather than
looking it up from in there using the blocklist service, so it was renamed from
mCachedBlocklistState to mBlocklistState. We pass the 'right' state to the plugin
instance when the plugintag is constructed. If we don't have state, we mark it as
unblocked.

mCachedBlocklistStateChanged was never read so it's being removed.

Bug 1439519 adds a 'blocklist-loaded' notification that is fired once the blocklist is loaded.
The plugin host implementation will listen to this in the parent process and update the
blocklist state of all the plugins, and broadcast changes to the child process, just like when
we update the blocklist from the server. We now also avoid re-sending plugin content to the
content processes if the plugin state hasn't changed as a result of the blocklist having been
loaded.

Finally, because new plugins should still get an up-to-date blocklist state, and
telemetry should get up-to-date data about which plugins are and aren't enabled
once we have that data, we ensure that once we've loaded the blocklist async,
we schedule an idle task to parse it and consider it loaded.

All this means that plugin blocklist information could be mistaken between the points where
a new plugin is installed and we first run Firefox with the new plugin, and the point where
we load the blocklist. Given the trade-offs, that size of window (tiny) seems OK, also given
that there's already a much larger window in blocklist updates (which only happen once every 24h).

MozReview-Commit-ID: 1gsojRkUzTw

--HG--
extra : rebase_source : 4709916b4674ada54f8a495fd2d16fcef8c58d20
2018-02-20 16:53:48 +00:00
Dão Gottwald ff2e63c19e Bug 1445337 - Send Reader:PushState message to the correct browser. r=Gijs
MozReview-Commit-ID: HmNFGgCgRTc

--HG--
extra : rebase_source : 476bb2203e2825c9d995b42bdf7308628a2a1b69
2018-03-13 18:17:43 +01:00
Andreea Pavel 11bec2e097 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-13 19:26:13 +02:00
Andreea Pavel 8fa0b32c84 Merge mozilla-inbound to mozilla-cenral. a=merge 2018-03-13 19:01:32 +02:00
Nathan Froyd 2f491089d2 Bug 1340588 - enable clang-cl to generate depfiles directly, rather than using a wrapper; r=build-peer
We use a wrapper script when compiling with MSVC to parse the
/showIncludes output and thereby generate a Makefile dependency
fragment.  This fragment enables us to do correct and faster incremental
builds.  But the cost of invoking the wrapper script can be significant;
it's an extra process or two to launch for every single compilation.

Instead, let's have clang-cl generate the dependencies directly, which
should be somewhat faster.
2018-03-13 09:06:00 -05:00
Andreea Pavel 2c3aa80457 Backed out changeset 9e3a9fb7c903 (bug 1373708) for devtools failures at browser/base/content/test/static/browser_all_files_referenced.js and xpcshell failures at toolkit/mozapps/extensions/test/xpcshell/test_webextension_install.js on a CLOSED TREE 2018-03-13 15:46:12 +02:00
Nathan Froyd b9b5a1379d Bug 1444971 - fix diagnostic assert condition in ReadStream; r=baku
Using MOZ_DIAGNOSTIC_ASSERT_ENABLED here is a little clearer than
RELEASE_OR_BETA and makes disabling diagnostic assertions globally
easier.
2018-03-13 09:47:07 -04:00
Yura Zenevich 89b8270203 Bug 1438912 - by default, do not navigate to next node on ArrowRight key. r=nchevobbe
MozReview-Commit-ID: KQlHIA7pYAn
2018-03-13 09:39:46 -04:00
Andrew Osmond 26b8f527e1 Bug 1444387 - Part 2. Ensure we use NOT_READY for empty image containers with WebRender. r=jrmuizel
When we fail to generate an image key for an image, it is likely because
the image container is empty. This is not a fatal error, it just means
we haven't produced a frame yet. We should be using NOT_READY instead of
BAD_IMAGE as a result. This is important because reftests rely upon
these error codes to know whether or not they should wait; it could
cause intermittent failures.
2018-03-13 09:16:04 -04:00
Andrew Osmond fcec47e7bd Bug 1444387 - Part 1. Avoid using fallback if an image is not ready. r=jrmuizel
If an image container is empty, it will not produce an image key for use
with WebRender. This is generally not a sign of failure because the
producer likely has yet to populate the container with data. As such, we
should not immediately attempt to fallback. In fact, fallback can make
things worse in this situation, as we will create an image client to
send over the data, but then find that there is no data to share (or
find that there is, due to a race with the producer thread, and use
image clients when we could use shared surfaces).
2018-03-13 09:16:04 -04:00
Jon K c6c197da1e Bug 1441844 - Remove unused --chrome-nav-bar-separator-color variable. r=dao 2018-03-13 13:59:46 +01:00
Sebastian Hengst 431aba4b0e No bug - Fix eslint fix failures from conflict between new eslint rule and changes affecting inspector's animation tests. r=eslint-fix CLOSED TREE 2018-03-13 14:11:55 +02:00
Narcis Beleuzu b8322a1ce7 No bug - add back curly brace deleted during merge conflict. r=eslint-fix CLOSED TREE 2018-03-13 13:16:53 +02:00
Trisha 6969116605 Bug 1444054 - Replace promiseWaitForCondition with TestUtils.waitForCondition in browser_devices_get_user_media_screen.js. r=johannh 2018-03-13 00:14:30 +08:00
Trisha 50244b7020 Bug 1443866 - Use TestUtils.waitForCondition in browser_devices_get_user_media_multi_process.js. r=johannh 2018-03-13 16:02:55 +08:00
Edouard Oger eab36e5c7e Bug 1443593 - Remove FxA preferences from search results when FxA is disabled. r=markh
MozReview-Commit-ID: 3x5wuJLDVWN

--HG--
extra : rebase_source : ad164b45d57a0a477a74192e04ca994443b8588c
2018-03-09 14:36:59 -05:00
Mike Conley 62afea2749 Bug 1358719 - Add window resize reflow test. r=florian
MozReview-Commit-ID: 57mLswnXhC8

--HG--
extra : rebase_source : 136833da5984e9b2e5d150a497aad1d7eb632f5d
2018-03-07 13:29:25 -05:00
Liang-Heng Chen a25cefc942 Bug 1373708 - Convert Jar channels to stop using main thread I/O, r=nwgh 2018-03-01 08:12:00 +02:00
Narcis Beleuzu 298d1d55b5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
Emilio Cobos Álvarez de099db7bd Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
Summary: It uses two node bits that can be better suited for something else.

Reviewers: xidorn, smaug

Bug #: 1444905

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

MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Sylvestre Ledru 4d822b0f13 Bug 1437877 - Updater tests: Disable -Wformat-truncation until the reported issues are fixed r=glandium 2018-03-13 09:59:50 +01:00
Emilio Cobos Álvarez 5d0783a9b1 Bug 1443864: Apply size constraints on nsXULWindow too. r=bz
MozReview-Commit-ID: BwL4sEDlVKl
2018-03-13 09:06:08 +01:00
Emilio Cobos Álvarez 17f8b43bb3 Bug 1444908: Devirtualize nsIDocument::Get/SetXMLDeclaration. r=smaug
Summary: I missed these two.

Reviewers: smaug

Bug #: 1444908

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

MozReview-Commit-ID: 8JYhlQ9CiDz
2018-03-13 09:03:11 +01:00