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

138 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner 9569721e58 Bug 1579420 - Fix remaining ESLint no-async-promise-executor issues in browser/ and toolkit/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D45010

--HG--
extra : moz-landing-system : lando
2019-09-16 17:26:58 +00:00
monikamaheshwari 9d60e0d578 Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45629

--HG--
extra : moz-landing-system : lando
2019-09-14 09:39:26 +00:00
Victor Porof b503616295 Bug 1561435 - Format toolkit/modules/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 2616392f26053ee376b9126fbca696de5d4bb15b
2019-07-05 11:15:43 +02:00
Sebastian Hengst 310add77cf Bug 1541388 - Remove Array generics from NewTabUtils.jsm. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25922

--HG--
extra : moz-landing-system : lando
2019-04-03 12:12:34 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Mark Banner 0304564ac7 Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:40 +00:00
Csoregi Natalia 9e970681f2 Backed out 2 changesets (bug 1415483) for multiple failures e.g. on test_message_manager_ipc.html. CLOSED TREE
Backed out changeset d00748de66fc (bug 1415483)
Backed out changeset 8dea94258f54 (bug 1415483)
2018-12-11 19:30:57 +02:00
Mark Banner 1abdc8687f Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 14:09:44 +00:00
Mark Banner 691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Ursula Sarracini 130d05505f Bug 1480888 - Implement blocking system for special search shortcut top sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D3035

--HG--
extra : moz-landing-system : lando
2018-08-10 19:54:24 +00:00
Brindusan Cristian 3fba2fdf68 Backed out changeset 44e1ccd1d22b (bug 1480888) for xpcshell failure on toolkit/modules/tests/xpcshell/test_CanonicalJSON.js. CLOSED TREE 2018-08-10 19:22:22 +03:00
Ursula Sarracini 24b94b7aae Bug 1480888 - Implement blocking system for special search shortcut top sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D3035

--HG--
extra : moz-landing-system : lando
2018-08-10 15:12:58 +00:00
Brindusan Cristian e40aaf2b8f Backed out changeset d103f117bb84 (bug 1480888) for xpcshell failures on /extensions/test/xpcshell/test_ext_topSites.js. 2018-08-10 08:36:36 +03:00
Ursula Sarracini 114388d304 Bug 1480888 - Implement blocking system for special search shortcut top sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D3035

--HG--
extra : moz-landing-system : lando
2018-08-09 19:52:16 +00:00
Ursula Sarracini 7c0ec8d2ba Bug 1470211 - Dismissing a Bookmarked highlight also dismisses a Saved To Pocket highlight of the same content - Part 1 r=Mardak
MozReview-Commit-ID: 4yjzEILD4Fs

--HG--
extra : rebase_source : a5470b69e408698139075aa96b82e0e0bc18484d
2018-07-31 16:13:53 -04:00
ahillier 659bda3774 Bug 1475012 - fix ordering of getTopFrecentSites in ActivityStreamProvider r=ursula
MozReview-Commit-ID: Eymz3kAoHuX

--HG--
extra : rebase_source : af84f35c0674679b17a09eacca518cc62793a499
2018-07-11 12:26:39 -07:00
Marco Bonardo d932936d53 Bug 1475276 - Remove some no more necessary usage of promiseItemGuid. r=lina
Some code is unnecessarily using promiseItemGuid

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

--HG--
extra : moz-landing-system : lando
2018-07-12 21:38:21 +00:00
Shane Caraveo 8273682972 Bug 1445836 - finalize topSites api on platform APIs that will be stable, r=Mardak,rpl
MozReview-Commit-ID: Esj5sJweJ4K

--HG--
extra : rebase_source : b965ebb11dc0038574150b78a535798a16fe7226
2018-07-06 09:33:50 -03:00
Dão Gottwald 092a352343 Bug 1472472 - Use PlacesCommandHook.bookmarkLink instead of PlacesCommandHook.bookmarkPage in activity stream. r=Mardak
MozReview-Commit-ID: EszRhVlaNky

--HG--
extra : rebase_source : e2357135b8a048415479342f8562b271985a37a8
2018-07-06 13:02:59 +02:00
Dão Gottwald 96a00916f7 Bug 1473073 - Remove PlacesCommandHook.bookmarkPage's browser argument. r=mak
MozReview-Commit-ID: BH5r7Tn8KV1

--HG--
extra : rebase_source : 845e8ec126d91f682ed09939aa89c07bd2c1078e
2018-07-03 22:46:46 +02:00
Dão Gottwald 03203945f5 Bug 1472275 - Remove PlacesCommandHook.bookmarkPage's aShowEditUI argument. r=standard8
MozReview-Commit-ID: CGYSF1OvoVg

