Commit Graph

648950 Commits

Author SHA1 Message Date
Botond Ballo
32567fa488 Bug 1529892 - Move the clearing of a pending visual scroll update to the end of the paint. r=kats
The fixes a latent bug with WebRender where we would clear it after reading it
in ComputeScrollMetadata, but WR would sometimes call ComputeScrollMetadata a
second time for the same scroll frame in the same transaction, resulting in
the update sometimes not making it into the transaction.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 05:14:00 +00:00
Botond Ballo
990ed4ad66 Bug 1529892 - Limit the area of a fixed-position element that's painted to the displayport. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D28775

--HG--
extra : moz-landing-system : lando
2019-04-26 05:12:33 +00:00
Botond Ballo
798222c284 Bug 1529892 - Add a mochitest to check that the rendered area for a fixed-position element matches our expectations. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D28774

--HG--
extra : moz-landing-system : lando
2019-04-26 05:12:28 +00:00
Botond Ballo
d33987f123 Bug 1529892 - Extend APZTestData with free-form additional data not grouped by paint or scroll frame. r=kats,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D28773

--HG--
extra : moz-landing-system : lando
2019-04-26 05:10:44 +00:00
Botond Ballo
f250152f55 Bug 1529892 - Use zooming pref rather than platform ifdef in OutOfFlowDisplayData::ComputeVisibleRectForFrame(). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D28772

--HG--
extra : moz-landing-system : lando
2019-04-26 05:10:34 +00:00
Henrik Skupin
bb1110b6b8 Bug 1547074 - [raptor] Rename measure.js and benchmark-relay.js. r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D28896

--HG--
rename : testing/raptor/webext/raptor/benchmark-relay.js => testing/raptor/webext/raptor/benchmark.js
rename : testing/raptor/webext/raptor/measure.js => testing/raptor/webext/raptor/pageload.js
extra : moz-landing-system : lando
2019-04-26 05:13:42 +00:00
Andreea Pavel
adba763845 Bug 1538425 - disabled browser_tabswitchbetweenplugins.js on all platforms r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D28591

--HG--
extra : moz-landing-system : lando
2019-04-24 09:04:21 +00:00
Dorel Luca
b82106b756 Backed out changeset 8c4a85bb16bc (bug 1531894) for WPT failures in /webrtc/RTCPeerConnection-createDataChannel.html 2019-04-26 05:24:22 +03:00
Dorel Luca
41e7361f98 Backed out changeset c5d2d999a8ab (bug 1541450) for XPCShell failures in toolkit/components/cleardata/tests/unit/test_certs.js 2019-04-26 05:22:24 +03:00
Carolina Jimenez Gomez
e219a42b30 Bug 1541450 - Add a Certs cleaner and defines that object in FLAGS_MAP. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D27193

--HG--
extra : moz-landing-system : lando
2019-04-25 17:03:50 +00:00
Jonas Allmann
2fddbb5d45 Bug 1545415 - Remove new Function from parent_utils.js, r=MattN
Remove `new Function` from parent_utils.js and refactor affected code.
Remove parent_utils.js from eval()-whitelist.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 14:10:05 +00:00
Martin Stransky
290a5e07e8 Bug 1319838 - [Linux/Wayland/HiDPI] Use cairo_surface_set_device_scale() on HiDPI displays, r=lsalzman
When we draw on HiDPI display on Linux we scale the widget. On Wayland/HiDPI displays allow to set cairo_surface_set_device_scale() to draw
hi-res widgets by moz_gtk_widget_paint().

Depends on D28466

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

--HG--
extra : moz-landing-system : lando
2019-04-23 14:46:57 +00:00
Martin Stransky
a8d915f450 Bug 1319838 - [Linux/HiDPI] Set scale factor on styles created at WidgetStyleCache, r=jhorak
Call gtk_style_context_set_scale() on styles created by WidgetStyleCache module on Gtk 3.20+
Also modify moz_gtk_widget_paint_* routines to pass the scale info to CreateStyleContext()
from WidgetStyleCache.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 13:18:49 +00:00
violet
cd03f30677 Bug 1546636 - Should consider geometry box type r=longsonr
Geometry box was implemented long ago in Bug 1289011. But during some
refactoring, the existence of geometry box was overlooked. We add back
its support.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 19:56:15 +00:00
Tooru Fujisawa
56585dc81e Bug 1543843 - Add constructors to JSPropertySpec and inner structs/unions. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D27277

