Commit Graph

617196 Commits

Author SHA1 Message Date
Mike Hommey
d6be7f2ef6 Bug 1496296 - Update encoding_rs to 0.8.9 and simd to 0.2.3 r=froydnj
Only difference with current versions is the ability to use the crates
with stable rust without setting RUSTC_BOOTSTRAP globally ourselves.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 13:51:39 +00:00
Andrew Swan
f7d8d964c5 Bug 1451526 Convert mozscreenshots to a webextension r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D7613

--HG--
rename : browser/tools/mozscreenshots/mozscreenshots/extension/bootstrap.js => browser/tools/mozscreenshots/mozscreenshots/extension/api.js
rename : browser/tools/mozscreenshots/mozscreenshots/extension/install.rdf => browser/tools/mozscreenshots/mozscreenshots/extension/manifest.json
extra : moz-landing-system : lando
2018-10-04 21:41:06 +00:00
Emilio Cobos Álvarez
eed1014705 Bug 1495169 - Remove cached measuring reflows if we aren't measuring the right thing because we got interrupted. r=dholbert
If we're waiting on an interrupt, then our child items haven't been totally
reflowed and our measures would be bogus.

This will probably regress performance in the cases bug 1209697 fixed, so we
should probably add an interrupt check somewhere in nsFlexContainerFrame to
avoid keeping reflowing flex containers indefinitely.

We could probably just bail out from our reflow if any kid reflow was
interrupted.

Filed bug 1495532 to consider that.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 20:24:04 +00:00
Erica Wright
c4cd1af1d7 Bug 1495612 - Add custom search keywords for DoH. r=jaws
On about:preferences, if a user enters "doh" or "trr" in the search, it brings them to the Connection Settings panel.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 21:07:45 +00:00
Markus Stange
e32dae1f0d Bug 1495463 - Shut down the ProfilerScreenshots thread from the main thread. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D7367

--HG--
extra : moz-landing-system : lando
2018-10-04 20:54:23 +00:00
Jim Chen
605abe9bb4 Bug 1492704 - 2. Keep track of the auto-fill focus root node; r=droeh
The crash is happening because we may not have a full node tree when
looking at a particular node; in that case we may not be able to find
the root node. This patch makes us keep track of the root node from the
beginning, so we always know what the root node is.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 20:41:40 +00:00
Jim Chen
60f51ffb1e Bug 1492704 - 1. Update auto-fill then selecting tabs; r=petru
Update auto-fill info when selecting tabs. Also for auto-fill focus and
page events, only handle those events for the foreground tab, so
events from background tabs don't inadvertently affect auto-fill for the
foreground tab.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 20:41:37 +00:00
Matt Howell
bac0d13b5d Bug 1494709 - Check for native messaging host registrations in both the 32-bit and 64-bit registry views. r=aswan
This brings us into line with Chrome's behavior. Like Chrome, we check the
32-bit view first and check HKEY_CURRENT_USER before HKEY_LOCAL_MACHINE.

This patch only adds code affecting HKEY_LOCAL_MACHINE because the registry
does not use a 32-bit view in the HKEY_CURRENT_USER\Software key.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 20:36:04 +00:00
Hiroyuki Ikezoe
a2880e9d4f Bug 1489327 - Start animation once after a MozReftestInvalidate event is received in continuation-opacity.html. r=kats
The animation in this reftests runs on the compositor.  In the mean time,
reftest harness waits for the state where there is no pending paint in the
initial phase (STATE_WAITING_TO_FIRE_INVALIDATE_EVENT, i.e. before sending
a MozReftestInvalidate event).  So if the animation starts running on the
compositor before a MozReftestInvalidate event is received, it means that
the reftest harness has to wait for the 'no pending paint' state until the
animation finishes because the reftest harness keeps flushing styles in the
initial phase which means the animation causes a paint on every flush.

To avoid above situation, we start the animation in question after we get a
MozReftestInvalidate event.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 15:15:37 +00:00
Tim D. Smith
7fe7d8ff6a Bug 1494496 - Renew GEOLOCATION_REQUEST_GRANTED probe r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D7027

--HG--
extra : moz-landing-system : lando
2018-09-27 18:41:45 +00:00
Jason Laster
46254f84e4 Bug 1496468 - Add a console pause indicator. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D7741

