Commit Graph

620398 Commits

Author SHA1 Message Date
Ryan Hunt
1601a8bb80 Bug 1453425 - Add relative scroll offset updates using nsGkAtoms::relative. r=botond
This commit adds a scroll origin, nsGkAtoms::relative, which can be used to
mark main thread scrolling that can be combined with a concurrent APZ scroll.

The behavior of this is controlled by a pref, apz.relative-update. This pref
is initially activated and is intended as an aid to narrowing down causes
of regressions for users in bug reports.

Relative scroll updates work by tracking the last sent or accepted APZ
scroll offset. This is sent along with every FrameMetrics. Additionally,
a flag is added to FrameMetrics, mIsRelative, indicating whether the
scroll offset can be combined with a potential APZ scroll. When this
flag is set, AsyncPanZoomController will apply the delta between the sent
base scroll offset, and sent new scroll offset.

This flag is controlled by the last scroll origin on nsGfxScrollFrame. The
new origin, `relative`, is marked as being able to clobber APZ updates,
but can only be set if all scrolls since the last repaint request or
layers transaction have been relative.

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

--HG--
extra : rebase_source : 51351a84c9cda228a0975e22eda3fd3bd8d261c4
extra : histedit_source : 4b564c19b16fe2bd26adc671b62b7cb6106e8163
2018-10-09 23:24:28 -05:00
Ryan Hunt
d4c042f28a Bug 1453425 - Use ScrollByCSSPixels in relative scrolling DOM API's. r=botond
This commit changes `Window::ScrollBy` and `Element::ScrollBy` to use
ScrollByCSSPixels in preparation for marking ScrollByCSSPixels as a
relative scroll API.

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

--HG--
extra : rebase_source : fa82acc12395569bd332573718f8a8013ac20b60
extra : histedit_source : 7ac061e65a2522051ed73f3ba6349d5ea696e15f
2018-10-05 19:06:40 -05:00
Ryan Hunt
accd024b8f Bug 1453425 - Add RepaintRequest for use of FrameMetrics in repaint requests. r=botond
FrameMetrics is currently used in about three ways.
  1. Main thread to APZ transactions
  2. Storing information in AsyncPanZoomController
  3. APZ to main thread repaint requests

There's overlap in the use of fields in all these use cases, but it's not perfect. In a
following commit, I'd like to change the information used for (1) to support relative
scroll offset updates. This information isn't needed for (2) or (3), so it would be
good to refactor FrameMetrics out into these use cases.

This commit refactors out (3) as it is fairly easy to do. I'd like to refactor (2) out
as well, but that is trickier. I'd like to leave that for a future followup.

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

--HG--
extra : rebase_source : f0be2be24fce7d0f0ed25f6f3bfab5f7f2864f23
extra : source : fc9898a9ab28cee292e201ddaf757ee267179433
extra : histedit_source : 35415d3dc2c0ae0f269994c385cceff75f150020
2018-09-19 13:50:20 -05:00
Ryan Hunt
2e10c1c6cb Bug 1453425 - Remove mScrollPosAtLastPaint from nsGfxScrollFrame. r=botond
This field appears to be only ever used as a local variable, and can be removed.

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

--HG--
extra : rebase_source : 310057f703f4734ba9aef807100c5b5ff888da41
extra : histedit_source : 735d3f09bdb56d6eb386e2b5faffea1d769d97a1
2018-09-24 14:12:04 -05:00
Jeff Gilbert
d568b44c3c Bug 1478216 - Don't init tex images in FBAttachment::IsComplete. r=kvark
Also:
- Only init the base tex level for GenerateMipmap.
- Change ZeroTextureData warning into a perf warning.

Differential Revision: https://phabricator.services.mozilla.com/D9177
2018-10-24 15:59:11 -07:00
Mike Hommey
cd94fafb03 Bug 1492663 - Upgrade most CI builds to clang 7 r=froydnj
The cctools-port linker links against libraries from clang (for LTO),
which have different SONAMEs depending on the clang version. Which means
the linker needs to be used along the same version of clang it was built
against. Thus we also make it depend on linux64-clang-7.

But changing the dependency is not enough, cf. bug 1471905, so also
touch its build script, which it turns out, we need to do anyways
because llvm-dsymutil was renamed to dsymutil.

Relatedly, all toolchains that are built using cctools-port need to use
linux64-clang-7 too.

Building compiler-rt 7 with the OSX 10.11 SDK fails because of some
newer APIs being used in compiler-rt for xray, but this is not a feature
we use, so disable that.

Differential Revision: https://phabricator.services.mozilla.com/D6766
2018-10-25 07:38:35 +09:00
Mike Hommey
d99c6842d2 Bug 1498072 - Prevent inlining of the direct_run function. r=jfkthame
d2c1303345