--HG--
extra : moz-landing-system : lando
2019-04-26 01:01:15 +00:00
Sebastian Streich
a2d3e618af Bug 1546913 - Remove GetLoadInfo callsites r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D27647

--HG--
extra : moz-landing-system : lando
2019-04-25 12:16:35 +00:00
diana.iacos
19d60ce7a3 Bug 1546889 - Refresh Settings layout if default browser was changed while in background; r=petru
Handle 2 specific edge-cases:
- The user presses to change default browser, when he returns to the app the
app settings button to do so should not be displayed anymore.
- With the app in background showing the app settings the user changes to a
different default browser. When resuming the app it should show the option to
set Fennec as default.
All this without otherwise requiring the user to close app settings and opening
them again.

Depends on D28831

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

--HG--
extra : moz-landing-system : lando
2019-04-25 13:59:49 +00:00
diana.iacos
8ed259ef67 Bug 1546889 - Update Default Browser toast message; r=petru,flod
Differential Revision: https://phabricator.services.mozilla.com/D28831

--HG--
extra : moz-landing-system : lando
2019-04-25 14:13:58 +00:00
Brian Birtles
46c5c2141a Bug 1536688 - Allow animating the 'all' property from Web Animations; r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D28763

--HG--
extra : moz-landing-system : lando
2019-04-26 00:47:40 +00:00
Emilio Cobos Álvarez
e67a519741 Bug 1546697 - followup: Fix a typo introduced in the last commit. r=a11y-orange 2019-04-26 02:29:04 +02:00
Emilio Cobos Álvarez
fcded20df5 Bug 1547138 - followup: Let the compiler generate more IntrinsicSize functions as suggested by TYLin. 2019-04-26 02:18:42 +02:00
Emilio Cobos Álvarez
11ea945833 Bug 1546697 - Use a consistent style for enum classes in layout. r=dholbert
Per the discussion in:

  https://groups.google.com/d/msg/mozilla.dev.platform/P79pwa9z5m8/iPYPAWPHCAAJ

They should be CamelCase, and that's what most of them already do. This converts
the rest, which are a few.

For the ones that already used `e` or `k` prefixes, I've mostly done:

 for file in $(rg Type::e layout | cut -d : -f 1 | sort | uniq); do sed -i 's#Type::e#Type::#g' $file; done

For the ones that used uppercase, I've removed the prefix if it was already in
the type name, and turn them into CamelCase.

Depends on D28680

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:03:04 +00:00
Emilio Cobos Álvarez
6159d9a874 Bug 1546697 - Make BaselineSharingGroup an enum class. r=dholbert
It looked a bit weird when mixed up with the other enum classes I'm about to
rename.

Depends on D28679

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

--HG--
extra : moz-landing-system : lando
2019-04-25 22:42:13 +00:00
Emilio Cobos Álvarez
c7aac206e4 Bug 1546697 - EnumeratedArray should have a copy assignment operator. r=froydnj
I'll use this in a following patch.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 16:40:47 +00:00
Emilio Cobos Álvarez
3e1e7ce302 Bug 1547138 - IntrinsicSize shouldn't use nsStyleCoord. r=dholbert
We have a better type to represent "a coord or nothing", and that's Maybe.

This code is shorter, and I think reads generally better / is less easy to
misuse.

I wrote this on top of bug 1547126 so there shouldn't be conflicts.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:48:14 +00:00
Will Hawkins
886fdd4434 Bug 1547087 - Fix arguments to PerformanceObserver.observe in wpt test
Per https://w3c.github.io/performance-timeline/#observe-method passing both entryTypes and buffer should result in a SyntaxError and the test seems to be intending to pass entryTypes only'

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:50:48 +00:00
Daniel Holbert
26a606eda1 Bug 1547126: Give nsIFrame::IntrinsicSize a convenience constructor that takes nscoord-valued width and height. r=TYLin
This patch shouldn't affect behavior; it's just simplifying existing code with
a new convenience constructor.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:44:53 +00:00
Mike Hommey
e12a4b2881 Bug 1546587 - Convert TestZip to a gtest. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D28759

