Commit Graph

571164 Commits

Author SHA1 Message Date
Botond Ballo
15d10c1b0d Bug 951793 - Obey overscroll-behavior for fling handoff. r=kats
MozReview-Commit-ID: 9i2AgmW3Inm

--HG--
extra : rebase_source : 429438b26c2ab0b75690f87bd6b9b0b9187a4567
2017-11-03 16:03:38 -04:00
Botond Ballo
2f514da8d8 Bug 951793 - Light refactoring to the fling handoff code. r=kats
Passing FlingHandoffState around as an in-out parameter was making
the next change (respecting overscroll-behavior) messy.

MozReview-Commit-ID: 4wuoll20Jt7

--HG--
extra : rebase_source : c5d843254a38196547119419d1a2ad1fd0f3ef09
2017-11-03 13:07:48 -04:00
Botond Ballo
d561386618 Bug 951793 - Obey overscroll-behavior for immediate scroll handoff. r=kats
MozReview-Commit-ID: JPJOK8A1PQ

--HG--
extra : rebase_source : 6603bb5e524bfb5cca5a9b4d23ebec2151d8bfb4
2017-10-20 19:16:44 -04:00
Botond Ballo
5d380ebb1c Bug 951793 - Add a few utility functions to expose the overscroll behavior in relevant places in APZ. r=kats
MozReview-Commit-ID: 4wFfUY5p6J5

--HG--
extra : rebase_source : 6e1e0fe0b3975bdd60b5cb13af950d74ea849d2f
2017-10-20 19:31:02 -04:00
Botond Ballo
69d3063396 Bug 951793 - Store the overscroll behavior in ScrollMetadata and propagate it to APZ. r=mstange
MozReview-Commit-ID: J7Vkd941QxK

--HG--
extra : rebase_source : f9d0f664f17f4efe34a21064cbbf259642fe3caf
2017-10-18 20:13:19 -04:00
Botond Ballo
8c642c4f86 Bug 951793 - Add overscroll-behavior attributes to ScrollbarStyles. r=mstange
MozReview-Commit-ID: 7fksMZdDSrG

--HG--
extra : rebase_source : 05f2abc208016ce55bbf2c20c231ab638f0fee3d
2017-10-18 19:13:02 -04:00
Botond Ballo
3ff3395934 Bug 951793 - Style support for overscroll-behavior. r=heycam
MozReview-Commit-ID: IDAfBZy2D5p

--HG--
extra : rebase_source : d70820f9612174ffc8f17f1a2646dc65f46667df
2017-11-22 19:01:11 -05:00
Rob Wood
1073aa3855 Bug 1420070 - Fix talos pageloader manifest bug; r=ahal
MozReview-Commit-ID: BewhMkvwufI