Differential Revision: https://phabricator.services.mozilla.com/D8328
2018-10-25 07:38:22 +09:00
Gurzau Raul
08de11aa7a Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-25 01:04:19 +03:00
Gurzau Raul
2a5fa0a706 Merge autoland to mozilla-central. a=merge 2018-10-25 01:00:19 +03:00
Gurzau Raul
ff2bc5ca0b Backed out changeset 4b5b1ff23dd7 (bug 1372157) for failing at webgl-conf/generated/test_2_conformance2__vertex_arrays__vertex-array-object.html on a CLOSED TREE 2018-10-24 22:46:34 +03:00
Mark Banner
235e8fa384 Bug 1501662 - Various updates to .eslintignore for dom/, netwerk/, and modules/. r=mossop
Depends on D9661

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

--HG--
extra : moz-landing-system : lando
2018-10-24 19:12:31 +00:00
Mark Banner
a26105ff45 Bug 1501662 - Add more .eslintrc.js files for test directories (dom, modules, netwerk and parser). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D9661

--HG--
extra : moz-landing-system : lando
2018-10-24 19:11:17 +00:00
Botond Ballo
9379bf655d Bug 1493976 - Reset the resolution to 1 when entering fullscreen mode. r=kats,xidorn
The previous resolution is restored when exiting fullscreen mode.

Depends on D9442

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

--HG--
extra : moz-landing-system : lando
2018-10-24 19:20:05 +00:00
Botond Ballo
dc9473c8e5 Bug 1493976 - Define OutOfFlowDisplayData::ComputeVisibleRectForFrame() out of line. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D9442

--HG--
extra : moz-landing-system : lando
2018-10-24 19:19:06 +00:00
Jeff Gilbert
2d248faec6 Bug 1399501 - Make DestroySurface ignore null input. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D9597
2018-10-24 11:36:04 -07:00
Jeff Gilbert
1514c1a9f2 Bug 1399501 - MakeCurrent again in InitAndValidateGL. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D9290
2018-10-24 11:36:02 -07:00
Jeff Gilbert
97aa280fd2 Bug 1399501 - !MakeCurrent() should clear the current context. - r=kvark
Make MarkDestroyed call MakeCurrent(force=true) to clear the current
context also.

Differential Revision: https://phabricator.services.mozilla.com/D9289
2018-10-24 11:36:00 -07:00
Jeff Gilbert
e6ec78d63c Bug 1399501 - Don't allow glsl[130,400) unless we have gpu_shader5. - r=kvark
MozReview-Commit-ID: EUk2uc64Tok

Differential Revision: https://phabricator.services.mozilla.com/D9288
2018-10-24 11:35:58 -07:00
Jeff Gilbert
4f57ad7f07 Bug 1372157 - Fix IsFoo results in WebGL. r=kvark
Passes deqp/functional/gles3/lifetime.html.

Differential Revision: https://phabricator.services.mozilla.com/D8956
2018-10-24 11:30:58 -07:00
Botond Ballo
9405cbccaf Bug 1493742 - When accepting a layout viewport update from the main thread, constrain its position to enclose the visual viewport. r=kats
APZ wants the *size* of the layout viewport from the main thread, but it
knows the position better.

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

--HG--
extra : moz-landing-system : lando
2018-10-24 18:14:55 +00:00
Tom Prince
b62d70d3fb No bug: Fix yamllint error.
Due to https://github.com/adrienverge/yamllint/issues/141 we can't indent the
comments to the appropriate level.

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

--HG--
extra : moz-landing-system : lando
2018-10-24 19:03:18 +00:00
Bobby Holley
a60f34a042 Bug 1501518 - Crashtest. r=kvark 2018-10-24 11:09:02 -07:00
shindli
e36630f23c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-24 19:51:16 +03:00
shindli
670e412487 Merge inbound to mozilla-central. a=merge 2018-10-24 19:46:50 +03:00
shindli
a4777e77bd Merge autoland to mozilla-central. a=merge 2018-10-24 19:45:29 +03:00
Jan Henning
2619db4055 Bug 1500906 - Suppress FileUriExposedExceptions when launching helper apps. r=jchen
Sharing tabs with file:// URIs is not possible, but users can still send them to
other apps via the helper app system in the URL bar/context menu. "Intent:Open"
and "Intent:OpenForResult" are both sent from Gecko by HelperApps.jsm.

The same reasoning as in bug 1450449 applies as to why for publicly accessible
files content:// URIs are more trouble than they're worth.

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

--HG--
extra : moz-landing-system : lando
2018-10-24 16:00:06 +00:00
Csoregi Natalia
d45a83305b Bug 1488973 - Followup for eslint failure. CLOSED TREE
--HG--
extra : amend_source : 608437e414f153580a51c5b5b85b7478a8b11f60
2018-10-24 21:56:27 +03:00
Jeff Gilbert
7ec52f3de0 Bug 1501134 - Don't consider snorm compatible with unorm for CopyTexImage. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D9464

