Commit Graph

127 Commits

Author SHA1 Message Date
Boris Zbarsky
0b86f5635c 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
d841b572bf Bug 1036776 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_ASSERT_UNREACHABLE in dom. r=smaug 2014-06-29 23:10:56 -07:00
Benoit Jacob
66530c3e02 Bug 1035394 - Fix dangerous public destructors in dom - r=ehsan 2014-07-08 17:23:17 -04:00
Benoit Jacob
7de25b6e09 Bug 1028588 - Fix more, recently introduced dangerous public destructors - r=ehsan 2014-07-05 16:35:35 -04:00
Andrea Marchesini
9d5fdf33f0 Bug 1030973 - DataStoreService should listen for versionchange events. r=janv 2014-06-26 14:09:00 +02:00
Chris Peterson
f1e70165c3 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
b6b202b6bb 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
84b13c683d Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan 2014-06-23 15:56:07 -04:00
Ed Morley
aaf8fb069a Merge mozilla-central and b2g-inbound 2014-06-19 17:20:14 +01:00
Fernando Jiménez
0bad224a81 Bug 1006237 - Unify permissions check in nsIDataStore.checkPermission. r=baku, ehsan 2014-06-19 16:03:54 +02:00
Benoit Jacob
4f9877cdb5 Bug 1027251 - Fix or whitelist dangerous public destructors in dom/ - r=smaug 2014-06-18 22:28:59 -04:00
Andrea Marchesini
ce004d5c94 Bug 1026265 - DataStore API - name error in a property of DataStoreChangeNotifier, r=ehsan 2014-06-17 19:59:22 +01:00
Andrea Marchesini
ada0098088 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
76e122701d 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
Boris Zbarsky
1284410aa0 Bug 1009675 part 2. Return WebIDL 'any' values as handles. r=peterv 2014-06-11 16:26:52 -04:00
Olli Pettay
9233bc118d Bug 1023280 - Rename dictionary.ToObject to ToObjectInternal, r=bz 2014-06-11 22:38:55 +03:00
Boris Zbarsky
253e2d6c68 Bug 1016560. Remove the footgun of rejecting promises with arbitrary objects. r=khuey 2014-06-03 11:38:38 -04:00
Ryan VanderMeulen
d221f7e847 Backed out changesets 6d1c36585219 and bd403a727849 (bug 1016560) for mochitest-other failures.
CLOSED TREE
2014-06-03 13:48:49 -04:00
Boris Zbarsky
47afef3760 Bug 1016560 followup. Fix a new Promise::MaybeReject callsite that was introduced. r=build-bustage 2014-06-03 12:03:16 -04:00
Andrea Marchesini
d69a3c2e97 Bug 957086 - patch 4 - Correct permissions for apps, r=ehsan
--HG--
rename : dom/datastore/tests/test_basic.html => dom/datastore/tests/test_bug957086.html
2014-06-03 15:36:46 +01:00
Andrea Marchesini
19661f8c74 Bug 957086 - patch 3 - DataStoreService in C++ OOP, r=janv 2014-06-03 15:36:46 +01:00
Andrea Marchesini
b52b984135 Bug 957086 - patch 2 - DataStoreService in C++, r=ehsan, r=bz, r=janv 2014-06-03 15:36:46 +01:00
Andrea Marchesini
de0abe6219 Bug 957086 - patch 1 - nsIDataStore instead DataStore.jsm, r=ehsan
--HG--
rename : dom/datastore/DataStoreImpl.jsm => dom/datastore/DataStoreImpl.js
2014-06-03 15:36:46 +01:00
Ehsan Akhgari
abc36676df Backed out 3 changesets (bug 957086) for causing bug 1018406
Backed out changeset f8b6dab2f985 (bug 957086)
Backed out changeset b69bcaa24ab5 (bug 957086)
Backed out changeset 3b45335d4694 (bug 957086)

