Commit Graph

95 Commits

Author SHA1 Message Date
Victor Porof
4a06c925ac Bug 1561435 - Format toolkit/components/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : b5be5b4f4b47c256e28a29f665dc754f6407ee7f
2019-07-05 11:14:05 +02:00
Andrew Swan
f1d137eff5 Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships
A bunch of existing code assumes that <tab> elements are the immediate
and only children of a <tabs> element, and uses dom apis to traverse
relationships between these elements.  To simplify conversion of <tabs>
to a custom element (and hopefully improve readability a bit at the same
time!), introduce new apis:

On <tab>
this.parentNode -> this.container
this.nextElementSibling -> this.container.findNextTab(...)
this.previousElementSibiling -> this.container.findNextTab(...)

On <tabs>
this.children -> this.allTabs

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

--HG--
extra : source : f4e21e465f384b90fa1e768141c4db708748bf66
extra : histedit_source : 95d8a4242e8e04df9e29c2b647558d37e910b845
2019-06-11 14:49:46 -07:00
Ciure Andrei
c04368fddd Backed out 3 changesets (bug 1555060) for causing test_tabbar.py to perma fail CLOSED TREE
Backed out changeset a5c6deeda8a9 (bug 1555060)
Backed out changeset f4e21e465f38 (bug 1555060)
Backed out changeset c71c45fe3e63 (bug 1555060)

--HG--
rename : browser/base/content/tabbrowser-tabs.js => browser/base/content/tabbrowser.xml
2019-06-28 00:21:50 +03:00
Andrew Swan
6fd54d15e6 Bug 1555060 Stop using dom structure for <tabs>/<tab> relationships
A bunch of existing code assumes that <tab> elements are the immediate
and only children of a <tabs> element, and uses dom apis to traverse
relationships between these elements.  To simplify conversion of <tabs>
to a custom element (and hopefully improve readability a bit at the same
time!), introduce new apis:

On <tab>
this.parentNode -> this.container
this.nextElementSibling -> this.container.findNextTab(...)
this.previousElementSibiling -> this.container.findNextTab(...)

On <tabs>
this.children -> this.allTabs

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

--HG--
extra : rebase_source : affeda0295a5195124709f322de524aea3a28a3f
2019-06-11 14:49:46 -07:00
Andrea Marchesini
b1b122fb20 Bug 1554464 - Merge nsICookie2 and nsICookie in 1 single interface, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D33031

--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Andrea Marchesini
4c6ace6ac6 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214

--HG--
extra : moz-landing-system : lando
2019-05-29 15:55:03 +00:00
arthur.iakab
944263f18a Backed out 5 changesets (bug 1551798) for multiple build bustages on StaticPrefList.h CLOSED TREE
Backed out changeset c89daff34d97 (bug 1551798)
Backed out changeset bbc3f88b8c03 (bug 1551798)
Backed out changeset b87996b8a411 (bug 1551798)
Backed out changeset d88b0002d736 (bug 1551798)
Backed out changeset 0fe740c90e2b (bug 1551798)
2019-05-29 18:07:26 +03:00
Andrea Marchesini
e9bbb85ed1 Bug 1551798 - Rename nsICookie2.SAMESITE_UNSET to nsICookie2.SAMESITE_NONE, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D31214

--HG--
extra : moz-landing-system : lando
2019-05-24 15:18:49 +00:00
Ryan Hunt
3675f2449b Bug 1534395 - Rename nsITabParent to nsIRemoteTab. r=nika,mconley
nsITabParent is exposed to frontend code and is generally used as a representation of a remote tab. We could just rename the interface to nsIBrowserParent and worry about it later, but I think it's better to rename the interface to nsIRemoteTab so that we can later work on splitting the interface away from the PBrowser protocol.

Note: Some frontend code refers to a TabParentId. This commit renames this to RemoteTabId. We need to figure out the purpose of TabId with fission.

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

--HG--
rename : dom/interfaces/base/nsITabParent.idl => dom/interfaces/base/nsIRemoteTab.idl
extra : rebase_source : 9d8a1790a7bb10195ad063644d1a93d63b2afb72
2019-04-09 15:59:37 -05:00
Jonathan Kingston
2b27f3c10d Bug 1479433 - Changing icons and colors for containers to be class based. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D24918