--HG--
extra : moz-landing-system : lando
2018-10-24 15:31:43 +00:00
Jason Orendorff
29e7d90fc3 Remove uses of MOZ_ALWAYS_INLINE in Stream.cpp. No bug, rs=till on IRC.
--HG--
extra : amend_source : a8c2fc853b496dae7983ceaca51156f0e85e8f99
2018-10-24 10:08:01 -05:00
Geoff Brown
15fa7a162e Bug 1501676 - Run "Android 7.0 x86" tests on more branches; r=jmaher 2018-10-24 10:33:02 -06:00
Geoff Brown
ad3740fe1b Bug 1494437 - Support timed screenshots in AndroidMixin; r=bc 2018-10-24 10:33:02 -06:00
Geoff Brown
fb3f42d379 Bug 1494437 - Support device screenshots in AndroidMixin; r=bc 2018-10-24 10:33:02 -06:00
Kannan Vijayan
19377c4ab8 Bug 1500255 - Handle objects with null prototype in stub-generator for oob array setelems. r=tcampbell 2018-10-24 12:16:32 -04:00
Andrea Marchesini
1f9d9c2fc3 Bug 1482055 - Cleanup old cookies at shutdown if network.cookie.lifetimePolicy is ACCEPT_SESSION, r=johannh 2018-10-24 17:48:17 +02:00
shindli
8f41a1294b Merge autoland to mozilla-central. a=merge 2018-10-24 16:26:39 +03:00
Gijs Kruitbosch
b4d8b02bc5 Bug 1491333 - make findbarClose test less clownshoes, r=florian
Differential Revision: https://phabricator.services.mozilla.com/D9633

--HG--
extra : moz-landing-system : lando
2018-10-24 13:18:00 +00:00
Margareta Eliza Balazs
72b1e834f3 Backed out changeset 02d8210b8904 (bug 1501353) on request from MarcoZ a=backout
--HG--
extra : source : 0fe678bdcf595a848a25f423825ac6387bd19f1b
2018-10-24 11:36:25 +03:00
shindli
04bbf8f449 Merge inbound to mozilla-central. a=merge 2018-10-24 12:45:48 +03:00
Nicolas Chevobbe
f21b4b826e Bug 1438979 - Fix browser_webconsole_network_messages_expand.js intermittent; r=Honza.
This is an attempt to fix the intermittent on this test.
It looks like we were setting the listeners on some events
after the request message was received, which might have
made us missed some events.
We take this bug as an opportunity to do some cleanup
on the test.

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

--HG--
extra : moz-landing-system : lando
2018-10-24 06:14:16 +00:00
Marco Zehe
c5581dfc0f Bug 1210630 - Section elements with accessible names should be mapped the same as ARIA role region, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D9480

--HG--
extra : moz-landing-system : lando
2018-10-24 05:34:22 +00:00
longsonr
34f04a3465 Bug 1501057 - Trivial clipPaths should respect visibility=hidden r=dholbert 2018-10-24 06:01:57 +01:00
arthur.iakab
468aa07e7a Merge mozilla-central to inbound 2018-10-24 07:17:50 +03:00
arthur.iakab
0d669cb499 Merge inbound to mozilla-central a=merge 2018-10-24 07:15:44 +03:00
Eliza Balazs
c80af964cd Bug 1453214 - Disable browser_inspector_highlighter-cssshape_04.js on linux. r=jmaher 2018-10-24 06:22:00 +03:00
Jon Coppeard
3a3ab022d2 Bug 1501154 - Disallow the empty string as a module specifier in the shell and improve error handling in js:🐚:FileAsString() r=bbouvier 2018-10-24 14:29:21 +01:00
shindli
09789471e1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-24 16:28:13 +03:00
Andrea Marchesini
3d69819234 Bug 1500455 - Let's use cookieBehavior = 4 in beta by default, r=ehsan 2018-10-24 15:24:32 +02:00
Marco Zehe
5104d78a7d Bug 1501353 - Change the exposed accessible role for a named region from region to landmark, r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D9554

--HG--
extra : moz-landing-system : lando
2018-10-24 00:34:21 +00:00
arthur.iakab
b54dfedae2 Merge mozilla-central to autoland 2018-10-24 07:17:07 +03:00
Andrew McCreight
9978e851df Bug 1492584, part 3 - Remove JS component loader registration. r=kmag
After the previous patches, we no longer rely on the component manager
to incidentally start up XPConnect when we load the JS loader service
or to hold the JS component loader alive, so the do_GetService() call
for the JS loader in XPCOMInit.cpp can be removed. After that is done,
the JS loader is no longer used as an XPCOM component, so all of the
boilerplate for that can be removed.

Depends on D8757

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

--HG--
extra : moz-landing-system : lando
2018-10-23 23:20:38 +00:00