gecko-dev/caps
Nicholas Nethercote dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
..
tests Bug 1186409 - Use Cu.getGlobalForObject when importing properties off a JSM global. r=kmag 2017-06-23 13:51:14 -07:00
BasePrincipal.cpp Bug 1400459 (part 1) - Remove return value from nsIAtom::ToUTF8String(). r=froydnj. 2017-09-25 16:38:18 +10:00
BasePrincipal.h Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam. 2017-09-26 08:33:21 +10:00
ContentPrincipal.cpp Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -07:00
ContentPrincipal.h Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -07:00
DomainPolicy.cpp Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu 2017-07-29 20:50:21 +09:00
DomainPolicy.h
ExpandedPrincipal.cpp Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm 2017-09-03 22:14:11 -07:00
ExpandedPrincipal.h Bug 1396449: Part 2 - Use atoms to test WebExtension permissions. r=krizsa 2017-09-03 18:51:02 -07:00
moz.build Bug 1381761 - Treating 'data:' documents as unique, opaque origins should still inherit the CSP. r=smaug,dveditz 2017-08-04 14:11:17 +02:00
nsIAddonPolicyService.idl Bug 1356334: Part 4 - Add a helper to synchronously get an extension's name from its ID. r=billm 2017-08-11 21:22:18 -07:00
nsIDomainPolicy.idl
nsIPrincipal.idl Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -07:00
nsIScriptSecurityManager.idl Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). r=bz 2017-08-06 15:31:31 +09:00
nsJSPrincipals.cpp Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
nsJSPrincipals.h
nsScriptSecurityManager.cpp Bug 1363200 - JSAPI for realms: Change a few XPConnect methods to take Realm arguments instead of JSCompartments. r=mrbkap 2017-06-28 12:31:53 -07:00
nsScriptSecurityManager.h Bug 1396449: Part 1 - Use WebExtensionPolicy objects in extension content principals. r=krizsa 2017-09-05 11:04:43 -07:00
NullPrincipal.cpp Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu 2017-07-29 20:50:21 +09:00
NullPrincipal.h Backed out 8 changesets (bug 1356334) for frequent test_ext_contentscript_async_loading.html failures on Android debug on a CLOSED TREE. 2017-08-18 11:32:18 -04:00
NullPrincipalURI.cpp Bug 1386103 (part 2, attempt 3) - Convert nsFixed[C]String uses to nsAuto[C]String. r=erahm. 2017-08-09 20:41:40 +10:00
NullPrincipalURI.h Bug 1386103 (part 2, attempt 3) - Convert nsFixed[C]String uses to nsAuto[C]String. r=erahm. 2017-08-09 20:41:40 +10:00
OriginAttributes.cpp
OriginAttributes.h
SystemPrincipal.cpp Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm. 2017-08-17 15:29:03 +10:00
SystemPrincipal.h Backed out 8 changesets (bug 1356334) for frequent test_ext_contentscript_async_loading.html failures on Android debug on a CLOSED TREE. 2017-08-18 11:32:18 -04:00