Eric Rahm
8211d94335
Bug 1164559 - Part 1: Remove instances of #ifdef PR_LOGGING in storage. r=froydnj
...
PR_LOGGING is now always defined, we can remove #ifdefs checking for it.
2015-05-14 10:13:24 -07:00
Mike Hommey
924c9eb636
Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
...
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
Wes Kocher
10fec54e1c
Merge fx-team to m-c a=merge CLOSED TREE
2015-04-29 16:46:00 -07:00
Ben Kelly
81dce6f7c5
Bug 1154325 P1 Add convenience routines to bind and get Blobs as strings. r=asuth
2015-04-29 09:03:15 -07:00
Marco Bonardo
7fea255279
Bug 1159303 - Reduce noise due to sort operations warnings. r=bent
2015-04-28 22:35:48 +02:00
Andrea Marchesini
ade2831035
Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan
2015-04-22 08:29:24 +02:00
Denis Volk
32e981896d
Bug 1095098 - move do_QueryObject templates into their own header; r=froydnj
2015-04-15 12:47:03 -04:00
Ben Kelly
38cbbf3fb9
Bug 1155193 Proxy release the Connection in mozStorageService::unregisterConnection(). r=asuth
2015-04-16 19:12:36 -07:00
Marco Bonardo
9239599394
Bug 1149373 - Ensure mozStorage async threads are shut down. r=bent
2015-04-14 16:11:54 +02:00
Chirag Bhatia
8f1a6fdc91
Bug 1067054
- Remove generic SQLITE_ERROR warning & suppress warning if transaction exists. r=mak
...
--HG--
extra : rebase_source : 126e1918f828eef3374968cde8ca394a0f856376
2015-04-10 13:16:00 +02:00
Ben Turner
630eacc28d
Bug 1131776 - Use WITHOUT ROWID tables for IndexedDB, r=janv.
2015-02-16 09:48:14 -08:00
Ben Turner
04cd5da921
Bug 866846 - Use WAL journal mode for IndexedDB databases, r=janv.
2015-01-24 08:16:26 -08:00
Ben Turner
056431018e
Bug 1071360 - Fix async storage connection closing when open fails, r=asuth.
2015-03-27 22:45:28 -07:00
Mike Hommey
c39e359c7d
Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Wes Kocher
f8f506a4f1
Backed out changeset 8a8e8efa5d38 (bug 866846)
2015-03-30 19:45:59 -07:00
Wes Kocher
23dabfd770
Backed out changeset 14b9b4827805 (bug 1131776)
2015-03-30 19:45:55 -07:00
Wes Kocher
7a4995bb97
Backed out changeset d4fdf509f242 (bug 1071360)
2015-03-30 19:45:53 -07:00
Ben Turner
89115ceb72
Bug 1071360 - Fix async storage connection closing when open fails, r=asuth.
2015-03-30 13:33:39 -07:00
Ben Turner
ad62e4a206
Bug 1131776 - Use WITHOUT ROWID tables for IndexedDB, r=janv.
2015-02-16 09:48:14 -08:00
Ben Turner
f9c5b7e194
Bug 866846 - Use WAL journal mode for IndexedDB databases, r=janv.
2015-01-24 08:16:26 -08:00
Andrew McCreight
2f48802ae0
Bug 1147572 - Remove implementation language field from DOM class info. r=jst
2015-03-30 10:45:39 -07:00
Phil Ringnalda
74fbc95715
Backed out 5 changesets (bug 866846, bug 1131776, bug 1131766, bug 1144806, bug 1112702) on suspicion of causing Windows debug devtools-4 storage crashes
...
CLOSED TREE
Backed out changeset 142d9ae5826c (bug 1131776)
Backed out changeset 0b4de21b759f (bug 1112702)
Backed out changeset 1b4ead852ae0 (bug 1131766)
Backed out changeset cbd862dd036f (bug 866846)
Backed out changeset 178412a2fe8b (bug 1144806)
2015-03-29 12:55:11 -07:00
Andrew McCreight
46dfeaba0b
Bug 1148070 - Change nsIClassInfo::getHelperForLanguage() to getScriptableHelper(). r=bholley
2015-03-29 07:52:54 -07:00
Ben Turner
98536af974
Bug 1131776 - Use WITHOUT ROWID tables for IndexedDB, r=janv.
...
--HG--
extra : rebase_source : 9cba58701e0f6bf4c3d6deb784b5c8340fd895ac
2015-02-16 09:48:14 -08:00
Ben Turner
85be2eae91
Bug 866846 - Use WAL journal mode for IndexedDB databases, r=janv.
...
--HG--
extra : rebase_source : 6bd130ec0bdbeacde6b725ee16736083775f8ca7
2015-01-24 08:16:26 -08:00
Andrea Marchesini
e6f385fb3d
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Marco Bonardo
ae5c54db33
Bug 1005991 - trivial fixes for non-unified builds. r=me
2015-03-24 01:09:13 +01:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Marco Bonardo
fbb580fcfc
Bug 1005991 - mozStorage should not use XPCVariant off the main thread. r=asuth
2015-03-12 17:55:56 +01:00
Jon Coppeard
a451fdfd83
Bug 963921 - Clients of the JS API should use JS_DefineElement where appropriate r=smaug
2015-03-02 13:31:15 +00:00
Nicholas Nethercote
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Marco Bonardo
b04ae3b1d2
Bug 998330 - MinimizeMemory should happen on the opener thread, not on main-thread. r=asuth
2015-01-28 00:00:23 +01:00
Ben Turner
afaefae6c7
Bug 1126129 - Only enable SQLite tracing when the right environment variable is set, r=asuth.
2015-01-26 19:38:49 -08:00
Ehsan Akhgari
73e2210610
Bug 1118414 - Mark virtual overridden functions as MOZ_OVERRIDE in storage; r=mak
2015-01-24 14:51:49 -05:00
Ehsan Akhgari
1e88271572
Bug 1119268 - Mark virtual overridden functions as MOZ_OVERRIDE in misc code; r=bsmedberg
2015-01-12 23:26:30 -05:00
Wes Kocher
4a8e595770
Backout c034dba7a417
2015-01-12 14:46:48 -08:00
Ehsan Akhgari
d517a30886
Bug 1119268 - Mark virtual overridden functions as MOZ_OVERRIDE in misc code; r=bsmedberg
2015-01-12 16:35:06 -05:00
Tom Schuster
9dfe5c2fd4
Bug 1097267 - Change the enumerate hook usage in XPC and browser. r=bholley
2014-12-11 19:31:10 +01:00
Tom Schuster
bc28949aec
Bug 993026 - Change XPIDLScriptable NewResolve to simpler Resolve. r=bholley
2014-11-08 01:07:12 +01:00
Mike Hommey
47c853314f
Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
...
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.
Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.
Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Bobby Holley
8e4a68387a
Bug 857138 - Add some cx parameters. r=bz
2014-10-23 19:53:31 +02:00
Andrew Halberstadt
d292ee73f1
Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester
2014-10-07 18:18:28 -04:00
Shu-yu Guo
59ccd2fecb
Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin)
2014-09-15 16:30:47 -07:00
Marco Bonardo
8d53c1682e
Bug 1047811 - Part 1 - Allow to commit a main-thread Storage transaction asynchronously. r=asuth
2014-09-10 12:46:14 +02:00
Carsten "Tomcat" Book
c70ad543f3
Backed out changeset bc1363a17e0e (bug 1047811) for bustage
2014-09-10 13:08:07 +02:00
Marco Bonardo
681d2c0c88
Bug 1047811 - Part 1 - Allow to commit a main-thread Storage transaction asynchronously. r=asuth
2014-09-10 12:46:14 +02:00
Chris Peterson
d126c3c24f
Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem
2014-07-21 21:43:21 -07:00
Ehsan Akhgari
41ee47f38a
Bug 1061053 - Fix more bad implicit constructors in storage; r=mak
...
--HG--
extra : rebase_source : a18eaa1cf7968fb5b8c8923d85bd99d77c427e6e
2014-09-03 18:25:57 -04:00
Mike Hommey
0060683747
Bug 1059090 - Don't require SOURCES to be set for CPP_UNIT_TESTS and SIMPLE_PROGRAMS. r=mshal
2014-09-03 14:16:37 +09:00
Mike Hommey
ed70c5f377
Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps
2014-09-03 14:10:54 +09:00
Ehsan Akhgari
b1b56df2fe
Bug 1061254 - Fix more bad implicit constructors in misc. components; r=bsmedberg
2014-09-02 18:24:49 -04:00
Eric Rahm
fd41273704
Bug 1049068 - Part 5: Remove unused CallStack params. r=froydnj
...
--HG--
extra : rebase_source : bb83004815186347253090a334b97f1587997a38
2014-08-08 11:43:58 -07:00
Ehsan Akhgari
23c01b7b38
Bug 1048272 - Fix some bad implicit constructors in storage; r=mak
...
--HG--
extra : rebase_source : 5fe5099a330cf53fda89f47e76429f1c16f19b06
2014-08-07 19:47:28 -04:00
Mike Hommey
89777800f9
Bug 1047267 - Move remaining OS_LIBS and EXTRA_LIBS to moz.build. r=gps
...
* * *
Bug 1047267 - To fold with "Move remaining OS_LIBS and EXTRA_LIBS to moz.build"
2014-08-07 14:21:03 +09:00
Mike Hommey
d9443ec932
Bug 1045783 - Move most OS_LIBS to moz.build and do some related cleanup. r=mshal
2014-08-06 07:25:33 +09:00
Nathan Froyd
12c76f15f7
Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium
2014-07-24 11:55:33 -04:00
Mike Hommey
5f6ba110e6
Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps
2014-07-29 08:55:55 +09:00
Mike Hommey
7cab62150a
Bug 1041936 part 2 - Directly use the static library "xul" to link into "xul-gtest" instead of having an intermediate library "xul" used by "xul-shared" and "xul-gtest". r=gps
2014-07-23 13:33:09 +09:00
Mike Hommey
95063176fa
Bug 1036894
part 9 - Replace all EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS with EXTRA_LIBS, OS_LIBS or OS_LDFLAGS, appropriately. r=gps
...
OS_LIBS for libraries that are not part of the gecko tree, EXTRA_LIBS for
libraries, such as NSPR, that are in the tree, but are not handled by
moz.build just yet. Those EXTRA_LIBS may also come from a system library.
However, in cases where the expanded variables are always empty for the
in-tree case, OS_LIBS is used (as for, e.g. MOZ_ZLIB_LIBS). OS_LDFLAGS is
used exclusively for non-library linker flags.
Always pass EXTRA_LIBS before OS_LIBS on linker command lines.
Forbid EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS in Makefiles.
2014-07-23 13:31:02 +09:00
Mike Hommey
5fab42fcaf
Bug 1036894
part 8 - Move most in-tree library linkage information to moz.build, as USE_LIBS. r=gps
2014-07-23 13:30:52 +09:00
Mike Hommey
6d6d400ea1
Bug 1036894
part 6 - Emit SimplePrograms for CPP_UNIT_TESTs, and make the corresponding moz.build config look like that of SIMPLE_PROGRAMS. r=gps
2014-07-23 13:29:44 +09:00
Mike Hommey
622bf09730
Bug 1041864 - Remove LIBRARY_NAMEs that aren't used. r=mshal
2014-07-23 08:39:56 +09:00
Mike Hommey
bc5d6801bb
Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal
2014-07-23 08:37:51 +09:00
Mike Hommey
d3f990ebdb
Bug 1040639 - Remove LIBS_DIR. r=mshal
2014-07-19 08:42:16 +09:00
Andrew McCreight
c3a80ae7ac
Bug 1038207 - Fix various classes that reimplement nsISupports. r=ehsan
2014-07-14 12:21:34 -07:00
Jan de Mooij
8772025bff
Bug 1034689
part 3 - Fix remaining places in Gecko to handle Latin1 strings. r=bz
2014-07-12 09:43:08 +02:00
Benoit Jacob
5c26f530f0
Bug 1035394 - Fix dangerous public destructors in storage - r=bent
2014-07-08 17:23:17 -04:00
Jan de Mooij
44da586636
Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz
2014-07-05 17:30:54 +02:00
Jim Blandy
7e20285e70
Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
...
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):
- Never set the buffer's mode.
Years ago, Emacs did not have a good JavaScript mode, so it made sense
to use Java or C++ mode in .js files. However, Emacs has had js-mode for
years now; it's perfectly serviceable, and is available and enabled by
default in all major Emacs packagings.
Selecting a mode in the -*- file variable line -*- is almost always the
wrong thing to do anyway. It overrides Emacs's default choice, which is
(now) reasonable; and even worse, it overrides settings the user might
have made in their '.emacs' file for that file extension. It's only
useful when there's something specific about that particular file that
makes a particular mode appropriate.
- Correctly propagate settings that establish the correct indentation
level for this file: c-basic-offset and js2-basic-offset should be
js-indent-level. Whatever value they're given should be preserved;
different parts of our tree use different indentation styles.
- We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
Remove tab-width: settings, at least in files that don't contain tab
characters.
- Remove js2-mode settings that belong in the user's .emacs file, like
js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Benoit Jacob
666893d878
Bug 1028588 - Fix dangerous public destructors in storage/ - r=bent
2014-06-23 18:40:03 -04:00
Birunthan Mohanathas
51ba75d135
Bug 1016240 - Exterminate CR+LF line endings. r=briansmith,cpearce,ehsan,gavin
2014-06-18 17:56:02 -07:00
Nicholas Nethercote
aaf6fb2124
Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
...
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Jan Beich
6cae557a25
Bug 1026828 - Restore MOZ_STORAGE_MEMORY for system jemalloc after bug 938730. r=glandium
2014-06-17 17:55:00 +02:00
Robert O'Callahan
cbb8fdebfc
Bug 1015664
. Part 1: Remove NS_HIDDEN_() usage. r=bsmedberg
2014-06-03 00:08:21 +12:00
Victor Porof
9ce7e9c089
Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj
2014-05-23 17:12:29 -04:00
Birunthan Mohanathas
59b969f7f4
Bug 869836 - Part 8: Use `Append('c')` instead of `Append("c")`. r=ehsan
2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
aea8617b92
Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
0e6f3a6562
Bug 869836 - Part 3: Use `Append('c')` instead of `AppendLiteral("c")`. r=ehsan
2014-05-22 06:48:51 +03:00
Birunthan Mohanathas
19bebbc68d
Bug 869836 - Part 2: Use AppendLiteral instead of `Append(NS_LITERAL_STRING(...))`. r=ehsan
2014-05-22 06:48:50 +03:00
Daniel Holbert
21f04fddf9
Bug 1003907: Annotate storage/src as FAIL_ON_WARNINGS. r=mak
2014-05-01 09:31:54 -07:00
Daniel Holbert
01e4365085
Bug 1003902: Drop 'const' qualifier from arg in EscapeStringForLIKE() function-decl to make it match the IDL-generated decl. r=mak
2014-05-01 09:31:54 -07:00
Chris Peterson
a6ddabc2bf
Bug 1002891 - Fix -Wunused-variable warning in storage. r=mak
2014-04-28 19:41:18 -07:00
Daniel Holbert
ceb0c0ab11
Bug 1003921: Use NS_WARN_IF_FALSE instead of NS_WARN_IF to fix warning in mozStorageAsyncStatementExecution.cpp. r=mak
2014-04-30 15:41:05 -07:00
Jon Coppeard
1216544376
Bug 959787 - Handlify remaining JS APIs r=terrence r=bz r=bholley
2014-04-30 10:10:33 +01:00
Rodrigo Rodriguez Jr.
3a5329b969
Bug 952650 (part 11) - Remove JSVAL_TO_INT. r=njn.
...
--HG--
extra : rebase_source : 41923458bbf8fd957c9a57685df4969f1190bd9f
2014-04-27 19:55:08 -07:00
ISHIKAWA, Chiaki
f8da2ef72f
Bug 963554 - Defining MOZ_STORAGE_SORTWARNING_SQL_DUMP prints the SQL command that invoked sorting in the log. r=mak
...
The default short warning et al is not *THAT* useful even if one may
be able to dump the original SQL command using environment variable
for later correlation. Defining MOZ_STORAGE_SORTWARNING_SQL_DUMP will
enable the printout of SQL command directly in the log .
2014-04-28 20:15:00 -04:00
Birunthan Mohanathas
5f1fde8824
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
Jason Orendorff
4740c9dea6
Bug 547140, part 4 - Remove flags argument from resolve hooks. r=Waldo.
2014-04-25 16:11:02 -05:00
Marco Bonardo
6fe8efecb8
Bug 914070 - Part 3 - Make async transaction management work with a null mDBConn. r=asuth
2014-04-24 11:54:15 +02:00
Marco Bonardo
bf86937455
Bug 914070 - Part 2 - nullify mDBConn at setClosedState and provide an isClosed helper. r=asuth
2014-04-24 11:54:12 +02:00
Marco Bonardo
528ab442ef
Bug 914070 - Part 1 - Remove native connection getters from Storage connection. r=asuth
2014-04-24 11:54:09 +02:00
Nochum Sossonko
bfd9a489d3
Bug 481178 - mozIStorageConnection createTable and tableExists should support attached databases. r=mak
2014-04-09 09:22:33 -04:00
Jon Coppeard
92f0d66be8
Bug 959787 - Handlify remaining JS APIs r=sfink r=bholley r=smaug
2014-04-02 15:28:03 +01:00
Ehsan Akhgari
186680d83a
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
2014-03-27 16:38:33 -04:00
Gabriele Svelto
5f8616903a
Bug 411894 - Flush all mozStorageConnections' caches in response to memory pressure events. r=mak
2014-03-27 11:19:49 +01:00
Paolo Amadini
c1739b687d
Bug 984788 - Convert legacy uses of promise.js to Promise.jsm. rs=Yoric
2014-03-18 15:16:02 +01:00
Neil Rashbrook
604d9a5302
Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
...
--HG--
extra : rebase_source : f8fb50de9292320eb7589dd28dc566d0f5044da6
2014-03-18 00:23:03 +00:00
Wes Kocher
c879b47079
Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
...
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00