--HG--
extra : moz-landing-system : lando
2018-10-04 20:14:53 +00:00
Brian Grinstead
9f095c8011 Bug 1496137 - Handle asynchronous XBL construction of <radio> elements beneath <radiogroup>;r=jaws
Previously, the <radio> constructor just nulled out the _radioChildren of the <radiogroup>.
This leads to some issues that existed before the Custom Element migration to <radiogroup>,
in which state wouldn't get synchronized between an already-appended radiogroup and a newly
add radio (i.e. the [disabled] attribute on the radiogroup wouldn't copy down to the new radio,
and the [value] attribute wouldn't get moved up onto the radiogroup if the new radio is [selected]).

In addition to that, the Custom Element migration introduced a worse bug, in which the
XBL constructors on radio elements sometime haven't run when the radio is connected. This
means the radiogroup doesn't recognize any children, and the selectedItem / value is wrong.

This patch makes it so that the radio will notify the radiogroup when it is constructed,
and if necessary, the radiogroup can make sure all the state is consistent.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 20:20:10 +00:00
Chris Manchester
4810e2e906 Bug 1494387 - Update windows builders to rustc 1.30 beta. r=froydnj
This updates our windows builders to use a version of rustc that includes
https://github.com/rust-lang/rust/pull/52847 We're not commiting to letting
this change ride the trains at this time.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 19:32:33 +00:00
Andrew McCreight
045d2cf847 Bug 1493226, part 2 - Statically prevent trivial calls to do_QueryInterface that returns an nsresult r=froydnj
This is the same as the other patch, except that it is applied to the
case where the QI returns an nsresult.

In addition, I marked the WithError helper class as being stack-only.

Depends on D7553

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

--HG--
extra : moz-landing-system : lando
2018-10-04 19:16:30 +00:00
Andrew McCreight
8ed5b13669 Bug 1493226, part 1 - Statically prevent trivial calls to do_QueryInterface r=froydnj
This patch adds a static assert to enforce that do_QueryInterface is
not used to go from a class to a base class, because that can be done
more efficiently via a static_cast. This is done by putting the type
of the source into the nsQueryInterface type. Once that is done, it is
easy to check the source and destination type. This has to be done
carefully so that in non-DEBUG builds, where NSCAP_FEATURE_USE_BASE is
defined, we don't generate any additional code.

The first step is to rename nsQueryInterface to
nsQueryInterfaceISupports. In DEBUG builds, I then add a new subtype
nsQueryInterface<T>, where T is the type of the object we are going to
QI. This class is a thin wrapper around nsQueryInterfaceISupports that
only forwards operations to the base class.

The main bit of trickery here is PointedToType<T>, which is needed to
get the type parameter for nsQueryInterface. This dereferences the
type, gets the address of it, then does RemovePointer. This is needed
because a wide variety of pointer types are passed in to
do_QueryInterface, including RefPtr<>, nsCOMPtr<>, raw pointers, and
OwningNonNull<>. PointedToType<RefPtr<T>> is equal to T,
PointedToType<T*> is equal to T, and so on.

In NSCAP_FEATURE_USE_BASE builds (opt), we only use
nsQueryInterfaceISupports, but in debug builds we use
nsQueryInterface<> where possible. The latter is also used for the
nsCOMPtr<nsISupports> overload, because we can always QI to
nsISupports, because that is sometimes used for canonicalization.

Another gross bit is that Assert_NoQueryNeeded can no longer use
nsCOMPtr<>, because it works by QIing T to T, which is banned by the
static analysis. Instead I had to reimplement it by hand.

Depends on D7527

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

--HG--
extra : moz-landing-system : lando
2018-10-04 19:16:28 +00:00
Jared Wein
7fe44d3527 Bug 1496309 - Fix arguments to populateSendTabToDevicesMenu and add automated test for coverage. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7684

--HG--
extra : moz-landing-system : lando
2018-10-04 18:37:50 +00:00
J.C. Jones
dad8ff2db4 Bug 1496467 - Enable Symantec Distrust in Firefox 64 r=keeler
The symantec distrust should now ride-the-trains in Firefox 64 Beta and Release.
Set security.pki.distrust_ca_policy to 2.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 17:48:53 +00:00
Julian Descottes
4848175bf8 Bug 1494615 - Stop update Devices.jsm from adb-addon module;r=ladybenko
Depends on D7405. The adb-addon module fires events whenever the
addon state changes, so Devices.jsm should be able to simply reuse this
module to update its internal state, rather than having adb-addon set
something on Devices.jsm directly.

On a sidenote, we really should not propagate the adb status via Devices.jsm
but since WebIDE relies on this, I decided to keep the code as is for now.
We will remove it from Devices.jsm when WebIDE is removed.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:45:22 +00:00
Julian Descottes
419fc776a0 Bug 1494615 - Accept source parameter in adb-addon install();r=ladybenko
Depends on D7404. The install method should not hardcode "webide"
for the addon manager telemetry info

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:43:29 +00:00
Julian Descottes
c1b5abb562 Bug 1494615 - Update adb-addon module to expose a singleton;r=ladybenko
Depends on D7403
The getADBAddon/forgetADBAddon is not removing listeners or doing
anything useful since the next call to getADBADdon will just recreate an
instance of ADBAddon. We can expose a singleton and use lazy requires to
achieve the same effect

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

--HG--
extra : moz-landing-system : lando
2018-10-04 18:40:38 +00:00
Julian Descottes
c1aabb3bca Bug 1494615 - Move ADBAddon module to devtools/shared/adb;r=ladybenko
Depends on D7402. Moving the module to a shared older. Following
patches will cleanup the implementation to remove WebIDE couplings.

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

--HG--
rename : devtools/client/webide/modules/addons.js => devtools/shared/adb/adb-addon.js
extra : moz-landing-system : lando
2018-10-03 13:34:40 +00:00
Julian Descottes
aa8196aae8 Bug 1494615 - Remove concept of availableAddons in WebIDE;r=ladybenko
There is only one addon to manage in WebIDe, removing the concept
of available addons will make it easier to move the ADBAddon module to a
shared folder.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 16:09:44 +00:00
Ting-Yu Lin
790a682fc3 Bug 1496275 - Fix wpt test multicol-span-all-margin-bottom-001-ref.xht. r=dbaron
Per example in the spec https://drafts.csswg.org/css-multicol-1/#column-span

  ... the bottom margin of the second spanner does not collapse with the top
  margin of the subsequent element.

Likewise, in the test file multicol-span-all-margin-bottom-001.xht, the
bottom margin of the black spanner <h4> should not collapse with the top
margin of the orange non-spanner <h4>.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 17:28:52 +00:00
Rok Garbas
36dfab12fe Bug 1496480 - release-update-verify-config-* tasks failing due to recent refactoring in Bug 1491907, r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D7748

--HG--
extra : moz-landing-system : lando
2018-10-04 17:44:07 +00:00
Bogdan Tara
913a7c73ea Backed out 2 changesets (bug 1493779) for test_convolverNodeOOM.html failures CLOSED TREE
Backed out changeset e78d9996b1a4 (bug 1493779)
Backed out changeset 53950ea4b105 (bug 1493779)
2018-10-04 20:24:19 +03:00
Michael Kaply
f315820cba Bug 1496180 - Add security devices description and correct error parsing. r=flod,Felipe
Differential Revision: https://phabricator.services.mozilla.com/D7747

--HG--
extra : moz-landing-system : lando
2018-10-04 17:04:42 +00:00
Brad Werth
5a535a79a8 Bug 1290420 Part 5: Change test function waitForViewportResizeTo to check viewport size. r=gl
Several tests of RDM use the helper function waitForViewportResizeTo. This patch changes that function to check the viewport size, not the content size, and to wait on either the content-resized event or the newly-defined viewport-resized event, which is fired on resize when viewport override is active.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 13:16:52 +00:00
Brad Werth
6ceb1e8b1e Bug 1290420 Part 4: Make the PresShell create a MobileViewportManager on demand. r=botond,smaug
Depends on D3376

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

--HG--
extra : moz-landing-system : lando
2018-10-04 03:28:40 +00:00
Botond Ballo ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
ce4278715b Bug 1290420 Part 3: Set the metaViewportOverride flag when viewing a device with touch event support in Responsive Design Mode. r=gl
Depends on D3375

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

--HG--
extra : moz-landing-system : lando
2018-10-04 00:19:41 +00:00
Botond Ballo ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
fde40d2d24 Bug 1290420 Part 2: Respect the metaViewportOverride flag on the docshell. r=dholbert
Depends on D3373

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

--HG--
extra : moz-landing-system : lando
2018-10-04 00:19:40 +00:00
Botond Ballo ext:(%2C%20Brad%20Werth%20%3Cbwerth%40mozilla.com%3E)
46f528a48a Bug 1290420 Part 1: Add a docshell flag for overriding meta viewport handling. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D3373

--HG--
extra : moz-landing-system : lando
2018-10-04 00:19:40 +00:00
Sylvestre Ledru
fb80392dd8 Bug 1253844 - Enable the readability-implicit-bool-conversion checker r=andi
Differential Revision: https://phabricator.services.mozilla.com/D7606

--HG--
extra : moz-landing-system : lando
2018-10-03 16:30:29 +00:00
Dão Gottwald
df77dbf5ba Bug 1491249 - Implement URL tooltip. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D7698

--HG--
extra : moz-landing-system : lando
2018-10-04 15:53:09 +00:00
Narcis Beleuzu
de85cdbfc7 Merge mozilla-central to autoland. CLOSED TREE 2018-10-04 18:58:42 +03:00
Narcis Beleuzu
b9b1c8ff17 Merge inbound to mozilla-central. a=merge 2018-10-04 18:48:04 +03:00
Narcis Beleuzu
4784b53689 Backed out 3 changesets (bug 1494170) for causing merge conflicts.
Backed out changeset 149ed1ed1f73 (bug 1494170)
Backed out changeset 567f15a5455a (bug 1494170)
Backed out changeset b1c901b2d661 (bug 1494170)
2018-10-04 18:47:37 +03:00
Narcis Beleuzu
46421aa410 Backed out changeset 650ac3a6c73d (bug 1488507) for causing merge conflicts. 2018-10-04 18:47:04 +03:00
yulia
7cee761279 Bug 1494605 - Use target.getFront for PerformanceFront in tests; r=ochameau
Depends on D6768

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

--HG--
extra : moz-landing-system : lando
2018-10-04 14:57:32 +00:00
Henrik Skupin
6156b8d1f5 Bug 1433905 - [mozprocess] poll() always returns None for stopped process until wait() is called. r=gbrown
If the process quits externally (shutdown by itself or via kill),
the poll method still returns None, even with the process not
existent anymore.

To fix that, the poll method should at least try to join the reader
thread once before checking if it is still alive. Otherwise it will
continue to run, and never stop.

Also the attribute existence check for "returncode" on the process
instance has to be removed because this property always exists.
Instead a check for the "returncode" property of the ProcessHandler
class is necessary.

Depends on D7396

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

--HG--
extra : moz-landing-system : lando
2018-10-04 14:51:32 +00:00
Henrik Skupin
0b6b3e94da Bug 1433905 - [mozprocess] Existence of _handle on Windows doesn't mean the process is still alive. r=gbrown
The assumption that when a handle is present for the process handler
on Windows doesn't mean that the process is still alive. It could
have already been externally killed, crashed, or closed itself.

The patch makes sure to check the process exit code, and run
clean-up steps if the process is already gone.

Depends on D7395

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

--HG--
extra : moz-landing-system : lando
2018-10-04 14:52:47 +00:00
Emilio Cobos Álvarez
fb252d3a24 No bug - update cssparser. r=me
This just makes an struct repr(C) which will help me to remove most of
nsCSSValue.
2018-10-04 13:53:53 +02:00
Jon Coppeard
6c612a4a15 Backed out changeset ba122021b8b5 (bug 1481196) 2018-10-04 11:50:55 +01:00
Jon Coppeard
20fb3bd245 Backed out changeset da82ea6820ee (bug 1482153) 2018-10-04 11:50:55 +01:00
Jon Coppeard
73b050f119 Backed out changeset 71791e10b6e9 (bug 1485031) 2018-10-04 11:50:55 +01:00
Henrik Skupin
4a1ba8961f Bug 1433905 - [mozprocess] Fix broken path to process script for test_process_output_nonewline. r=gbrown
Depends on D7394

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

--HG--
extra : moz-landing-system : lando
2018-10-04 10:49:52 +00:00
Henrik Skupin
dc3840d283 Bug 1433905 - [mozprocess] "check_for_detached()" has to raise RuntimeError if process hasn't been started yet. r=gbrown
Calling "check_for_detached()" doesn't make sense if the process
hasn't been started yet, and as such has to raise a RuntimeError.

Depends on D7393

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

--HG--
extra : moz-landing-system : lando
2018-10-04 10:49:24 +00:00
Henrik Skupin
8744982dbc Bug 1433905 - [mozprocess] Retrieving pid has to fail with RuntimeError if process hasn't been started yet. r=gbrown
Instead of an AttributeError a RuntimeError has to be thrown if
the underlying process hasn't been created yet.

Depends on D7392

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

--HG--
extra : moz-landing-system : lando
2018-10-04 10:48:50 +00:00
Henrik Skupin
2141453224 Bug 1433905 - Temporarily disable test_loader_global_sharing.py for opt/pgo builds on Windows. r=gbrown
Marionette currently doesn't handle restarts of Firefox that well,
and as such needs a fix on bug 1433873. Sadly this patch cannot be
landed until the mozprocess issues on bug 1433905 have been fixed.

This patch temporarily disables the test for opt/pgo Windows builds
only. Re-enabling is tracked via bug 1495667.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 10:48:07 +00:00
Nicholas Hurley
dad8d53ed9 Bug 1496224 - Followup to 1409570 - fix clang-tidy complaint r=bagder
Differential Revision: https://phabricator.services.mozilla.com/D7652

--HG--
extra : moz-landing-system : lando
2018-10-04 08:43:54 +00:00
Paul Adenot
9482cd13ff Bug 1493779 - Gracefuly handle OOM when setting a buffer on ConvolverNode. r=karlt
When OOMing when allocating the temporary buffer, we return an error from the
ctor via an output parameter, and make the ConvolverNode output silence.
Additionaly, a warning is issued each time we fail to set a buffer to the buffer
property of a ConvolverNode.

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

--HG--
extra : moz-landing-system : lando
2018-10-04 15:31:42 +00:00