--HG--
extra : rebase_source : becfa07c03035ae374f498a58c22f13fc9064120
2017-11-24 15:00:55 -05:00
Ciure Andrei
f8979ebb32 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-25 00:17:48 +02:00
Ciure Andrei
327405164b Merge inbound to mozilla-central r=merge a=merge 2017-11-25 00:04:02 +02:00
Ciure Andrei
fb2d7c830c Merge autoland to mozilla-central r=merge a=merge 2017-11-25 00:00:46 +02:00
ffxbld
b8d5e9b625 No bug, Automated HPKP preload list update from host bld-linux64-spot-034 - a=hpkp-update 2017-11-24 11:37:55 -08:00
ffxbld
1f4c6721e4 No bug, Automated HSTS preload list update from host bld-linux64-spot-034 - a=hsts-update 2017-11-24 11:37:51 -08:00
ffxbld
75089cd8b7 No bug, Automated HPKP preload list update from host bld-linux64-spot-030 - a=hpkp-update 2017-11-24 11:00:34 -08:00
ffxbld
a29abc7f7d No bug, Automated HSTS preload list update from host bld-linux64-spot-030 - a=hsts-update 2017-11-24 11:00:30 -08:00
dluca
85d0512151 Backed out 3 changesets (bug 1415478) for frequently asserting at dom/media/MediaDecoderStateMachine.cpp:1009 on a CLOSED TREE
Backed out changeset 447d895b350d (bug 1415478)
Backed out changeset d855c032c823 (bug 1415478)
Backed out changeset 6739012c4bdf (bug 1415478)
2017-11-24 18:50:53 +02:00
Nika Layzell
a124bfae77 Bug 1418465 - Add an opt-out to the MOZ_CAN_RUN_SCRIPT analysis, r=andi
MozReview-Commit-ID: 2YKncUdrT5p
2017-11-24 11:15:17 -05:00
Jon Coppeard
ee60cb5f24 Bug 1420412 - Move namespace related data to the module's namespace object r=anba 2017-11-24 15:52:22 +00:00
Jon Coppeard
613b2136ad Bug 1420412 - Use a single slot to store the module environment record r=anba 2017-11-24 15:52:22 +00:00
Coroiu Cristina
f0c46e835c Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-24 17:33:58 +02:00
Coroiu Cristina
4a590a5a15 Backed out 3 changesets (bug 1418141) for breaking Windows DMD builds r=backout a=backout
Backed out changeset 6cd9206792f9 (bug 1418141)
Backed out changeset 68e180048ca9 (bug 1418141)
Backed out changeset 01b97ef0de10 (bug 1418141)
2017-11-24 17:09:26 +02:00
Jan de Mooij
f767109b78 Bug 1420400 - Optimize/self-host Reflect.get. r=anba
--HG--
extra : rebase_source : de92809515383d0b5afb5937381dbdff683909e9
2017-11-24 15:58:51 +01:00
Anthony Ramine
ae458a6643 servo: Merge #19363 - Use GeckoMedia and only that on platforms that support it (from nox:canplaytype-warning); r=ferjm
Source-Repo: https://github.com/servo/servo
Source-Revision: 3907953d8099dacde06d2156ee906d6ac043760d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 358fb8014f85d51443be04bc3887d8ff7b455d44
2017-11-24 08:47:31 -06:00
Coroiu Cristina
7e35ee9f0e Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2017-11-24 17:30:51 +02:00
Kevin Jones
25bd05b91c Bug 1415918 - Allow discarding browsers that have beforeunload handlers in tabbrowser.discardBrowser. r=bz
MozReview-Commit-ID: 5KQcrOQTSpK
2017-11-24 15:14:46 +01:00
Nicolas Silva
ecd94ed690 Bug 1418347 - Use WebRender directly for common bullet items. r=mstange 2017-11-24 14:46:13 +01:00
arthur.iakab
dfc104159a Merge inbound to central r=merge a=merge 2017-11-24 12:00:30 +02:00
Mike Hommey
feda5d4e15 Bug 1420353 - Don't define replace_init through malloc_decls.h. r=njn
The definition for replace_init is only used in two places:
replace_malloc.h and mozjemalloc.cpp. Invoking the malloc_decls.h
machinery for just that one function is a lot of overhead, and things
are actually simpler doing the declaration directly, especially thanks
to the use of C++11 decltype to avoid duplication of the function
type.

This has the additional advantage that now malloc_decls.h only contains
the allocator API.

While here, replace the MOZ_WIDGET_ANDROID ifdef with ANDROID.

--HG--
extra : rebase_source : 50ddf044f43904575598f17bd4c3477fc1a1155f
2017-11-24 16:36:29 +09:00
Mike Hommey
32ecc64ada Bug 1420353 - Change how replace-malloc initializes, part 2. r=njn
Because one entry point is simpler than two, we make replace_init fulfil
both the roles of replace_init and replace_get_bridge.

Note this should be binary compatible with older replace-malloc
libraries, albeit not detecting their bridge (and with the
previous change, they do not register anyways). So loading older
replace-malloc libraries should do nothing, but not crash in awful ways.

--HG--
extra : rebase_source : aaf83e706ee34f45cfa75551a2f0998e5c5b8726
2017-11-24 16:02:05 +09:00
Brian Birtles
9500d45c75 Bug 1412765 - Enable dom.animations-api.pending-member.enabled by default; r=hiro
MozReview-Commit-ID: G1Uyff3Wh32

--HG--
extra : rebase_source : 53a4ce42dfee03512dd0153f069aab27169580d4
2017-11-24 10:54:12 +09:00
Brian Birtles
06e53a1793 Bug 1412765 - Update more tests to reflect changes to Animation.playState's r=hiro
return value; r?hiro

MozReview-Commit-ID: KvZa7EyzAKj

--HG--
extra : rebase_source : b7721bc34f246c36a22eb4f9acc3fba854dcdec8
2017-11-24 10:53:58 +09:00
Patrick Brosset
1439f404fa Bug 1405350 - Slightly rewrite, simplify and enable browser_webconsole_js_input_expansion.js; r=Honza
MozReview-Commit-ID: 3vpUl69Qk4w

--HG--
extra : rebase_source : c04c06b81181b2d7b08471f540d89894190db2be
2017-11-22 15:47:59 +01:00
Russell
b0fcec315e Bug 1419407 - remove Immutable usage in prefs reducer; r=nchevobbe
MozReview-Commit-ID: ADyu8ULDDm6

--HG--
extra : rebase_source : 7d48ef734ffe594eeca1efde8623679cf44022f8
2017-11-23 08:02:57 -08:00
Chris H-C
3b87e70f85 bug 1404343 - Document the "DEFAULTPREF_VALUE" policy for userPrefs r=Dexter
MozReview-Commit-ID: 4AMTgZGOZ3x

