Граф коммитов

664626 Коммитов

Автор SHA1 Сообщение Дата
rdalal 43acd674ea Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D39576

--HG--
extra : moz-landing-system : lando
2019-08-06 23:54:34 +00:00
Makoto Kato 9f979c6057 Bug 1571605 - Don't use file separator to find classes.jar. r=agi
I have landed bug 1527796 to support artifact build on Windows, but after bug 1515248 is landed, it is broken again. Path separator on Windows is '\', not '/'.  So we should use leaf name instead.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 23:10:13 +00:00
Andreea Pavel 5c7466c411 Backed out changeset 3b0f04771005 (bug 1568361) Windows MinGW build bustages on a CLOSED TREE 2019-08-07 03:21:19 +03:00
Lina Cambridge a353683d24 Bug 1567238 - Use the main Places connection for bookmarks mirror merges. r=mak
Before this change, the bookmarks mirror used a cloned Places
connection for reads and writes. This avoided interleaving writes from
Sync and other Places consumers, where `mozStorageTransaction` or
`Sqlite.jsm` would see that a transaction was already in progress, and
execute statements as part of that transaction.

However, using a separate connection caused write contention, wedging
the main connection in an infinite `SQLITE_BUSY` retry loop. This
blocked all writes to Places until shutdown, at which point we'd hang
waiting to shut down the async thread. Bug 1435446 reduced this, but
didn't eliminate the hangs entirely.

Since the mirror first landed, we've made three changes, to the point
that using the main connection is feasible now:

1. Merging and application happen in Rust. This means we run everything
   on the async thread, so no other async statements can run during
   merging.
2. Most uses of the synchronous bookmarks API have been removed. The
   only remaining caller is the tagging service, and we never sync the
   tags root.
3. We only update parents and positions for items that actually changed,
   instead of walking the entire tree.

To that end, this commit removes the cloned connection, and uses the
main Places connection directly.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 23:48:12 +00:00
Lina Cambridge 9320172d8f Bug 1567238 - Refactor the bookmarks mirror merge triggers to do less work. r=tcsc,markh
This commit reduces the number of database writes and table scans
needed to merge synced bookmarks.

* Remove `fetchNew{Local, Remote}Contents`. Fetching the tree already
  scans the table, so we can piggyback on it to fetch content info for
  deduping.
* Store completion ops in temp tables to only update changed parts of
  the local tree, and remove the `mergeStates` table and views.
* Replace the `itemsToMerge` view with an indexed `itemsToApply` temp
  table.
* Replace the `updateGuidsAndSyncFlags` trigger with a `changeGuidOps`
  table and a `changeGuids` trigger.
* Replace the `updateLocalItems` trigger with an `apply_remote_items`
  function to bulk upsert new and updated items.
* Replace the `structureToMerge` view with an
  `applyNewLocalStructureOps` table that holds parents and positions
  for moved items, and an `applyNewLocalStructure` trigger to update
  them.
* Remove tombstones for revived items, update change counters, and flag
  mirror items as merged directly in `update_local_items_in_places`,
  instead of indirecting through temp tables.
* Don't mark items flagged for reupload as merged, since we'll write
  them back to the mirror after upload.
* Use a scalar subquery instead of a join in the `localTags` view to
  look up the tags root ID.
* Replace `relatedIdsToReupload` with a `Store::prepare` method that
  flags all bookmarks with keyword-URL mismatches for reupload.
* Trigger frecency updates for origins once, not for every item.
* Remove two extra scans on `itemsAdded` and `itemsChanged` when
  recording observer notifications for changed keywords.
* Notify all `bookmark-added` listeners in a single batch.

This also fixes some edge cases:

* Update root positions correctly after deleting a non-syncable root
  or item.
* Keyword-URL mismatches may reupload more items than before, but now
  ensure that all bookmarks with the same URL have the same keyword.
* Only set items with deduped GUIDs to `SYNC_STATUS_NORMAL` after
  merging.
