Commit Graph

643563 Commits

Author SHA1 Message Date
Kershaw Chang
4311c49299 Bug 1536236 - Make sure mDNSPrefetch is always released on main thread r=valentin
This patch should make mDNSPrefetch to be released always on main thread.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:39:45 +00:00
Florens Verschelde
9d9c19e064 Bug 1537724 - Make text selection visible in TreeView inputs; r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D24375

--HG--
extra : moz-landing-system : lando
2019-03-25 12:24:54 +00:00
Mark Banner
9ae7d04cfd Bug 1531693 - For the PrivateBrowsing about page test, ensure we wait for autocomplete to finish. r=mak
This ensures test stability, and avoids leaking browser windows when we're closing the private browsing window in the test.

Depends on D24529

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

--HG--
extra : moz-landing-system : lando
2019-03-22 22:40:33 +00:00
Mark Banner
a07272112f Bug 1531693 - Relax the assertion for another editor handling the composition to take account of cycle collection. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D24529

--HG--
extra : moz-landing-system : lando
2019-03-23 11:54:24 +00:00
Marco Bonardo
134a6c11a6 Bug 1536751 - Quantum Bar should clear switch-to-tab overrides on blur. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24492

--HG--
extra : moz-landing-system : lando
2019-03-25 09:04:31 +00:00
Paul Adenot
48e3befa11 Bug 1528319 - Don't create a Promise when shutting down an AudioContext. r=karlt
This is done in the same style as `::Suspend` and `::Resume`.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 02:41:50 +00:00
Julian Descottes
9fc4dd6f7a Bug 1528912 - Do not stop ADB when closing aboutdebugging or webide;r=daisuke
It looks like we don't need to stop ADB. Most of the logic can stay, in order to start and stop the devices polling.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 08:05:18 +00:00
James Teh
1911fb04f0 Bug 1530931: Correctly handle retrieving a container accessible for a shadow root. r=eeejay
This can happen, for example, when GetAccessibleOrContainer is called within SelectionManager::ProcessSelectionChanged due to focusing a direct child of a shadow root.
In this case, the common ancestor is the shadow root itself.
Previously, we returned null in this case because GetFlattenedTreeParent doesn't work on the shadow root itself.
Now, we check if the given node is the shadow root, and if so, we use the shadow host instead.
This prevents the "We must reach document accessible implementing text interface!" assertion in SelectionManager::ProcessSelectionChanged when a direct child of a shadow root gets focus.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 05:04:29 +00:00
Lina Cambridge
2c912888e3 Bug 1482608 - Remove the JS bookmark merger. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D20078

--HG--
extra : moz-landing-system : lando
2019-03-25 04:51:01 +00:00
Lina Cambridge
721342c909 Bug 1482608 - Fix up inconsistent bookmarks at sync time. r=markh,tcsc
This commit changes the mirror to store divergent structure, instead
of dropping or trying to fix up records as they're stored.

* We no longer ignore records for items with invalid GUIDs. Instead,
  we store them in the mirror, and make new GUIDs for them. Dogear
  takes care of marking the old GUID as deleted, and flagging the item
  and its parent for reupload.
* Each item stores its `parentid` in the database, so we can fix up
  orphans and parent-child disagreements.
* Each item also stores a new validity state: valid, reupload, or
  replace. An item marked with "reupload" can be applied, but should be
  updated remotely. We use this to rewrite legacy tag queries. An item
  marked with "replace" can't be applied; for example, a bookmark or
  query without a valid URL. If the item exists locally, we can replace
  the server's invalid copy with a valid local copy. If not, we must
  delete it from the server.
* We don't need to protect the mirror's roots, since Dogear fixes them
  for us.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 04:50:38 +00:00
Lina Cambridge
99b7c7c7de Bug 1482608 - Port the synced bookmarks merger to Rust. r=nika,mak,markh,tcsc
This commit introduces a Rust XPCOM component,
`mozISyncedBookmarksMerger`, that wraps the Dogear crate for
merging and applying synced bookmarks.

How this works: `SyncedBookmarksMirror.jsm` manages opening
the connection, initializing the schema, and writing incoming
items into the mirror database. The new `mozISyncedBookmarksMerger`
holds a handle to the same connection. When JS code calls
`mozISyncedBookmarksMerger::apply`, the merger builds local and
remote trees, produces a merged tree, applies the tree back to Places,
and stages outgoing items for upload in a temp table, all on the
storage thread. It then calls back in to JS, which inflates Sync
records for outgoing items, notifies Places observers, and cleans up.