--HG--
extra : moz-landing-system : lando
2019-04-25 23:41:50 +00:00
Mike Hommey
36b33e0796 Bug 1546587 - Include the TestZip zip files as binary data. r=froydnj
We're going to convert the test to a gtest, and it's simpler not to have
to deal with finding the path to the testcase zip files. They're small
enough anyways, and can be inserted as raw binary data via some assembly
magic. This being android-only code, we don't need extreme portability
here. This is the same trick we use in
config/external/icu/data/icudata_gas.S.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:41:47 +00:00
Mike Hommey
cf749be8f7 Bug 1546587 - Modernize loops in TestZip. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D28757

--HG--
extra : moz-landing-system : lando
2019-04-25 23:41:45 +00:00
Daniel Varga
46db25d004 Backed out 5 changesets (bug 1272409) for build bustage at /builds/worker/workspace/build/src/dom/base/nsGlobalWindowCommands. On a CLOSED TREE
Backed out changeset 2ad8260489d6 (bug 1272409)
Backed out changeset 224dad4cbdc3 (bug 1272409)
Backed out changeset 72775dbf35c8 (bug 1272409)
Backed out changeset c331a4a8b343 (bug 1272409)
Backed out changeset d817fbfc52b6 (bug 1272409)
2019-04-26 02:41:43 +03:00
Nathan Froyd
0eebba71e5 Bug 1540082 - add an aarch64-cross clang build; r=nalexander
Analogously to the existing `linux64-clang-8-android-cross` build, this
build is a linux x86-64 build with runtime library support for aarch64.

Depends on D28405

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

--HG--
extra : moz-landing-system : lando
2019-04-22 22:11:12 +00:00
Nathan Froyd
047805c859 Bug 1540082 - add support for extra runtime targets in build-clang.py; r=firefox-build-system-reviewers,chmanchester
This change enables us to build compiler-rt and related
libraries (e.g. address sanitizer, etc.) for whatever targets we like,
assuming that we have an accessible sysroot for the target on the build
machine.

Depends on D28404

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

--HG--
extra : moz-landing-system : lando
2019-04-23 19:45:06 +00:00
Nathan Froyd
f1626f7f7b Bug 1540082 - add a toolchain-arm64-build docker image; r=nalexander
We need this image for building clang on machines with arm64
sysroots.  (Note that this image *is* a linux x86-64 image, just with
some arm64 cross-compilation packages available.)

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

--HG--
extra : moz-landing-system : lando
2019-04-23 19:44:55 +00:00
Nathan Froyd
29df08bb6d Bug 1546136 - dump cmake logs on command failures; r=firefox-build-system-reviewers,chmanchester
CMake errors can be pretty opaque, especially if CMake is being run
inside the Ninja build process.  Let's try to surface those errors to
make problems easier to debug.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 19:44:55 +00:00
Geoff Brown
1932f0061c Bug 1547103 - Simplify android xpcshell minidump handling; r=jmaher
setupMinidumpDir is no longer called from anywhere.
The check for a crash directory makes sense for browser tests, but not
for xpcshell: in xpcshell, crash reporter does not create the directory --
the harness does.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 21:52:34 +00:00
Byron Campen [:bwc]
1963cd0a3a Bug 1531894: Throw TypeError if both maxRetransmits and maxPacketLifeTime are set, and re-enable test case. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D28252

--HG--
extra : moz-landing-system : lando
2019-04-25 20:59:45 +00:00
Andrea Marchesini
f8b91466be Bug 1545273 - User-Interaction required for trackers only for some urls, set in privacy.restrict3rdpartystorage.userInteractionRequiredForHosts, r=Ehsan
This patch fixes a bug about when the
privacy.restrict3rdpartystorage.userInteractionRequiredForHosts should be
considered.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 19:39:35 +00:00
Byron Campen [:bwc]
79f14c2299 Bug 1529595: Remove "token" from RTCIceCredentialType, re-enable a web-platform-test, and fix a mochitest. r=smaug,jib
Differential Revision: https://phabricator.services.mozilla.com/D28496

--HG--
extra : moz-landing-system : lando
2019-04-25 20:58:12 +00:00
Boris Chiou
45ff9ed8a6 Bug 1272409 - Part 5: Update test meta. r=dholbert
In idlharness.window.js, ResizeObservation is not an public interface in
the current spec, so the test should be updated.