--HG--
extra : rebase_source : 3af58e7ea6ee1de8fcaadf2259de515201b069f2
2017-11-23 15:29:37 -05:00
peter chang
e28fd08cee Bug 1375424 - Enable the GPU time out mechanism for WR, r=sotaro
MozReview-Commit-ID: JlsODvvdQiJ

--HG--
extra : rebase_source : bab4170b1e47652e33c5395342490d992735d713
2017-11-24 14:27:00 +08:00
Edgar Chen
374cfaa39e Bug 1419643 - Don't need to lookup custom element definition for a non-custom element; r=smaug
MozReview-Commit-ID: 5zWna7LLJOd

--HG--
extra : rebase_source : 08ad093b3020d24223c951c331fe0a3af240bbfc
2017-11-24 00:16:00 +08:00
Petr Sumbera
51ab282079 Bug 1419725 - better handle termination for systems with ticks per second 100000 ;r=Yoric
Fixes Solaris where PR_TicksPerSecond() returns 100000.
2017-11-22 05:58:52 -08:00
Andrew Osmond
675137dd9f Bug 1419767 - Remove gfxPlatform::CanRenderContentToDataSurface. r=nical
Factory::DoesBackendSupportDataDrawtarget already fulfills the same
purpose and we should use that instead, as imgFrame is the only user of
the former API. It has the added bonus of allowing us to use shared
surfaces on Linux with WebRender, and using volatile surfaces on Windows
when D2D is disabled.
2017-11-24 08:10:03 -05:00
Mike Hommey
845f9c5d82 Bug 1420353 - Change how replace-malloc initializes, part 1. r=njn
The allocator API is a moving target, and every time we change it, the
surface for replace-malloc libraries grows. This causes some build
system problems, because of the tricks in replace_malloc.mk, which
require the full list of symbols.

Considering the above and the goal of moving some of the replace-malloc
libraries into mozglue, it becomes simpler to reduce the replace-malloc
exposure to the initialization functions.

So instead of the allocator poking into replace-malloc libraries for all
the functions, we expect their replace_init function to alter the table
of allocator functions it's passed to register its own functions.

This means replace-malloc implementations now need to copy the original
table, which is not a bad thing, as it allows function calls with one
level of indirection less. It also replace_init functions to not
actually register the replace-malloc functions in some cases, which will
be useful when linking some replace-malloc libraries into mozglue.

Note this is binary compatible with previously built replace-malloc
libraries, but because those libraries wouldn't update the function
table, they would stay disabled.

--HG--
extra : rebase_source : 2518f6ebe76b4c82359e98369de6a5a8c3ca9967
2017-11-22 17:24:29 +09:00
Kartikaya Gupta
dcc1822a45 Bug 1418387 - Find the appropriate scrollbar node in GetAPZCAtPointWR. r=botond
MozReview-Commit-ID: Fb4465Gaj7K

--HG--
extra : rebase_source : 647e617326d5e45dde0eb22b3ba9ac7cc03f7096
2017-11-24 16:23:06 -05:00
Kartikaya Gupta
c82aeb4865 Bug 1418387 - Add CompositorHitTestInfo bits for scrollbars. r=mstange
MozReview-Commit-ID: KTfpXoESOxF

--HG--
extra : rebase_source : d1db8909b1b075f885b08c86ebca7ef51fd250e0
2017-11-24 16:23:06 -05:00
Kartikaya Gupta
4f10904eb2 Bug 1418387 - Add missing tree lock. r=botond
This is follow-up to bug 1417519, to fix an incorrect change in that bug.

GetAPZCAtPointWR calls things like FindRootApzcForLayersId which require
the tree lock to be held, so we should hold it. It makes more sense to
hold the lock across the whole GetTargetAPZC function since we don't want
tree mutations to happen while we're in this function.

It also means we can't call GetTargetAPZC inside GetAPZCAtPointWR
because that will recursively try to pick up the tree lock; instead we
can use GetTargetNode and get the APZC from that.

MozReview-Commit-ID: 7ZXQMMes8hV

--HG--
extra : rebase_source : 1c9650e6fb720ef26daf63151cd1f6b144aa8ffb
2017-11-24 16:23:05 -05:00
Kartikaya Gupta
0fab36e756 Bug 1418387 - Propagate scrollbar direction for scrollbar containers to APZ. r=botond
Most of this patch is just mechanical changes, but note that this patch
now makes the mFlags in scrollbar-container nsDisplayOwnLayer instances
have one of the direction bits set. As a result, this requires changing
the implementation of nsDisplayOwnLayer::IsScrollThumbLayer().

MozReview-Commit-ID: 2BLdbpz5Sa8