Since Dogear has a more robust merging algorithm that attempts to fix
up invalid trees, `test_bookmark_corruption.js` intentionally fails.
This is fixed in the next commit, which changes the merger to handle
invalid structure.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 04:50:14 +00:00
Lina Cambridge
1ffcc4917b Bug 1482608 - Convert null pointers passed to xpcom_methods into Options. r=myk,nika
Differential Revision: https://phabricator.services.mozilla.com/D20075

--HG--
extra : moz-landing-system : lando
2019-03-25 04:49:36 +00:00
Lina Cambridge
35f0c7a7f9 Bug 1482608 - Add owning thread pointer holders for Rust code. r=nika,myk
This commit adds `ThreadPtr{Handle, Holder}` to wrap an `XpCom` object
with thread-safe refcounting. These are analagous to
`nsMainThreadPtr{Handle, Holder}`, but can hold references to
objects from any thread, not just the main thread.

`ThreadPtrHolder` is similar to `ThreadBoundRefPtr`. However, it's
not possible to clone a `ThreadBoundRefPtr`, so it can't be shared
among tasks. This is fine for objects that are only used once, like
callbacks. However, `ThreadBoundRefPtr` doesn't work well for loggers
or event emitters, which might need to be called multiple times on
the owning thread.

Unlike a `ThreadBoundRefPtr`, it's allowed and expected to
clone and drop a `ThreadPtrHolder` on other threads. Internally,
the holder keeps an atomic refcount, and releases the wrapped object
on the owning thread once the count reaches zero.

This commit also changes `TaskRunnable` to support dispatching from
threads other than the main thread.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 04:49:24 +00:00
Lina Cambridge
3e894ac30e Bug 1482608 - Add basic Rust bindings for mozStorage. r=nika,asuth,mak
This commit wraps just enough of the mozStorage API to support the
bookmarks mirror. It's not complete: for example, there's no way
to open, clone, or close a connection, because the mirror handles
that from JS. The wrapper also omits shutdown blocking and retrying on
`SQLITE_BUSY`.

This commit also changes the behavior of sync and async mozStorage
connections. Async (`mozIStorageAsyncConnection`) methods may be called
from any thread on any connection. Sync (`mozIStorageConnection`)
methods may be called from any thread on a sync connection, and from
background threads on an async connection. All connections now QI
to `mozIStorageConnection`, but attempting to call a sync method on
an async connection from the main thread throws.

Finally, this commit exposes an `OpenedConnection::unsafeRawConnection`
getter in Sqlite.jsm, for JS code to access the underlying connection.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 04:49:18 +00:00
Andreas Pehrson
f415a5ea4e Bug 1538113 - Format YUVBufferGenerator. r=dminor
This removes windows line endings throughout the files, and clang-formats them.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 16:44:49 +00:00
Andreas Pehrson
599d0544bb Bug 1538113 - Fix static-analysis warning in dom/media/VideoFrameConverter.h. r=dminor
Initially indicated by: https://phabricator.services.mozilla.com/D24233#inline-142010

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

--HG--
extra : moz-landing-system : lando
2019-03-25 14:25:11 +00:00
Andreas Pehrson
7f6e56584f Bug 1538113 - Fix dom/media/webrtc static-analysis warnings. r=jib
Initially indicated by: https://phabricator.services.mozilla.com/D22910#inline-142013
Rest found by: ./mach static-analysis check dom/media/webrtc

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

--HG--
extra : moz-landing-system : lando
2019-03-25 18:52:57 +00:00
Andreas Pehrson
a455b2a38a Bug 1538113 - Fix TestVideoTrackEncoder static-analysis warnings. r=bryce
Initially indicated by https://phabricator.services.mozilla.com/D22909#inline-140683
Some more found by ./mach static-analysis check dom/media/gtest/TestVideoTrackEncoder.cpp

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

--HG--
extra : moz-landing-system : lando
2019-03-22 16:43:28 +00:00
Mike Conley
70d3cd278a Bug 1538192 - Remove NIGHTLY_BUILD ifdef around Picture-in-Picture context menu item. r=jaws
Depends on D24519

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

--HG--
extra : moz-landing-system : lando
2019-03-25 18:16:49 +00:00
Mike Conley
08b72ff59b Bug 1538216 - Remove NIGHTLY_BUILD ifdef around Picture-in-Picture media assets. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D24519

