Ben Turner
e10d86d36f
Bug 1112702 - Make IndexedDB transactions non-durable by default, r=khuey.
2015-01-25 22:30:09 -08:00
Andrea Marchesini
b212600c95
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Boris Zbarsky
0304be0a47
Bug 1143529 part 1. Stop manually calling WrapObject in DataStoreService::GetDataStoresResolve. r=baku
2015-03-23 12:18:03 -04:00
Ehsan Akhgari
33bb32f549
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
Boris Zbarsky
54c64f20a9
Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp. The
rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Boris Zbarsky
50b622a067
Bug 1117172 part 2. Change the non-wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
...
The only manual changes here are to BindingUtils.h, Codegen.py, and
StructuredClone.cpp. The rest of this diff was generated by running the following commands:
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/WrapObject\((JSContext *\* *(?:aCx|cx)),(\s*)(JS::MutableHandle<JSObject\*> aReflector)/WrapObject(\1,\2JS::Handle<JSObject*> aGivenProto,\2\3/g'
find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx)), this, aReflector/\1, this, aGivenProto, aReflector/'
2015-03-19 10:13:32 -04:00
Boris Zbarsky
7c3e3e3096
Bug 1140573 part 3. Drop the parent argument from js::NewFunctionWithReserved. r=waldo
2015-03-09 12:50:07 -04:00
Anish
48094b2951
Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers
2015-02-19 11:53:01 -05:00
Carsten "Tomcat" Book
b6ef20bdf0
Backed out changeset 6885e993936a (bug 1056851) for crashtest failures
2015-02-19 15:02:05 +01:00
Anish
bbc6a8a249
Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher
2015-02-19 07:26:41 -05:00
Chris Peterson
c0f4d0ffab
Bug 1129325 - Remove nonstandard let blocks from dom. r=mrbkap
2015-01-24 23:38:46 -08:00
Peter Van der Beken
e08d1eb1bb
Bug 1096328 - Remove nativeOwnership from Bindings.conf, make rooting analysis happy. r=bz.
...
--HG--
extra : rebase_source : 54a1e408aec6c7485152f18693047b2992251aff
2015-01-08 22:56:42 +01:00
Boris Zbarsky
890f01a2b6
Bug 1117167. Make the generated implementation classes for JS-implemented bindings store an nsIGlobalObject, not an nsPIDOMWindow, so we can use them in sandboxes. r=peterv
2015-01-08 11:57:19 -05:00
Ehsan Akhgari
1e50f39cec
Bug 1118429 - Mark virtual overridden functions as MOZ_OVERRIDE in dom/datastore; r=baku
2015-01-06 16:35:25 -05:00
Andrea Marchesini
dddffc895b
Bug 1057994 - DataStore should not dispatch runnables in a worker when it is shutting down, r=bent
...
--HG--
rename : dom/datastore/tests/file_basic_worker.html => dom/datastore/tests/file_worker_close.html
rename : dom/datastore/tests/test_basic_worker.html => dom/datastore/tests/test_worker_close.html
2014-12-17 14:49:36 +00:00
Boris Zbarsky
42a7ac06b5
Bug 1105615. Make IDBObjectStoreParameters.keyPath a union instead of using "any" for it. r=baku
2014-12-11 13:07:44 -05:00
Boris Zbarsky
b179defdfa
Bug 990484 part 2. Remove a bunch of now-unnecessary JSContext bits in indexedDB code. r=baku
2014-12-11 13:07:44 -05:00
Kan-Ru Chen (陳侃如)
084ab7eb10
Bug 1059662 - Disallow OOP app to embed in-proc apps. r=fabrice
...
Some mochitest that use embed-apps in an oop context is disabled.
--HG--
extra : rebase_source : 72de2cdae86eb8d55e642529cd4aae0af97e4e96
2014-11-11 10:25:36 +08:00
Vaibhav Agrawal
cb2a1c8330
Bug 1083347 - Remove androidx86.json. r=gbrown
2014-10-22 11:51:00 -04:00
Andrea Marchesini
671024d97d
Bug 1081143 - datastore-update-* events should be dispatched as broadcast messages, r=fabrice
2014-10-20 20:47:12 +01:00
Ben Turner
141df104d6
Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey.
2014-09-26 16:21:57 -07:00
Ehsan Akhgari
8d05436942
Bug 1072310 - Build more DOM code in unified mode; r=baku
...
--HG--
extra : rebase_source : a34dbc7323238d5f83a0144b62a6c52c3e6c54dc
2014-09-25 10:12:06 -04:00
Ben Turner
26edfb8667
Backout bug 994190 and merge over some stuff that landed afterwards on a CLOSED TREE.
2014-09-17 19:36:01 -04:00
Ben Turner
b3c31c0c49
Bug 994190 - 'Modify main-thread IndexedDB to use PBackground', r=khuey.
...
--HG--
rename : dom/indexedDB/ipc/SerializationHelpers.h => dom/indexedDB/SerializationHelpers.h
rename : dom/indexedDB/ipc/unit/head.js => dom/indexedDB/test/unit/xpcshell-head-child-process.js
rename : dom/indexedDB/test/unit/head.js => dom/indexedDB/test/unit/xpcshell-head-parent-process.js
rename : dom/ipc/Blob.h => dom/ipc/BlobParent.h
rename : dom/ipc/FileDescriptorSetChild.cpp => ipc/glue/FileDescriptorSetChild.cpp
rename : dom/ipc/FileDescriptorSetChild.h => ipc/glue/FileDescriptorSetChild.h
rename : dom/ipc/FileDescriptorSetParent.cpp => ipc/glue/FileDescriptorSetParent.cpp
rename : dom/ipc/FileDescriptorSetParent.h => ipc/glue/FileDescriptorSetParent.h
rename : dom/ipc/PFileDescriptorSet.ipdl => ipc/glue/PFileDescriptorSet.ipdl
2014-09-13 12:12:19 -04:00
Ehsan Akhgari
bc7cc3893c
Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
...
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Andrea Marchesini
060e6cb081
Bug 1058108 - DataStore.get should support array with 0 elements, r=ehsan
...
--HG--
rename : dom/datastore/tests/test_basic.html => dom/datastore/tests/test_bug1058108.html
2014-08-26 09:20:02 +01:00
Ted Clancy (:tedders1)
965c41bed7
Bug 1000315 - Part 8: Various tests skip uninstall prompt. r=sicking
2014-06-12 09:53:54 -07:00
Sean Lin
722cd320fc
Bug 1014023 - [Datastore] Notify apps of changes in datastore without being opened. r=baku, r=gene
2014-06-27 15:58:47 +08:00
Ryan VanderMeulen
bbbbaa19d4
Backed out changeset 3200ed3305db (bug 1014023) for causing bug 1051164.
2014-08-12 12:44:09 -04:00
Sean Lin
dfe876b4b0
Bug 1014023 - [Datastore] Notify apps of changes in datastore without being opened. r=baku, r=gene
...
--HG--
extra : rebase_source : 66ba930797cfd67777ead9ec5e439d834d494233
2014-06-27 15:58:47 +08:00
Ryan VanderMeulen
916f384e09
Backed out changeset 90c9b3d8f5bf (bug 1014023) for intermittent Windows mochitest failures.
...
CLOSED TREE
2014-08-05 15:33:10 -04:00
Sean Lin
eb86cac0c7
Bug 1014023 - [Datastore] Notify apps of changes in datastore without being opened. r=baku, r=gene
2014-06-27 15:58:47 +08:00
Andrea Marchesini
a5d394f802
Bug 1031407
- DataStoreService doesn't need to use IDBCursor to know if a revision exists., r=janv
2014-08-03 15:48:19 +01:00
Ehsan Akhgari
ba1948fc1c
Bug 1047522 - Enable the rest of the data store tests; r=khuey
2014-08-01 19:08:23 -04:00
Sean Lin
a0abec6ac4
Bug 1000829 - getDataStores() should be able to retrieve data stores by owner. r=baku sr=jst
2014-07-17 11:53:23 +08:00
Ehsan Akhgari
bdb2449fac
Bug 974270 - Re-enable the majority of datastore tests on b2g; r=khuey
...
I have no idea what has fixed these tests, but the try server says
they are fixed. We always suspected that this is caused by a bug
in the mozapps code, and there has been some development there, and
elsewhere.
--HG--
extra : rebase_source : 2122a1016c3505b833d11b49cf63f79f117792e5
2014-07-25 15:07:44 -04:00
Boris Zbarsky
c03ab46f93
Bug 1040263. Eagerly create and preserve Promise reflectors so we always have them available during unlink. r=nsm,bholley.
2014-07-18 21:31:11 -04:00
Chris Peterson
e11a892183
Bug 1036776 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_ASSERT_UNREACHABLE in dom. r=smaug
2014-06-29 23:10:56 -07:00
Benoit Jacob
57ed0c585c
Bug 1035394 - Fix dangerous public destructors in dom - r=ehsan
2014-07-08 17:23:17 -04:00
Benoit Jacob
49fdae91d7
Bug 1028588 - Fix more, recently introduced dangerous public destructors - r=ehsan
2014-07-05 16:35:35 -04:00
Andrea Marchesini
3991de7d7c
Bug 1030973 - DataStoreService should listen for versionchange events. r=janv
2014-06-26 14:09:00 +02:00
Chris Peterson
1f3a2dcf13
Bug 1024322 - Replace calls to MOZ_ASSUME_UNREACHABLE that have crept back into dom. r=smaug
2014-06-20 22:42:45 -07:00
Jim Blandy
4d6a633bba
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
747dcfc8a0
Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan
2014-06-23 15:56:07 -04:00
Ed Morley
f3a3d4c30e
Merge mozilla-central and b2g-inbound
2014-06-19 17:20:14 +01:00
Fernando Jiménez
bf91e66eac
Bug 1006237 - Unify permissions check in nsIDataStore.checkPermission. r=baku, ehsan
2014-06-19 16:03:54 +02:00
Benoit Jacob
3b95f18dbd
Bug 1027251 - Fix or whitelist dangerous public destructors in dom/ - r=smaug
2014-06-18 22:28:59 -04:00
Andrea Marchesini
beac5c8d62
Bug 1026265 - DataStore API - name error in a property of DataStoreChangeNotifier, r=ehsan
2014-06-17 19:59:22 +01:00
Andrea Marchesini
b7289c366a
Bug 1024618 - DataStoreChangeNotifier.jsm doesn't remove all the children when they are unregistered, r=ehsan
2014-06-14 08:05:47 +01:00
Ehsan Akhgari
1d79e596f0
Bug 1024465 - Define an out of line destructor for DataStore so that we can forward delcare DataStoreImpl in DataStore.h; r=bzbarsky
...
This is required because the destructor for the nsRefPtr<DataStoreImpl>
member requires the full definition of the type.
2014-06-12 11:31:36 -04:00