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

14 Коммитов

Автор SHA1 Сообщение Дата
Yoshi Huang f69409d97b Bug 1315927 - ignore firstPartyDomain and userContextId in PermissionStatus. r=baku 2016-11-09 18:04:31 +08:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Birunthan Mohanathas e53e26f42e Bug 1105827 - Part 11: Use nsRefPtr to store PermissionStatus. r=baku 2015-07-31 14:56:59 -07:00
Birunthan Mohanathas e08489fa66 Bug 1105827 - Part 10: Fire change event for PermissionStatus objects. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas 4e546017c9 Bug 1105827 - Part 9: Add PermissionObserver to watch for perm-changed notifications. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas 9b37a607e3 Bug 1105827 - Part 8: Move permission checking into PermissionStatus. r=baku 2015-08-21 19:53:29 -07:00
Birunthan Mohanathas 02595ce842 Backed out changeset fc34b9b8e874 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas 8eab0f2e68 Backed out changeset 7ee1772ffc10 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas af382947b1 Backed out changeset b78a97800675 (bug 1105827) 2015-08-11 10:04:35 -07:00
Birunthan Mohanathas 39a3ef841c Bug 1105827 - Part 10: Fire change event for PermissionStatus objects. r=baku 2015-07-31 15:57:02 -07:00
Birunthan Mohanathas fd1e77d8fa Bug 1105827 - Part 9: Add PermissionObserver to watch for perm-changed notifications. r=baku 2015-07-31 15:53:46 -07:00
Birunthan Mohanathas 7b8a267e19 Bug 1105827 - Part 8: Move permission checking into PermissionStatus. r=baku
This is in prepartion of a subsequent change where we will update the state
within PermissionStatus.
2015-07-31 15:53:10 -07:00
Birunthan Mohanathas 35a22756c6 Bug 1105827 - Part 1: Add stub PermissionStatus implementation. r=baku 2015-07-28 06:33:46 -07:00