--HG--
extra : moz-landing-system : lando
2019-03-25 18:17:01 +00:00
Kearwood "Kip" Gilbert
8798e1bf90 Bug 1537550 - Use PlainOldDataSerializer for POD types in VRMessageUtils r=daoshengmu
Moved non-POD member of VRDisplayInfo to VRDisplayHost
VRDisplayInfo is now also a POD type (And asserted so)

Use PlainOldDataSerializer for POD types in VRMessageUtils
Moved non-POD member of VRDisplayInfo to VRDisplayHost
VRDisplayInfo is now also a POD type (And asserted so)

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

--HG--
extra : moz-landing-system : lando
2019-03-25 18:06:32 +00:00
Dana Keeler
f04ab743ad bug 1529044 - intermediate certificate caching: import on a background thread to not block certificate verification r=mgoodwin
Apparently importing a certificate into the NSS certificate DB is slow enough to
materially impact the time it takes to connect to a site. This patch addresses
this by importing any intermediate certificates we want to cache from verified
connections on a background thread (so the certificate verification thread can
return faster).

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

--HG--
extra : moz-landing-system : lando
2019-03-25 17:09:37 +00:00
Daosheng Mu
433677bcfa Bug 1522358 - Requery VRDisplayHost from VRManagers instead of using weakptr from the hash table. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D24584

--HG--
extra : moz-landing-system : lando
2019-03-25 17:51:51 +00:00
Valentin Gosu
784b4209b8 Bug 1532395 - Clear the DNS cache before each TRR test r=JuniorHsu
It is likely that the test is flaky because we resolve the same host with a different TRR endpoint and sometimes we use a cached record.
We should clear the DNS cache before each test to ensure that we're actually checking the right thing.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 17:55:45 +00:00
Ian Moody
99b846b642 Bug 1537776 - dom/ manual ESLint no-throw-literal fixes. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D24370

--HG--
extra : moz-landing-system : lando
2019-03-25 16:49:03 +00:00
Tom Tung
e8cebb55de Bug 1529122 - P2 - Make sure checking initialized if clear all is requested; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D24680

--HG--
extra : moz-landing-system : lando
2019-03-25 17:50:17 +00:00
Tom Tung
df8446efe6 Bug 1529122 - P1 - Remove the origin directory if the requesting client is the only client in the directroy; r=asuth
This patch do:
- Removing the directroy if the requesting client is the only client.
- Avoid unnecessary initialization for a client if it hasn't been initialized.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 17:49:44 +00:00
Cosmin Sabou
6e3591513f Backed out changeset 69f5724fb0f3 (bug 1524653) for not properly disabling the test. 2019-03-25 19:28:45 +02:00
Calixte Denizet
44a8c68d93 Bug 1519825 - Update grcov to revision 9214a916805838265764f9c69eaed657ea3db021 r=marco
This revision corresponds to grcov 0.4.2

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

--HG--
extra : moz-landing-system : lando
2019-03-25 17:07:23 +00:00
Ian Moody
fe4fab15e3 Bug 1537776 - dom/ automated ESLint no-throw-literal fixes. r=asuth,mccr8
Result of running:
$ mach eslint -funix dom/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-03-25 16:03:38 +00:00
Cameron McCormack
bc72d9813e Bug 1515551 - Add functionality to SharedMemoryBasic to help map the shared memory at an arbitrary address. r=kmag
This patch adds two things:

1. An optional fixed_address argument to SharedMemoryBasic::Map, which
   is the address to map the shared memory at.

2. A FindFreeAddressSpace function that callers can use to find a
   contiguous block of free address space, which can then be used to
   determine an address to pass in to Map that is likely to be free.

Patches in bug 1474793 will use these to place the User Agent style
sheets in a shared memory buffer in the parent process at an address
that is also likely to be free in content processes.

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

--HG--
extra : moz-landing-system : lando
2019-03-22 00:11:51 +00:00
Andreea Pavel
f03ec4810c Backed out 3 changesets (bug 1529232) for failing xpcshell at test_EcosystemTelemetry.js on a CLOSED TREE
Backed out changeset 1a0669e032ff (bug 1529232)
Backed out changeset 3c600bf98e37 (bug 1529232)
Backed out changeset 9c9c6c36db7b (bug 1529232)
2019-03-25 05:59:37 +02:00
Botond Ballo
c1ca1c7e5f Bug 1536755 - Fix eslint trailing-comma failures. r=apavel
Differential Revision: https://phabricator.services.mozilla.com/D24660