--HG--
extra : rebase_source : 3470cd6522ae3c3e2802dfa2e032643c7fbdcb55
2018-06-29 19:45:35 +02:00
Doug Thayer abe46fa52a Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : ef8fa174f902e6abd397fb80294e83843120aa81
2018-02-14 09:11:49 -08:00
Dorel Luca d296624690 Backed out 5 changesets (bug 1340498) for build bustage due to conflicts with bug 1470325. a=backout
Backed out changeset 28bedb658af4 (bug 1340498)
Backed out changeset f950a2310e26 (bug 1340498)
Backed out changeset 5fcd31c65fe0 (bug 1340498)
Backed out changeset 515bb5e24dd7 (bug 1340498)
Backed out changeset 79a8619bd3e2 (bug 1340498)
2018-06-27 14:05:20 +03:00
Doug Thayer 0a912f9667 Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : fd064e53e8645c3914188c05e71c8800d6f2174b
2018-02-14 09:11:49 -08:00
Bogdan Tara d2fb3a8812 Backed out 5 changesets (bug 1340498) for build bustages on nsDOMCSSAttrDeclaration.h CLOSED TREE
Backed out changeset 9ebcdb66ceff (bug 1340498)
Backed out changeset 63321093bb70 (bug 1340498)
Backed out changeset f8c799971f81 (bug 1340498)
Backed out changeset 21d8c1fbbbd1 (bug 1340498)
Backed out changeset fa40c179eb0d (bug 1340498)
2018-06-26 21:31:09 +03:00
Doug Thayer 4dd5940382 Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : 1190d4f127453cdcb692deb5982e92a93e236b9e
2018-02-14 09:11:49 -08:00
Ursula Sarracini db33263bdc Bug 1468389 - Add a src parameter to Pocket URLs in Highlights r=nanj
MozReview-Commit-ID: AFjN4vR11NB

--HG--
extra : rebase_source : 012ed2f5ae068d40bfec64befe5b74695fe11aa1
2018-06-26 10:30:27 -04:00
arthur.iakab fc7e217166 Backed out 5 changesets (bug 1340498) for build bustages on SelectionChangeListener.h on a CLOSED TREE
Backed out changeset c89b86622d38 (bug 1340498)
Backed out changeset b270d4a01986 (bug 1340498)
Backed out changeset 8ed32495b46f (bug 1340498)
Backed out changeset df9a67c58183 (bug 1340498)
Backed out changeset a5977e0708ea (bug 1340498)
2018-06-26 07:59:01 +03:00
Doug Thayer 22f93b18ef Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : 1190d4f127453cdcb692deb5982e92a93e236b9e
2018-02-14 09:11:49 -08:00
arthur.iakab 8b1be0e972 Backed out 5 changesets (bug 1340498) for build bustages on SelectionChangeListener.h on a CLOSED TREE
Backed out changeset fae677707059 (bug 1340498)
Backed out changeset 2adde1d1742a (bug 1340498)
Backed out changeset a444ab9cefde (bug 1340498)
Backed out changeset e2ac49ef2034 (bug 1340498)
Backed out changeset 6465310b3de9 (bug 1340498)
2018-06-26 03:53:21 +03:00
Doug Thayer 41d49cecec Bug 1340498 - Update onVisits uses to 'page-visited' r=mak
Consuming the new 'page-visited' notification was fairly trivial,
since it was already brought over to onVisits. There's not much to
say about this other than that I'm a little bit uncertain about
all the hoops we have to jump through to get a JSContext and
GlobalObject from History.cpp (which is discussed in the earlier
commit in the series).

MozReview-Commit-ID: LHaBWSylyLI

--HG--
extra : rebase_source : 148555189f73fb29a48296215e367c406f3f0286
2018-02-14 09:11:49 -08:00
arthur.iakab da61445198 Backed out changeset 73f940527757 (bug 1468389) for failing xpcshell tests on test_NewTabUtils.js on a CLOSED TREE 2018-06-26 01:08:03 +03:00
Ursula Sarracini ab9d2957d0 Bug 1468389 - Add a src parameter to Pocket URLs in Highlights r=nanj
MozReview-Commit-ID: 55tSoA2Pqgy

--HG--
extra : rebase_source : 3ed60d179be6d168e3fbf4aea494e1afd9cbcc7e
2018-06-25 17:14:50 -04:00
Marco Bonardo c77855f4fe Bug 1458910 - Merge nsPIPlacesDatabase into nsINavHistoryService. r=standard8
MozReview-Commit-ID: LacXKR32Jn3