--HG--
rename : dom/datastore/DataStoreImpl.js => dom/datastore/DataStoreImpl.jsm
2014-06-02 10:19:19 -04:00
Andrea Marchesini
35b1c02886 Bug 957086 - patch 3 - DataStoreService in C++ for OOP, r=janv 2014-05-30 07:59:51 +01:00
Andrea Marchesini
2e1fb387b3 Bug 957086 - patch 2 - DataStoreService in C++, r=ehsan, r=bz, r=janv 2014-05-30 07:59:27 +01:00
Andrea Marchesini
1b8d0d0f7b Bug 957086 - patch 1 - nsIDataStore instead DataStore.jsm, r=ehsan
--HG--
rename : dom/datastore/DataStoreImpl.jsm => dom/datastore/DataStoreImpl.js
2014-05-30 07:59:00 +01:00
Ryan VanderMeulen
b2635781f4 Backed out changesets 083b9fb75e9a, 4cbc8cf0b619, and ef379607cff7 (bug 957086) for Win7/Win8 debug mochitest crashes.
--HG--
rename : dom/datastore/DataStoreImpl.js => dom/datastore/DataStoreImpl.jsm
2014-05-29 13:22:57 -04:00
Andrea Marchesini
f7df75fd18 Bug 957086 - patch 3 - DataStoreService in C++ OOP, r=janv 2014-05-29 16:35:03 +01:00
Andrea Marchesini
88158335c2 Bug 957086 - patch 2 - DataStoreService in C++, r=ehsan, r=bz, r=janv 2014-05-29 16:34:43 +01:00
Andrea Marchesini
cd52b3f081 Bug 957086 - patch 1 - nsIDataStore instead DataStore.jsm, r=ehsan
--HG--
rename : dom/datastore/DataStoreImpl.jsm => dom/datastore/DataStoreImpl.js
2014-05-29 16:34:03 +01:00
Andrea Marchesini
601228fc42 Bug 1008044 - DataStoreServiceChild should check the name of the DataStore before resolving the promise callback, r=ehsan, f=kgrandon
--HG--
rename : dom/datastore/tests/test_oop.html => dom/datastore/tests/test_bug1008044.html
2014-05-22 12:12:15 +01:00
Andrea Marchesini
4c321f5117 Bug 1012887 - DataStoreCursorImpl.jsm must check if the window is still available, r=gene 2014-05-20 10:03:35 +01:00
Andrew McCreight
2a1b6ba513 Bug 1008400 - DataStore should invoke its parent's Traverse/Unlink. r=smaug 2014-05-12 10:01:27 -07:00
Gene Lian
33a88dd212 Bug 1006566 - Unify the common DataStore tests between the main thread and the worker thread (part 3, minor alignment). r=baku 2014-05-12 14:42:09 +08:00
Gene Lian
b23a6c3435 Bug 1006566 - Unify the common DataStore tests between the main thread and the worker thread (part 2, unify the common parts). r=baku 2014-05-12 14:42:01 +08:00
Gene Lian
de647d09d3 Bug 1006566 - Unify the common DataStore tests between the main thread and the worker thread (part 1, make up missing tests for workers). r=baku 2014-05-12 14:41:35 +08:00
Gene Lian
4f2f26d264 Bug 1006562 - WorkerDataStoreCursor.store should be equal to the WorkerDataStore which owns the cursor (part 2, WorkerDataStoreCursor.store == WorkerDataStore). r=baku 2014-05-07 19:55:23 +08:00
Gene Lian
cd8398b088 Bug 949325 - C++ wrapper to support DataStore API on the worker (part 3-3, test sync cases on workers). r=baku 2014-03-12 17:03:29 +08:00
Gene Lian
3ec5d165f0 Bug 949325 - C++ wrapper to support DataStore API on the worker (part 3-2, test basic cases on workers). r=baku 2014-02-24 21:57:58 +08:00
Gene Lian
bb98e1b46a Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-4, should create array based on the window to return). r=baku 2014-02-24 21:57:24 +08:00
Gene Lian
477e962e21 Bug 949325 - C++ wrapper to support DataStore API on the worker (part 2-3, dispatch tasks on the worker to the main thread). r=baku,khuey f=nsm 2014-02-24 21:57:15 +08:00
Andrea Marchesini
bc39d3758c Bug 1000837 - {DataStoreTask|DataStoreChangeEvent}.id and DataStoreTask.data have to be nullable, r=gene 2014-04-28 10:54:38 +01:00
Birunthan Mohanathas
c8c6722bb4 Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug 2014-04-25 12:49:00 -04:00
Gene Lian
a0a2b2b22a Bug 949325 - C++ wrapper to support DataStore API on the worker (part 1, C++ stubs for DataStore and DataStoreCursor). r=baku,ehsan
--HG--
rename : dom/datastore/DataStoreCursor.jsm => dom/datastore/DataStoreCursorImpl.jsm
rename : dom/datastore/DataStore.jsm => dom/datastore/DataStoreImpl.jsm
2013-12-20 16:17:49 +08:00
Andrea Marchesini
30fc62c7d2 Bug 963038 - Datastore: Support for Transactional semantics, r=ehsan
--HG--
rename : dom/datastore/tests/test_basic.html => dom/datastore/tests/test_transactions.html
2014-04-07 21:08:11 +01:00
Andrea Marchesini
d80034131d Bug 986056 - DataStoreService should delete dataStores only when apps are uninstalled, r=ehsan
--HG--
rename : dom/datastore/tests/file_bug976311.template.webapp => dom/datastore/tests/file_bug986056.template.webapp
2014-03-28 17:41:00 +00:00
Carsten "Tomcat" Book
1f5c06c461 merge fx-team to mozilla-central 2014-03-20 14:04:58 +01:00
Andrea Marchesini
6cad6cea93 Bug 985686 - DataStoreServiceChild is not leaked, r=ehsan 2014-03-19 22:39:23 +00:00
Andrea Marchesini
0c4c8404f4 Bug 985042 - DataStore.jsm removes its inner-window-destroyed observer. r=ehsan 2014-03-19 06:03:11 -07:00