Nathan Froyd
4e6d8f6705
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
Jim Chen
60b2a7d4b1
Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp
2015-01-09 19:33:57 -05:00
Robert O'Callahan
9595e19b9a
Bug 1015664. Part 2: Remove some NS_HIDDEN usage. r=bsmedberg
2014-06-03 00:08:24 +12:00
Neil Rashbrook
e44e2015f2
Bug 869836 - Part 9a: Use AssignLiteral(MOZ_UTF16(...)) instead of Assign(NS_LITERAL_STRING(...)). r=ehsan
...
Relading with correct bug number so DONTBUILD.
2014-05-26 21:54:10 +03:00
Birunthan Mohanathas
5669f9905a
Backout 8b8bbe7aa1cc due to wrong bug number
2014-05-27 14:42:13 +03:00
Neil Rashbrook
f0f041f12d
Bug 995730 - Part 9a: Use AssignLiteral(MOZ_UTF16(...)) instead of Assign(NS_LITERAL_STRING(...)). r=ehsan
2014-05-26 21:54:10 +03:00
Birunthan Mohanathas
d4ab56898a
Bug 869836 - Part 9: Use AssignLiteral instead of Assign(NS_LITERAL_STRING(...)). r=ehsan
2014-05-22 06:48:52 +03:00
Neil Rashbrook
426cacc3fb
Bug 514280 Only use nsCOMPtr for interfaces r=bsmedberg
2014-05-11 10:47:11 +01:00
Neil Rashbrook
7ef4bd9d50
Backout of bug 514280 changeset c738f7348dea for build failure on a CLOSED TREE
2014-05-08 20:35:09 +01:00
Neil Rashbrook
940010eacd
Bug 514280 Only use nsCOMPtr for interfaces r=bsmedberg
2014-05-08 20:08:38 +01:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
James Gilbertson
9b15f2d699
Bug 757927 - Return the result of loadUriInternal instead of always returning NS_OK. r=wesj, r=blassey
2014-04-18 22:00:00 -04:00
Brad Lassey
bef6d6ce18
bug 962658 - test_badMimeType.html | Assertion count 6 is greater than expected range 0-0 assertions. on Android 4.0 Debug r=gbrown
2014-04-11 00:33:47 -04:00
snigdha
724d084f99
Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey
2014-04-01 08:29:25 -04:00
Ryan VanderMeulen
86af8bac61
Backed out changeset 6f05267b4afc (bug 798033) for Android bustage.
2014-03-05 09:55:52 -05:00
snigdha
238d3a6bf5
Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey
2014-03-05 08:47:45 -05:00
Chris Kitching
0a880a1d21
Bug 913985: Part 6 - Remove redundant AndroidBridge::Bridge() checks. r=kats
2013-11-12 10:41:01 -08:00
Chris Kitching
69fdb42135
Bug 913985: Part 5 - Refactor the Bridge to use the generated code. r=kats
2013-11-12 10:41:01 -08:00
Ryan VanderMeulen
4501219603
Backed out 7 changesets (bug 913985) for intermittent Android crashes.
...
Backed out changeset 53513a959cf0 (bug 913985)
Backed out changeset d23d1e678417 (bug 913985)
Backed out changeset a9c9187b4f4a (bug 913985)
Backed out changeset c6b02e4a3e35 (bug 913985)
Backed out changeset 895dae322e3c (bug 913985)
Backed out changeset 3d97e6a53313 (bug 913985)
Backed out changeset 892bb017f8ba (bug 913985)
2013-11-19 10:56:09 -05:00
Chris Kitching
08084ac46f
Bug 913985 - Part 6: remove redundant AndroidBridge::Bridge() checks. r=kats
2013-11-12 10:41:01 -08:00
Chris Kitching
e115439e46
Bug 913985 - Part 5: refactor the Bridge to use the generated code. r=kats
2013-11-12 10:41:01 -08:00
Chris Kitching
69f2f80f9a
Bug 794981 - Part 4: Consistently pass nsAString into the JNI methods, instead of the veritable smorgasbord of string types previously used. r=kats
2013-09-09 08:57:36 -04:00
Ian Patterson
5f7d819596
Bug 712748 - uriloader did not recognize ".jpg" filename extension because Android returned ".jpeg". r=cpeterson
2012-12-14 11:36:38 -08:00
Kartikaya Gupta
79cbb90ef7
Bug 754047 - Remove invalid assertion. r=blassey
2012-10-19 09:39:37 -04:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Wes Johnston
69be8b7139
Bug 653833 - Ignore mimetype for helperapps if it is the same as our url. r=blassey
2012-06-26 14:54:44 -07:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Neil Rashbrook
5f1b6aa125
Bug 611503 Constructing an nsTDependentString from an nsTAString makes no sense r=dbaron,dwitte
2011-09-15 08:40:17 +01:00
Doug Turner
b987b89a16
Bug 673674 - Fennec freezes when viewing a non .txt file from disk. Mime handler was returning a valid type when it clearly didn't know. r=blassey
2011-07-26 23:50:47 -07:00
Wes Johnston
ab6f7adab6
Bug 641079 - GetMimeInfoForFileExt should return a boolean. r=blassey, a=approval-2.0
2011-03-13 08:59:30 -07:00
Brad Lassey
8b6a8e1ff4
bug 638523 - Save Image saves htm, not the image r=dougt a=blocking-fennec
2011-03-08 00:45:43 -05:00
Brian Crowder
ab2f8d8efb
Bug 634555 - Do not fib in the child process about whether we have gotten mime info or not, r=blassey, sr=bz, a=blocking-fennec:2.0,blassey
2011-02-23 13:52:47 -08:00
Doug Turner
9cfbf923ef
Bug 630364 - followup to preserve mime info. external application handlers do not honor warning preferences. android-only r=blassey. a=blocking-fennec
2011-02-09 13:51:23 -08:00
Doug Turner
bf5a7fbc65
Bug 630364 - external application handlers do not honor warning preferences. r=blassey. a=blocking-fennec
2011-02-09 11:40:24 -08:00
Alex Pakhotin
42c6867b60
Bug 613080 - External URL handler service. r=bz a=blocking-fennec
2010-11-23 15:40:46 -08:00
Brad Lassey
0275c4b41f
bug 606235 - Android file picker should honor file type filters r=mwu a=blocking-fennec
2010-11-05 13:43:12 -04:00
Brad Lassey
64eeb43c1c
bug 606317 - Android crash only : Crash [@ libc.so@0x11cd0 ] occurs after opening an .ics r=doug a=blocking-fennec
2010-10-28 22:45:02 -04:00
Brad Lassey
341ee3294c
bug 582616 - Sharing back-end for Android r=mwu,mfinkle sr=stuart a=blocking-fennec
2010-09-30 11:37:36 -04:00
Brad Lassey
25dca4f4f7
bug 589851 - [Regression] protocol handlers are broken on 8/22 nightly build r=dwitte a=blocking-fennec=2.0a1+
2010-08-23 15:29:41 -04:00
Brad Lassey
3b741ddd1c
bug 588470 - Fennec crashes when opening the download manager after a download is started r=mwu a=blocking-fennec-2.0a1+
2010-08-19 18:33:06 -07:00
Brad Lassey
320a891bf9
Bug 585080 - Clicking on mailto: URI crashes the content process, r=mwu a=blocking-fennec
2010-08-12 12:15:12 -07:00
Brad Lassey
a6164e8754
bug 584896 - MIME Chooser dialog causes crash on Android r=mwu blocking-fennec=2.0a1+
2010-08-10 14:02:27 -04:00
Brad Lassey
b64261f96d
Bug 585083 - Android crash after showing external URI app chooser dialog r=mwu blocking-fennec=2.0a1+
2010-08-10 13:14:42 -04:00
Brad Lassey
0509608776
Bug 575750 - Implement support for OS protocol handlers on Android [r=mwu,bzbarsky]
2010-06-29 22:22:08 -04:00
Brad Lassey
a0b323403e
bug 565138 - Implement extloader backend for Android r=vlad
2010-06-14 15:04:16 -04:00