--HG--
extra : rebase_source : 27e7d90ce60c7f702fe77d8a3a0f7e3ae3e4a4ff
2017-11-24 16:23:05 -05:00
Kartikaya Gupta
45a0aff526 Bug 1418387 - Make the nsDisplayOwnLayer flags more strongly typed. r=mstange
MozReview-Commit-ID: 8s14jKhp9Lb

--HG--
extra : rebase_source : be3c14215018bb1fa46a753b0746068b8454e92e
2017-11-24 16:23:04 -05:00
Kartikaya Gupta
b799d00298 Bug 1418387 - Fix bugs that C++ should really catch for us. r=botond
MozReview-Commit-ID: EZWPBruZXdv

--HG--
extra : rebase_source : 89e2ed062dab713e6853be275fb248197c7ced03
2017-11-24 16:23:03 -05:00
Emilio Cobos Álvarez
7c2ab483b0 servo: Merge #19367 - style: Make a Servo-only assertion apply to Gecko too (from emilio:gecko-assert); r=upsuper
Gecko passes it now, and we want to know if that ever changes.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8349be1b3e768b85fbb09ecb3dd4e9480a24f29e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2582aced86ba89e34fe59bef17af04c8fdb587a6
2017-11-24 14:51:46 -06:00
Brian Birtles
7ebdac8455 Bug 1412765 - Update tests in dom/animation/tests to use new pending member; r=hiro
MozReview-Commit-ID: 2PDm9NaXChg

--HG--
extra : rebase_source : 6a159137b7fd65a456f799b2323667de8f636542
2017-11-22 14:13:36 +09:00
Brian Birtles
c9eeea373e Bug 1412765 - Update web-platform-tests to test new pending member; r=hiro
Hopefully most of these changes are self-explanatory however a few notes follow.

* In timing-model/animations/play-states.html, as well as making the tests match
  the updated spec, one or two tests have also been moved to better reflect the
  order in the spec (to make it obvious which branch of the algorithm is being
  tested).

* In timing-model/animations/set-the-timeline-of-an-animation.html we previously
  had two tests that check:
  a) That the playState was 'pending' before and after setting the timeline.
  b) That the playState was 'pending' before setting the timeline and then,
     after setting the timeline and waiting on the ready promise, would become
     'running'.
  Likewise we had the same test for pausing.

  Since these are basically the same test--(b) just adds the wait on the ready
  promise--we combine them here into one test that covers both (a) and (b).

MozReview-Commit-ID: CLoDJvsdwmF

--HG--
extra : rebase_source : c2f34fa6614795f2d3ba9ca3e572f11306f96463
2017-11-21 17:12:01 +09:00
Brian Birtles
ea536c1426 Bug 1412765 - Move and rewrite playState.html test; r=hiro
Currently we have a test in interfaces/Animation/playState.html that somewhat
randomly tests the result of the `playState` member.

However, there's no complex logic associated with the `playState` member in the
IDL. It simply returns "The play state of this animation". The logic we need to
test is in the definition of 'play state' which is in the timing model.

As a result we move this test to timing-model/animations/play-states.html

However, this test as it stands does not test the calculation of the play state
in a particularly thorough manner. For example, it does not contain a single
test for the 'finished' state.

Given that this patch series will change the definition of the 'play state' we
first fix this test to cover each of the different cases in the definition of
the 'play state' prior to these changes. That is, we update the tests based on
the definition of 'play state' here:

  https://www.w3.org/TR/2016/WD-web-animations-1-20160913/#play-states

(Note that at this point in the patch series the pref to turn on the changed
definition behavior has not been enabled even for tests so this patch is
actually testing the behavior when that pref is false. We'll replace much of
this test in the next patch but by updating the test first, we should be able to
more clearly see the changes in the next patch.)

MozReview-Commit-ID: 1xkOmuY1SxD

--HG--
rename : testing/web-platform/tests/web-animations/interfaces/Animation/playState.html => testing/web-platform/tests/web-animations/timing-model/animations/play-states.html
extra : rebase_source : 1890e1b4db007452df393e8a9e4b3ccf42bca237
2017-11-21 17:11:51 +09:00
Brian Birtles
e83e1a5e71 Bug 1412765 - Add Animation.pending member; r=bz,hiro
This reflects the change made to the Web Animations specification in:

  9e2053f553
  1c3415f4cc
  (I got it wrong the first time. The second commit fixes the first.)

And discussed in:

  https://github.com/w3c/web-animations/issues/196

In summary, we are splitting the "pending" play state out into a separate
boolean member so that it is possible to distinguish between "play-pending" and
"pause-pending" and because most of the time when you check for
animation.playState === 'running' you also really want to include play-pending
animations.

MozReview-Commit-ID: IJSNoZTKW2I

--HG--
extra : rebase_source : 5d17239fd087cfe3cce1c9697eff97d062b6dd4b
2017-11-21 17:10:59 +09:00