--HG--
extra : moz-landing-system : lando
2019-03-25 03:37:00 +00:00
Daisuke Akatsuka
aee3333051 Bug 1536682: Add a test for special CSS color. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D24127

--HG--
extra : moz-landing-system : lando
2019-03-25 03:03:34 +00:00
Daisuke Akatsuka
2d87871070 Bug 1536682: Handle special CSS color within animation inspector. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D24125

--HG--
extra : moz-landing-system : lando
2019-03-25 03:06:43 +00:00
Brad Werth
65d87a00fb Bug 1536755 Part 2: Add a test of meta viewport fixed width and zoom. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D24456

--HG--
rename : devtools/client/responsive.html/test/browser/browser_viewport_resizing.js => devtools/client/responsive.html/test/browser/browser_viewport_resizing_fixed_width.js
extra : moz-landing-system : lando
2019-03-22 21:01:48 +00:00
Brad Werth
5a6a418623 Bug 1536755 Part 1: Enforce viewport zoom constraints when the content size changes. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D24424

--HG--
extra : moz-landing-system : lando
2019-03-22 21:01:26 +00:00
Hiroyuki Ikezoe
01e23b1896 Bug 1518802 - Treat background-color animation as non-opaque even if the alpha channel is 1.0 at the moment. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D24656

--HG--
extra : moz-landing-system : lando
2019-03-24 22:41:02 +00:00
Paul Bone
4344ae1074 Bug 1528159 - Fix the nursery size to make a test more reliable r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D22288

--HG--
extra : moz-landing-system : lando
2019-03-22 05:17:15 +00:00
Andreea Pavel
a6256fd6b5 Bug 1524653 - disabled test for multiple failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D24655

--HG--
extra : moz-landing-system : lando
2019-03-24 21:46:23 +00:00
Jan-Erik Rediger
4d1ec1c8b4 Bug 1529232 - Add browser.engagement.total_uri_count scalar to ecosystem telemetry r=gfritzsche
Depends on D23293

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

--HG--
extra : moz-landing-system : lando
2019-03-24 17:24:09 +00:00
Jan-Erik Rediger
bbef3a6b93 Bug 1529232 - Enable Ecosystem Telemetry on Nightly r=gfritzsche
Depends on D21521

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

--HG--
extra : moz-landing-system : lando
2019-03-24 17:24:07 +00:00
Jan-Erik Rediger
7f6228a43d Bug 1529232 - Implement pre-account ping r=chutten,gfritzsche,markh
It's missing some details and is disabled by default (gated by the
`toolkit.telemetry.ecosystemping.enabled` preference)

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

--HG--
extra : moz-landing-system : lando
2019-03-24 17:24:05 +00:00
Daniel Varga
b929b1b42d Bug 1473859 - Disable css-valuesandunits/unit-vh-vw-overflow-auto-ref.html on linux for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D24646

--HG--
extra : moz-landing-system : lando
2019-03-24 21:45:02 +00:00
Daniel Varga
0f5433e862 Bug 1535847 - /html/semantics/embedded-content/media-elements/track/track-element/track-cue-rendering-empty-cue.html on linux for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D24652

--HG--
extra : moz-landing-system : lando
2019-03-24 21:47:44 +00:00
Daniel Varga
700eee209a Bug 1536664 - toolkit/components/antitracking/test/browser/browser_blockingServiceWorkersStorageAccessAPI.js on linux, windows and osx for frequent failures r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D24647

--HG--
extra : moz-landing-system : lando
2019-03-24 21:47:42 +00:00
Coroiu Cristina
3b71c83e52 Bug 1475120 - disable wrapper.html?badpalettesize.bmp on all platforms r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D24648

--HG--
extra : moz-landing-system : lando
2019-03-24 21:45:40 +00:00
Ciure Andrei
1f61ac1e73 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-24 23:46:20 +02:00
Ciure Andrei
baf4fbcc06 Merge inbound to mozilla-central. a=merge 2019-03-24 23:45:00 +02:00
Ashley Hauck
388d090f32 Bug 1537980 - Make CallNode::callOp const. r=jorendorff
Differential Revision: https://phabricator.services.mozilla.com/D24535

--HG--
extra : moz-landing-system : lando
2019-03-24 12:13:47 +00:00