--HG--
extra : moz-landing-system : lando
2019-04-10 11:19:00 +00:00
Mark Banner
dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +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
Andrea Marchesini
562202c9bd Bug 1512485 - Introduce nsIClearDataService.deleteDataFromOriginAttributesPattern, r=johannh 2018-12-09 13:19:04 +01:00
Shane Caraveo
de4efccc84 Bug 1510700 wait for ContextualIdentityService before updating Discovery cookies r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D13291

--HG--
extra : moz-landing-system : lando
2018-11-28 19:14:10 +00:00
Andrea Marchesini
61a7f9a598 Bug 1260399 - Remove deprecated messages in nsICookieManager methods - part 1 - nsICookieManager.add(), r=ehsan 2018-09-24 11:37:56 +02: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
Kris Maglione
6adf9223ce Bug 1484496: Part 5b - Convert toolkit/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3730

--HG--
extra : rebase_source : 935f166ec2c6581ba6f3fffe912404e81c8dc3d6
extra : histedit_source : ba701801de5205dcce6cfdccabe7b26aa7c7859c
2018-08-18 19:27:50 -07:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Luca Greco
67f1450920 Bug 1406181 - Add identity reserved for storage.local extension API to ContextualIdentityService. r=baku
MozReview-Commit-ID: APi7yJnuDe2

--HG--
extra : rebase_source : d31a325b84a2b1e39eb5422d5152058968c390a7
2018-02-21 15:23:45 +01:00
Cosmin Sabou
835f7407b3 Backed out 10 changesets (bug 1406181) as per developers request.
Backed out changeset 06461ddb2699 (bug 1406181)
Backed out changeset fd61d9faedf0 (bug 1406181)
Backed out changeset b52c2fb70ae1 (bug 1406181)
Backed out changeset 4f387b4a76a9 (bug 1406181)
Backed out changeset db783c96c076 (bug 1406181)
Backed out changeset 62e9126ecd0d (bug 1406181)
Backed out changeset d34810cab822 (bug 1406181)
Backed out changeset 3241c2dfb296 (bug 1406181)
Backed out changeset 912a2eaf4d26 (bug 1406181)
Backed out changeset fdac47b8ef20 (bug 1406181)
2018-06-03 16:10:23 +03:00
Luca Greco
fec6069951 Bug 1406181 - Add identity reserved for storage.local extension API to ContextualIdentityService. r=baku
MozReview-Commit-ID: APi7yJnuDe2

--HG--
extra : rebase_source : 4eaf888d863ab33eab5b74f38087ac27481d37b3
2018-02-21 15:23:45 +01: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
Kris Maglione
a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Mark Banner
2e4db142aa Bug 1440761 - Enable no-unused-vars for global scope on jsm files in toolkit/. r=mossop
MozReview-Commit-ID: 7Okqmw5dBcL

--HG--
extra : rebase_source : 6fff67e5e4bf483e6903a68a713d0b7d6c659d3b
2018-02-23 19:25:59 +00: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
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Andrea Marchesini
a624206f37 Bug 1429146 - Cleanup the ContextualIdentityService migration data, r=jkt 2018-01-09 21:52:00 +01:00
Andrea Marchesini
910d45154c Bug 1425979 - test_migration2to3 should be executed only if in nightly, r=jkt 2017-12-28 13:56:43 +01:00
Andrea Marchesini
92be2a4461 Bug 1419589 - ContextualIdentityService should reset all the container data when resetting the identities, r=jkt 2017-11-29 08:52:03 +01:00
Andrea Marchesini
27d1856945 Bug 1419591 - Test for migration 2 to 3 for ContextualIdentityService data, r=jkt 2017-11-29 08:51:26 +01:00
Andrea Marchesini
06ee36bb23 Bug 1419591 - Migration 2 to 3 for ContextualIdentityService deletes all the container cookies, r=jkt 2017-11-29 08:51:10 +01:00
Csoregi Natalia
d2b537c2ff Backed out 3 changesets (bug 1419591, bug 1419589) for failing Chrome tests on Linux Debug toolkit/content/tests/chrome/test_bug437844.xul. r=backout on a CLOSED TREE
Backed out changeset 213e5dc04b90 (bug 1419589)
Backed out changeset 47b38ef21292 (bug 1419591)
Backed out changeset bcc1d13d74ac (bug 1419591)

