Commit Graph

19 Commits

Author SHA1 Message Date
Kyle Huey
94f653c385 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
James Burke
eedc581069 Bug 1139849 - postMessage to incorrect target domain should print a console security error r=bz 2016-01-29 13:32:01 -08:00
Nathan Froyd
e4e2da55c9 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
2015-10-18 01:24:48 -04:00
Andrea Marchesini
89c14c0dbe Bug 1209919 - Improving naming and comments in StructuredCloneHelper, r=smaug 2015-09-30 13:22:08 +01:00
Andrea Marchesini
5a283a399e Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
Wes Kocher
a3c07b4f0e Backed out changeset ccfddcbccdac (bug 1204775) for sharedworker bustage 2015-09-15 11:08:09 -07:00
Andrea Marchesini
19c794ab70 Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 00:47:19 +08:00
Bobby Holley
59c4d9cf6c Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Andrea Marchesini
59b7d1ee0f Bug 1184557 - part 1 - StructuredCloneHelper class for window to window postMessage, r=smaug 2015-07-22 19:37:18 +01:00
Ryan VanderMeulen
ab9d744fd3 Backed out changesets 69542d63fcc8 and 6326eaf87f86 (bug 1184557) for causing widespread debug test assertions.
CLOSED TREE
2015-07-23 13:04:14 -04:00
Andrea Marchesini
73fe46ea7c Bug 1184557 - part 1 - StructuredCloneHelper class for window to window postMessage, r=smaug 2015-07-22 19:37:18 +01:00
Wes Kocher
5419f7038e Backed out changeset f6d29009ae0a (bug 1184557) for crashes in fetch-csp.https.html web platform tests CLOSED TREE 2015-07-22 13:57:09 -07:00
Andrea Marchesini
738bfa5c10 Bug 1184557 - StructuredCloneHelper class for window to window postMessage, r=smaug 2015-07-22 19:37:18 +01:00
Andrea Marchesini
40ecfa670a Bug 1185360 - PostMessageEvent should not have a different behavior if the main principal subsumes the destination one., r=smaug 2015-07-22 17:01:55 +01:00
Birunthan Mohanathas
47ed3a3675 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Hiroyuki Ikezoe
5b19defe46 Bug 1178172 - Fix all compile errors in dom/base on non-unified build. r=baku 2015-07-01 15:56:00 +02:00
Andrea Marchesini
949d2bb91b Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent 2015-06-17 11:44:27 +01:00
Ryan VanderMeulen
425b4d9128 Backed out changeset 1d67d747b3eb (bug 911972) for frequent linux64 debug e10s test_post_message_advanced.html timeouts.
CLOSED TREE
2015-06-15 13:06:23 -04:00
Andrea Marchesini
068d9fc360 Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent 2015-06-15 14:08:25 +01:00