* Bump the last modified time for modified items only.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 23:48:03 +00:00
Aaron Klotz 559af4dfce Bug 1568361: Use StaticLocalAutoPtr for BackgrundMTAData; r=Jamie
The new StaticLocalAutoPtr smart pointer has a trivial destructor, so we will
either properly clean up this data or leak it on process shutdown. Either way,
we will not destroy it in a way that the underlying type does not support.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 23:56:21 +00:00
Boris Chiou f6f83966df Bug 1571211 - Enable the pref of motion path in dom/animation/test/chrome. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D40570

--HG--
extra : moz-landing-system : lando
2019-08-06 23:51:54 +00:00
Andreea Pavel a7b3920be9 Backed out changeset 4ed2ae72d108 (bug 1568157) for dt failures on a CLOSED TREE 2019-08-07 02:50:26 +03:00
alwu 267ee7f804 Bug 1565689 - part7 : add browser test. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D38147

--HG--
extra : moz-landing-system : lando
2019-08-06 01:13:08 +00:00
alwu a76dfcbdd5 Bug 1565689 - part6 : add gtests. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D38146

--HG--
extra : moz-landing-system : lando
2019-08-06 01:13:08 +00:00
alwu f8f21d9082 Bug 1565689 - part5 : control media from chrome process. r=farre,baku
This patch implements how to use MediaController to control corresponding media in content processes.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 01:13:07 +00:00
alwu 519f56c448 Bug 1565689 - part4 : notify controller about media active state and audible state changed from content processes. r=baku
We implement some helpful functions in MediaControlUtils which can be used to notify controller when media starts/stops playing or become audible/inaudible.

For now, we can temporarily notify these changes in AudioChannelService where we have already known when media has these kinds of status changing.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 01:13:07 +00:00
alwu a212936957 Bug 1565689 - part3 : use static pref to control audio competing. r=baku
We don't want to enable audio competing by default, so hide this feature behind a static pref.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 01:13:09 +00:00
alwu e76b883c12 Bug 1565689 - part2 : implement AudioFocusManager. r=baku
In order to support audio competing among different tabs, we implement a new class AudioFocusManager.

AudioFocusManager is used to assign the audio focus to different requester and decide which requester can own audio focus when audio competing happens.
When the audio competing happens, the last request would be a winner who can still own the audio focus, and all the other requesters would lose the audio focus.
Now MediaController is the onlt requester, it would request the audio focus when it becomes audible and revoke the audio focus when the controller is no longer active.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 19:27:34 +00:00
alwu d64b11e708 Bug 1565689 - part1 : implement MediaController and MediaControlService. r=baku
In order to have a centralized audio control in the parent process, we create two new classes here.

* MediaController
MediaController is a class used to control certain amount of media in the content process. Every controller corresponds to a browsing context.
For example, TabMediaController would correspond to the top level browsing context, which mean it can control all media in the specific tab.

* MediaControlService
As there might be multiple tabs playing audio, so there would be multiple controllers. MediaControlService is a place to manage all of them, you can access specific controller through MediaControlService by providing controller ID.
Everytime a controller becomes active, which means there is a media starts in corresponding browsing context, then controller would be added into the list of the MediaControlService. And it would be removed from the list when the media in corresponding browsering context stopped.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 19:24:45 +00:00
Drew Willcoxon 2137a9f3ed Bug 1570492 - Make browser.topSites.get({ newtab: true }) prefer sites' labels to titles. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D40112

--HG--
extra : moz-landing-system : lando
2019-08-06 23:35:33 +00:00
Toshihito Kikuchi 82aae30d17 Bug 1568610 - Delete the definition of IATThunks structure. r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D40703

--HG--
extra : moz-landing-system : lando
2019-08-06 22:58:20 +00:00
Cameron McCormack d622a3d445 Bug 1569060 - Add layout debugger command to dump process IDs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D39437

--HG--
extra : moz-landing-system : lando
2019-08-06 23:31:55 +00:00
Andreea Pavel 0e73b6bc4c Bug 1527846 - disabled new_window_same_origin.tentative.html on mac debug r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D40896

--HG--
extra : moz-landing-system : lando
2019-08-06 23:10:15 +00:00
Matthew Gaudet b8f89aa588 Bug 1569315 - Unify flags access code in FunctionFlags r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D40510

