Nicholas Nethercote
d161939aec
Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv.
...
Because nsAString is nicer to work with than char16_t*. The patch relatedly
changes nsIEmbeddingSiteWindow::title and nsIWindowMediator::updateWindowTitle
as well.
2017-09-25 13:10:51 +10:00
Chris Peterson
e4f856dfc4
Bug 870698 - Part 11: Replace Insert(NS_LITERAL_STRING("")) with InsertLiteral(u""). r=erahm
...
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.
MozReview-Commit-ID: L9UE3gXHG4Q
2017-09-07 18:08:18 -07:00
Tom Ritter
901a8098f7
Bug 1393538 Clean up unused variables in toolkit/ r=smaug
...
MozReview-Commit-ID: I6r50dqJJHJ
2017-08-24 15:07:59 -05:00
Nicholas Nethercote
be5f8887c1
Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
...
This is straightforward, with only two notable things.
- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
throughout, because all nsXPIDLString.h did was include nsString.h. The
exception is for files which already include nsString.h, in which case the
patch just removes the nsXPIDLString.h inclusion.
- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
cover some of its ground, e.g. testing Adopt(nullptr).
2017-08-17 15:29:03 +10:00
Nicholas Nethercote
d24ecfe191
Bug 1387381 - Remove nsXPIDLString local variables. r=erahm.
...
nsXPIDLStrings are marked as VOIDED upon initialization. Most of these local
nsXPIDLString variables are immediately set via getter_Copies(), which will
either assign a string value (using Adopt()) or do SetIsVoid(). These can be
trivially converted to nsString, which will get the same treatment.
The patch suitably converts the remaining nsXPIDLString local variable as well.
2017-08-08 16:07:55 +10:00
Christoph Kerschbaumer
62012a3546
Bug 1364016 - Explicitly pass a triggeringPrincipal to openURI. r=gijs,baku
2017-07-05 21:58:21 +02:00
Andrea Marchesini
5af136db77
Bug 1363395 - nsGlobalWindow::GetLocation should support to be called on the outer window, r=smaug
2017-05-09 22:41:19 +02:00
Andrea Marchesini
43341968d2
Bug 1362003 - nsGlobalWindow::GetLocation doesn't need to receive an ErrorResult param, r=bz
...
Renaming nsGlobalWindow::GetLocation() to Location().
2017-05-08 15:49:31 +02:00
David Major
7c0497b430
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
2017-03-14 15:26:27 +13:00
Iris Hsiao
22d2818760
Backed out 12 changesets (bug 1344629) for stylo build bustage
...
Backed out changeset cf4273d3ac30 (bug 1344629)
Backed out changeset a96390e044e0 (bug 1344629)
Backed out changeset d9b330f9bc24 (bug 1344629)
Backed out changeset 2b460fe020af (bug 1344629)
Backed out changeset 0ada91b0452e (bug 1344629)
Backed out changeset 083304fcd6bd (bug 1344629)
Backed out changeset 53d7d1ce2c97 (bug 1344629)
Backed out changeset 55eee7078ae4 (bug 1344629)
Backed out changeset 7d3c06b3eca9 (bug 1344629)
Backed out changeset e5df14c3db61 (bug 1344629)
Backed out changeset 636095ff2815 (bug 1344629)
Backed out changeset 0be052ad24c1 (bug 1344629)
2017-03-14 11:52:24 +08:00
David Major
a660713d2b
Bug 1344629 - Part 6: Rewrite unnecessary uses of nsLiteralString. r=dbaron
...
There's an antipattern where nsLiteralString is used as an unnecessary intermediary in converting from CharT* to CharT*,
e.g. CallAFunctionThatTakesACharPointer(NS_LITERAL_CSTRING("foo").get());
or
NS_NAMED_LITERAL_STRING(foo, "abc");
CallAFunctionThatTakesACharPointer(foo.get());
This patch rewrites the callsites that can be trivially changed to use char*/char16_t*.
I'd somewhat like to remove nsTLiteralString::get() altogether, but in code that's less straightforward than these examples, get() is useful enough to keep.
MozReview-Commit-ID: Kh1rUziVllo
2017-03-14 15:26:27 +13:00
Ting-Yu Chou
1cc96e042d
Bug 1322465 part 11 - Use explicit/MOZ_IMPLICIT for the unary constructors in toolkit/. r=Ehsan
...
MozReview-Commit-ID: 7zdrF739NCL
2016-12-16 15:59:00 +08:00
Benjamin Smedberg
16afdb2402
Bug 1321593 part A - Refactor nsXREAppData: 1) make nsXREAppData strongly own its members 2) rename it to mozilla::XREAppData 3) separate out the static compiled data into StaticXREAppData 4) Remove XRE_CreateAppData and XRE_FreeAppData 5) remove the struct size and related size-checking code which was only ever useful for cross-version compatibility, r=glandium
...
MozReview-Commit-ID: CQv1UrSaw4D
2016-12-02 09:07:24 -05:00
Sebastian Hengst
960f717144
Backed out changeset eae2252a519f (bug 1321593) for leaks, e.g. in clipboard and jetpack tests. r=backout
2016-12-12 22:10:17 +01:00
Benjamin Smedberg
3963121e97
Bug 1321593 part A - Refactor nsXREAppData: 1) make nsXREAppData strongly own its members 2) rename it to mozilla::XREAppData 3) separate out the static compiled data into StaticXREAppData 4) Remove XRE_CreateAppData and XRE_FreeAppData 5) remove the struct size and related size-checking code which was only ever useful for cross-version compatibility, r=glandium
...
MozReview-Commit-ID: CQv1UrSaw4D
2016-12-02 09:07:24 -05:00
Emanuel Hoogeveen
c87f9edc8e
Bug 1315304 - Fix and clean up Windows console redirection code. r=ted
2016-11-04 09:59:00 -04:00
Chris Peterson
6c0f810682
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Gregory Szorc
f308e26c30
Bug 1256027 - Coerce VS2015 into compiling without warnings; r=froydnj
...
End state is Waldo's original patch, which so far has been the only
version that compiles on VS2015.
MozReview-Commit-ID: FCOaEvMqYB4
2016-03-24 08:53:30 -07:00
Jeff Walden
1042076379
Bug 1256027 - Cast a few things in varargs to the expected types for MSVC 2015 warning-compatibility. r=froydnj
2016-03-23 13:21:02 -07:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Kyle Huey
8f8794e1c7
Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz
2015-10-26 14:37:32 -07:00
Bobby Holley
eba1d18391
Bug 1208622 - Separate API entry points. r=bz
2015-09-30 16:31:46 -07:00
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Masatoshi Kimura
c6db66ba81
Bug 1091608 - Attach the console if the process is running the GTest. r=ted
2014-11-03 22:22:39 +09:00
Nicholas Nethercote
fc9811215d
Bug 1080302 (part 2) - Convert all mentions of -foo options to --foo options in comments, help messages and error messages. r=glandium.
2014-10-23 17:35:27 -07:00
Nicholas Nethercote
6b4cdbafbc
Bug 1080302 (part 1) - Add support for --foo and /foo options where it's not already present. r=glandium.
2014-10-23 17:25:19 -07:00
Panos Astithas
99151e19ec
Bug 1024110 - Change Aurora's default profile behavior to use channel-specific profiles. r=bsmedberg f=gavin,markh
2014-09-23 21:49:03 +03:00
Ehsan Akhgari
65c5aeee62
Bug 1038212 - Give nsNativeAppSupportWin a private destructor; r=bjacob
2014-07-15 14:59:20 -04:00
Trevor Saunders
c5d0801c5c
bug 966059 - add nsIDocShell::GetWindow and GetDocument r=smaug
2014-01-09 21:03:47 -05:00
Ehsan Akhgari
68bfe70f09
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Trevor Saunders
b4ae5fdd96
bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj
2013-12-12 20:50:01 -05:00
Jacek Caban
1ff8afb08c
Bug 944913 - Fixed char16_t/wchar_t mismatch in tollkit/. r=ehsan
2013-12-03 16:07:22 +01:00
Birunthan Mohanathas
b902f0393c
Bug 784739 - Switch from NULL to nullptr in toolkit/; r=ehsan
2013-10-10 16:36:42 -04:00
Bobby Holley
2c59799176
Bug 860438 - Straightforward cases. r=gabor
2013-04-18 11:36:03 -04:00
aceman
67d1ab1358
Bug 856238 - Remove unused includes of the obsolete nsISupportsArray and nsIEnumerator. r=Neil, r=bsmedberg
2013-04-08 14:35:31 -04:00
Trevor Saunders
5f4dc421fd
bug 829288 - fix some toolkit/ warnings r=ehsan
2013-01-10 06:44:15 -05:00
Ryan VanderMeulen
10f5c66a5d
Bug 787313 - Add back code that was erroneously reverted. r=ochameau
2012-09-26 18:56:49 -04:00
Alexandre Poirot
9f66efd020
Bug 787313 - Add /attach-console argument on Windows in order to attach Firefox std IO to parent console. r=ted
2012-09-25 12:58:08 -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
Geoff Lankow
7a64448b03
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Alexandre Poirot
7b2bd0dbcf
Bug 753856 - Use CONOUT$ for stderr on Windows. r=ted
2012-05-24 16:11:34 +02:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ms2ger
b8c940e642
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Alexandre Poirot
f953198a38
Bug 673383 - Output stdout in regular command line on Windows. r=ted
2012-04-28 11:04:36 -04:00
Ms2ger
54f1f6b78d
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
78bc77e39f
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02: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