--HG--
extra : rebase_source : 27f7d939ab9acab6eb4896e8fc1348e74aee35cf
2018-05-10 10:39:12 +02:00
Kris Maglione a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Ursula Sarracini 98fd9cb926 Bug 1452732 - Add date_added fields to different highlight types r=andreio
MozReview-Commit-ID: JY4HABQRJr4

--HG--
extra : rebase_source : f5bf036f889ebbf585a8bb9d2e5e4977f914569a
2018-04-09 15:33:18 -04:00
Ed Lee eea493250a Bug 1448443 - Add custom images, failed thumbnails and bug fixes to Activity Stream. r=ursula
MozReview-Commit-ID: ApYxjUOVli7

--HG--
extra : rebase_source : ea45ccd783269a7171aa25da316ff0258ad88951
2018-03-23 12:20:10 -07:00
Marco Bonardo 36e5d86043 Bug 1446951 - 3 - Make AsyncExecuteLegacyQueries singular. r=standard8
MozReview-Commit-ID: KyYw92tzyN6

--HG--
extra : rebase_source : 0c31233d251c7b0062047ab12b52d25fbc9510f5
2018-03-16 18:10:09 +01:00
Shane Caraveo a223322928 Bug 1444579 - fix use of places provider for topSites api, r=Gijs,kmag
MozReview-Commit-ID: 8GTl9BLQdge

--HG--
extra : rebase_source : 23d216b16d0967735d36b52b27ce268ff7ba6cb1
2018-03-14 19:58:15 -05:00
Gijs Kruitbosch 0b74070674 Bug 1433133 - remove unused prefs and exported bits from NewTabUtils.jsm, r=dao
MozReview-Commit-ID: 75xPd5hKexV

--HG--
extra : rebase_source : 31fed5ea4584098112aa00f4d6189f9605a6520a
2018-03-06 22:56:07 +00:00
Ursula Sarracini 12bbfa710e Bug 1441931 - Use open_url provided by Pocket for 'saved to pocket' items in highlights r=Mardak
MozReview-Commit-ID: 5St8NablevZ

--HG--
extra : rebase_source : d58ee8389060632616818c012a4d6b61eae9c1e1
2018-02-28 14:16:46 -05:00
k88hudson 39dfbe5bf6 Bug 1431470 - Add getTotalBookmarksCount to NewTabUtils.jsm r=ursula
MozReview-Commit-ID: BlcBcMap2Xw

--HG--
extra : rebase_source : d1e523f4a290528868646d52302b219dbe9c781e
2018-02-27 17:50:16 -05:00
Florian Quèze c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Valentin Gosu ed218f0a19 Bug 1433958 - Change code that sets nsIURI.scheme to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: GgyIkZSG2y3

--HG--
extra : rebase_source : 5398a29d8cb910c909ed88e1a6cbd9fd63e6b745
2018-02-26 20:43:47 +01:00
Ursula Sarracini bc4e25c04f Bug 1440768 - Improve saved to pocket stories caching and updating r=Mardak
MozReview-Commit-ID: 3pHJSBVekWE

--HG--
extra : rebase_source : 38224f399fdbfff50a2d045d4d65242e3ead2a48
2018-02-26 14:17:09 -05:00
Florian Quèze 682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Ursula Sarracini 311d093d9a Bug 1440389 - Invalidate Pocket cache when blocking a link r=Mardak
MozReview-Commit-ID: Beh7bGKOizJ

--HG--
extra : rebase_source : 1e20ceed8f923fb2c2407b755d6d84ab5a81cb6d
2018-02-22 12:12:50 -05:00
Ursula Sarracini 3ed65bb2b9 Bug 1439684 - Add caching to NewTabUtils for saved to Pocket items r=Mardak
MozReview-Commit-ID: LLHD9TKnKA8

--HG--
extra : rebase_source : d7901275e39beadf8bbf3e19ee633fc99151f226
2018-02-21 11:42:53 -05:00
Ursula Sarracini 9c4753f4d6 Bug 1438658 - Allow pktApi.jsm to archive an item r=Mardak
MozReview-Commit-ID: JoTzYy84ZI5

--HG--
extra : rebase_source : ef4f11f414b4c2bd551d3c62ee165ca1d89795e8
2018-02-16 11:38:37 -05:00
Ursula Sarracini 099e0fe989 Bug 1436449 - Rename item_id to pocket_id for clearer way to identify saved Pocket items in NewTabUtils r=Mardak
MozReview-Commit-ID: 5DifxvQ6qF5

--HG--
extra : rebase_source : f2c5b79341a9467fb6bef6baa441e44f1a02ce19
2018-02-09 15:24:31 -05:00