--HG--
extra : moz-landing-system : lando
2019-08-06 21:03:18 +00:00
Matthew Gaudet 969004e3aa Bug 1569315 - Clarify GC status of FunctionCreationData r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D40507

--HG--
extra : moz-landing-system : lando
2019-08-06 21:02:35 +00:00
Matthew Gaudet 4925a59731 Bug 1569315 - Make FunctionTree processing either Eager or Deferred. r=tcampbell
This makes eager processing the default as well, which makes the code
effectively work how it does before the FunctionTree patches.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 21:01:42 +00:00
Matthew Gaudet b1eb6c533c Bug 1569315 - Defer allocation of JSFunctions in the parser r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D39774

--HG--
extra : moz-landing-system : lando
2019-08-06 23:14:30 +00:00
Matthew Gaudet 0881977c36 Bug 1567579 - Defer allocation of LazyScript to after parsing r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D38699

--HG--
extra : moz-landing-system : lando
2019-08-06 20:52:26 +00:00
Kris Maglione 134e4e875e Bug 1571272: Add missing null check. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D40672

--HG--
extra : moz-landing-system : lando
2019-08-06 17:36:16 +00:00
Mike Hommey 96bb4b8b05 Bug 1571587 - Remove unused fetches. r=nalexander
More leftovers from the removal of GCC 4.9.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 18:14:37 +00:00
Mike Hommey c159931fbc Bug 1571505 - Properly add dbghelp where needed. r=nalexander
While here, properly export StackWalk.h when building with
--enable-project=memory.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 18:14:12 +00:00
Edwin Gao 70691a666b Bug 1555454 - disable browser_preferences.js test on macosx1014 due to intermittent timeout and crash r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D40865

--HG--
extra : moz-landing-system : lando
2019-08-06 20:18:58 +00:00
Geoff Brown da36fe7c54 Bug 1569982 - Respect verify annotations when running tests in mach with --verify; r=bc
Test manifest annotations like "skip-if = verify" are normally handled in mozharness:
When a TV task finds a modified test that needs verification, but that test is skipped
in verify mode, mozharness discards the test from the list of tests to be run.
When running tests locally (mach mochitest, etc), these annotations should also be
respected, and are currently handled in wpt and reftest harnesses, but not in
mochitest or xpcshell -- rectified by this patch. mochitest and xpcshell had
neglected to set mozinfo["verify"] when running in verify mode -- easily corrected.
It should be noted that when running tests locally and a single test is requested,
most test harnesses run the requested test even if it is skip-annotated. Thus,
"mach test <test> --verify" will continue to run tests annotated "skip-if = verify"
and this patch only changes the mochitest/xpcshell behavior of verify-skipped
tests when run with "mach test <directory> --verify" -- a long-running test mode
with complex logging never used in continuous integration.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 22:13:50 +00:00
Karl Tomlinson 4c081d5a5b Bug 1571622 test for absolute URL in worklet script console logging r=baku
Depends on D40768

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

--HG--
extra : moz-landing-system : lando
2019-08-06 09:06:51 +00:00
Karl Tomlinson 7519a779ac Bug 1571622 use absolute URL in CompileOptions for worklet scripts r=baku
This is consistent with ScriptLoader::FillCompileOptionsForRequest()
https://searchfox.org/mozilla-central/rev/29cce9a2684ef64c4f1f996087da8b7545d31f65/dom/script/ScriptLoader.cpp#2437
and provides that devtools can find the script.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 09:06:53 +00:00
Kristen Wright 5855268c8e Bug 1571544 - Convert the two layout.framevisibility.amountscrollbeforeupdate* prefs to static prefs. r=njn
Converts layout.framevisibility.amountscrollbeforeupdatevertical and layout.framevisibility.amountscrollbeforeupdatehorizontal to static prefs.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 23:30:33 +00:00
Kristen Wright 24117f02d3 Bug 1571544 - Convert dom.largeAllocation.testing.allHttpLoads to static pref. r=njn
Converts dom.largeAllocation.testing.allHttpLoads varcache pref to a static pref.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 23:28:34 +00:00
Kristen Wright a4cb27d0c6 Bug 1571544 - Convert two dom.ipc.processPriorityManager.* prefs to static prefs. r=njn
Converts dom.ipc.processPriorityManager.backgroundPerceivableGracePeriodMS and dom.ipc.processPriorityManager.backgroundGracePeriodMS to static prefs and removes the initializer function they were in, as they were the last prefs initialized there.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 23:26:45 +00:00
Kristen Wright 96dd3a5524 Bug 1571544 - Convert dom.ipc.processPreLaunch.delayms to static pref. r=njn
Converts dom.ipc.processPreLaunch.delayms varcache pref to a static pref.

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