In eventloop.html, unfortunately, there are two issues:
1. The test framework will be timeout if there is any `assert_equals()`
   failed. We should rewrite it.
2. Actually, we only have one failure in this test file:
   `assert_equals(helper.rafCount, 1, "new loop");` in test0. We fire
   this event in the next Tick(), but we call the callback of
   `requestAnimationFrame()` after several Tick()s, so `helper.rafCount`
   is still 0 in this case. This may be a bug of the test because using
   `requestAnimationFrame()` cannot reflect the next event loop, or our
   scheduling of ResizeObserver is not correct.
   Note: this assert_equal() was added by Google, not by Fariskhi.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:18 +00:00
Fariskhi Vidyan
55597e55fc Bug 1272409 - Part 4: Integrate ResizeObserver with Document and reflow. r=dholbert,smaug
Depends on D27617

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:16 +00:00
Fariskhi Vidyan
68460618c3 Bug 1272409 - Part 3: Add ResizeObserverController. r=dholbert,smaug
Use ResizeObserverController to schedule the observers and manage them.
Document will hold this controller in the later patch.

Depends on D27616

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:36 +00:00
Fariskhi Vidyan
3d0af6e0c6 Bug 1272409 - Part 2: Add ResizeObserver webidl and implementation. r=dholbert,smaug
This implements the first version of spec, so the webidl file doesn't
match the current spec and we will fix them in the follow-up bugs.

i.e.
1. The default observer box is content-box.
2. `ResizeObserverBoxOptions`, `ResizeObserverOptions`, and `ResizeObserverSize`
   are not included in `ResizeObserver.webidl`.
3. `ResizeObserverEntry` doesn't have `borderBoxSize` and `contentBoxSize`
   attributes.

Depends on D27615

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:06 +00:00
Fariskhi Vidyan
ee632b46da Bug 1272409 - Part 1: Add GetNodeDepth() to nsContentUtils. r=smaug
`GetNodeDepth()` will be used in the next patch.

Depends on D27614

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:30:04 +00:00
Brian Grinstead
4663e6262a Bug 1448213 - Migrate label-control to a Custom Element r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D5686

--HG--
extra : moz-landing-system : lando
2019-04-23 20:16:46 +00:00
Andreas Tolfsen
e4efcaa0dd bug 1546945: remote: re-enable remote agent in Firefox Nightly; r=ochameau
This patch negates the effect of 004d050a8ec4 (git 6dd9496ac0f9).

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:03:12 +00:00
Andreas Tolfsen
09e148f159 bug 1546945: remote: disable browser_cdp.js browser-chrome test on debug; r=ochameau
As detailed in https://bugzilla.mozilla.org/show_bug.cgi?id=1546945,
there is a memory leak in the remote agent that is triggered by
code paths in the remote/test/browser/browser_cdp.js browser-chrome test.

It is possible the memory leak is related to holding onto a reference
of the XPConnect C++ object nsSocketTransportService, but this has
yet to be confirmed.

This patch disables the test in question on debug builds, where
we run reference counting leakchecks, in order to get the remote
agent enabled in default Firefox Nightly builds.

Thanks-to: Alexandre Poirot <poirot.alex@gmail.com>

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

--HG--
extra : moz-landing-system : lando
2019-04-25 18:27:05 +00:00
Hiroyuki Ikezoe
db7bfb0117 Bug 1546835 - Adjust start position of the target element as scroll offset in the scroll element. r=jfkthame
Depends on D28755

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

--HG--
extra : moz-landing-system : lando
2019-04-25 12:54:11 +00:00
Hiroyuki Ikezoe
aaf3f89c1a Bug 1546835 - Restore the target left property when the test finishes. r=jfkthame
Othewise subsequent test cases would be affected by the change for
'vertical-rl'.

Depends on D28754

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

--HG--
extra : moz-landing-system : lando
2019-04-25 11:21:07 +00:00
Hiroyuki Ikezoe
6ef13b8677 Bug 1546835 - Rename width and height to scroller_width and scroller_height. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D28754

--HG--
extra : moz-landing-system : lando
2019-04-25 11:17:51 +00:00