--HG--
extra : rebase_source : cdd3e942b9a67f9ee1372170d13f594b35950273
2017-11-29 04:46:28 +02:00
Andrea Marchesini
3f6ed4bb10 Bug 1419589 - ContextualIdentityService should reset all the container data when resetting the identities, r=jkt 2017-11-28 14:35:28 +01:00
Andrea Marchesini
cb2238f676 Bug 1419591 - Test for migration 2 to 3 for ContextualIdentityService data, r=jkt 2017-11-28 14:34:36 +01:00
Andrea Marchesini
f890e8ef60 Bug 1419591 - Migration 2 to 3 for ContextualIdentityService deletes all the container cookies, r=jkt 2017-11-28 14:34:09 +01:00
Bob Silverberg
ea5edb4f6a Bug 1404584 Part 3: Convert ExtensionPreferencesManager to use update and uninstall events, r=aswan,jkt
This includes removing the "web-extension-preferences-replacing" and "web-extension-preferences-replaced"
notifications as they are no longer needed.

MozReview-Commit-ID: IjNf4BImgas

--HG--
extra : rebase_source : a48e72c291ebd509d19e9e94196d3600eb7328c4
2017-11-01 09:51:41 -04:00
Ian Moody
4049c95d4d Bug 1416468 - Share container data parsing instead of duplicating it. r=baku a=baku 2017-11-14 01:55:17 +01:00
Andrea Marchesini
207b8d909e Bug 1347515 - Get rid of nsIJSON.decodeFromStream, r=qdot 2017-11-10 00:27:22 +01:00
Jonathan Kingston
79802d262c Bug 1407209 - Add observer for preference changes whilst extensions are being updated. r=aswan,baku,bsilverberg
MozReview-Commit-ID: 5CqpYDc4tCg

--HG--
extra : rebase_source : 0170a0685d930a8fb1f7ca6b2e7206c0a655abe2
2017-10-16 18:44:50 +01:00
Kris Maglione
821308e4d1 Bug 1391110: Part 4 - Remove unnecessary nsIFrameLoaderOwner QIs. r=smaug
The FrameLoaderOwner interface has been implemented in WebIDL for several
years now, so these QIs are simply unnecessary overhead.

MozReview-Commit-ID: LAzvfm5Qhy0

--HG--
extra : rebase_source : 2495c07df21c474f5fabc257ff4db43b0d8047e4
2017-08-19 13:32:58 -07:00
Jonathan Kingston
e85c570484 Bug 1354602 - Enabling containers for container addons on startup. r=aswan,mconley,zombie
MozReview-Commit-ID: BXLyQz8CGDl

--HG--
extra : rebase_source : a969c5ff0615a461b33a9ee82f9459c883421c61
2017-08-13 16:17:41 +01:00
Jonathan Kingston
8b9c63db85 Bug 1390118 - Skip contextual identity test for Thunderbird r=aswan,jorgk+176914
MozReview-Commit-ID: IJscYunK0cH

--HG--
extra : rebase_source : 8ac4901eef603711984cc8dd2636ea241d29af03
2017-08-14 14:42:23 +01:00
Jonathan Kingston
8c2a7e0104 Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt

--HG--
extra : rebase_source : 6f43dd8c245a180a10ef9b38b2a5de5b89b93248
2017-05-14 00:39:32 +01:00
Wes Kocher
9b971049a6 Backed out changeset 31db4b302143 (bug 1344519) for android xpcshell test_basic.js failures a=backout CLOSED TREE
MozReview-Commit-ID: KUR8cqMGGDJ
2017-08-03 19:04:09 -07:00
Jonathan Kingston
5a77d88f1b Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt

--HG--
extra : rebase_source : b4369d2657f428d61b1359875c32d0d6fb4dd3f3
2017-05-14 00:39:32 +01:00