--HG--
extra : moz-landing-system : lando
2019-08-07 22:58:15 +00:00
Christoph Kerschbaumer f7583bc3a8 Bug 1571937: Relax CSP for images on about:devtools to allow loading https images.r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D41210

--HG--
extra : moz-landing-system : lando
2019-08-08 15:07:48 +00:00
Vijay Budhram 8ea39bd830 Bug 1569620 - Update Fxa toolbar menu to latest skyline ux designs r=markh
Differential Revision: https://phabricator.services.mozilla.com/D40103

--HG--
extra : moz-landing-system : lando
2019-08-07 18:07:23 +00:00
Carolina 55b8795057 Bug 1568261 - Add tests for handling more than one cert received in the URL (about:certificate).r=keeler,johannh
Differential Revision: https://phabricator.services.mozilla.com/D39397

--HG--
extra : moz-landing-system : lando
2019-08-08 20:11:43 +00:00
Ed Lee 948c12ec6c Bug 1570062 - Whitelist what's new "moments" pages r=k88hudson
Use URL to parse and eTLD to extract allowed domains

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

--HG--
extra : moz-landing-system : lando
2019-08-08 19:22:38 +00:00
L. David Baron 99fc596f62 Bug 1547759 - Ensure that we call ApplyRelativePositioning after the frame's new size has been set so it works correctly for RTL. r=jfkthame,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D40568

--HG--
extra : moz-landing-system : lando
2019-08-08 20:04:40 +00:00
L. David Baron 440cf57cdd Bug 1547759 - Switch nsTableFrame to use the logical version of FinishReflowChild. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D40567

--HG--
extra : moz-landing-system : lando
2019-08-08 20:03:33 +00:00
Jed Davis eb40cac898 Bug 1565744. r=kmag,bobowen
Differential Revision: https://phabricator.services.mozilla.com/D39380

--HG--
extra : moz-landing-system : lando
2019-08-05 14:56:42 +00:00
Eric Rahm 26bdfd6480 Bug 1571836 - Enable Rust PGO on Linux64. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D40858

--HG--
extra : moz-landing-system : lando
2019-08-06 22:26:49 +00:00
Andreea Pavel 8f56db01f7 Backed out changeset d0aae34d9b95 (bug 1529068) for failing form-redirected-blocked.sub.html on a CLOSED TREE
--HG--
extra : rebase_source : 4d7a73e1f40de001031c61fba240c57961a902d8
2019-08-07 01:39:29 +03:00
Razvan Maries eedbf1137f Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
Agi Sferro 14e46e06a2 Bug 1566367 - [0.0] Fix javadoc in WebExtensionController. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D40773

--HG--
extra : moz-landing-system : lando
2019-08-06 22:03:20 +00:00
Cameron McCormack d075470483 Bug 1053379 - Simplify CodeAddressService so non-DMD users can rely on defaults. r=njn
None of the StringTable implementations were freeing their strdup'd
strings, either.

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

--HG--
extra : moz-landing-system : lando
2019-08-06 21:58:12 +00:00
Micah Tigley 3608403302 Bug 1568139 - Add a loading state for the Monitor and Lockwise cards r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D40821

--HG--
extra : moz-landing-system : lando
2019-08-06 21:08:14 +00:00
Ciure Andrei 4728534655 Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : 57383594f7dc0e3b1ef13562ed8b5d459165fda6
2019-08-07 00:47:50 +03:00
Ciure Andrei 402dbe26f2 Merge inbound to mozilla-central. a=merge 2019-08-07 00:42:56 +03:00