Cosmin Sabou
3e6ea27d12
Backed out 2 changesets (bug 1451486) for xpcshell failures on test_storageOption_pref.js
...
Backed out changeset eea1bfe5404d (bug 1451486)
Backed out changeset 2e635314b75f (bug 1451486)
2018-04-15 00:10:13 +03:00
Johann Hofmann
43424ed301
Bug 1451486 - Part 1 - Ignore the storage attribute on indexedDB.open() by default. r=asuth,baku
...
MozReview-Commit-ID: 844FRkx3rKZ
2018-04-10 23:00:30 +02:00
Johann Hofmann
2faaba3c0b
Bug 1445326 - Part 1 - Check for internal origins when assigning persistent indexedDB storage. r=asuth
...
Internal users of indexedDB were using the storage: "persistent" option to
avoid losing their data due to quota management. We would like to remove
that proprietary option and are adding a way for internal origins to be
considered persistent storage by default. This should also prevent
previous users from losing their data.
MozReview-Commit-ID: 4cbfbAlHokM
2018-03-15 10:35:05 +01:00
Johann Hofmann
47c29f5bd3
Bug 1442560 - Add a note for deprecating passing a storage option to indexedDB.open(). r=asuth
...
MozReview-Commit-ID: 44yCmYrPP26
2018-03-05 20:01:00 +01:00
Johann Hofmann
bc69f86ebd
Bug 1428320 - Ignore about: pages for indexedDB storage type telemetry. r=janv
...
MozReview-Commit-ID: 1Cx5hBsqyX1
2018-01-05 12:52:07 +01:00
Nika Layzell
d8c117bc28
Bug 1414974 - Part 2: Switch many consumers to nsGlobalWindow{Inner,Outer}, r=smaug
...
This is a large patch which tries to switch many of the external consumers of
nsGlobalWindow to instead use the new Inner or Outer variants.
MozReview-Commit-ID: 99648Lm46T5
2017-11-09 10:44:47 -05:00
Bevis Tseng
2adabeabaa
Bug 1414138 - Keep IndexedDB in sandbox unlabeled. r=billm
...
Script evaluated inside sandbox could touch scripts exposed by its creator in content.
We should keep indexedDB in sandbox unlabeled instead of labeling it with SystemGroup.
2017-11-06 11:58:13 +08:00
Andrea Marchesini
95c441c351
Bug 1410106 - Better check about privateBrowsing for IDB, r=asuth
2017-11-08 06:43:50 +01:00
Andrea Marchesini
4696ebfe21
Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 13 - IndexedDB, r=asuth
2017-10-24 12:02:41 +02:00
Shawn Huang
709ac36f3a
Bug 1360567 - Add telemetry probes for Indexeddb storage types, r=janv, datareview=francois
2017-09-18 17:00:37 +08:00
Bevis Tseng
2bab1bc9ff
Bug 1352401 - Part 2: Count active IDBOpenRequest, IndexedDB databases/transactions. r=janv
2017-06-16 19:06:36 +08:00
Bevis Tseng
96c161e6c1
Backed out changeset 9c62253ad1a3 (Bug 1374675)
2017-06-21 11:01:52 +08:00
Bevis Tseng
805268ae6f
Bug 1352401 - Part 2: Count active IDBOpenRequest, IndexedDB databases/transactions. r=janv
2017-06-16 19:06:36 +08:00
Bill McCloskey
284c3f3132
Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)
...
For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.
MozReview-Commit-ID: 5FgvpKadUA2
2017-06-12 20:20:08 -07:00
Bevis Tseng
e02d869133
Bug 1366647 - Adopt NS_ASSERT_OWNINGTHREAD for PRThread equality. r=janv
...
MozReview-Commit-ID: 4j1ifEtrsvD
2017-06-07 13:55:00 +08:00
Jan Varga
a32858250e
Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng
2017-06-07 12:36:20 +02:00
Bevis Tseng
c42f27890b
Bug 1328517 - Part 2: Add Assertion to Each ActorEventTarget. r=janv
...
MozReview-Commit-ID: DDQ0ytBiwm3
2017-02-10 15:13:45 +08:00
Bevis Tseng
81fda4c40c
Bug 1328517 - Part 1: DocGroup labeling. r=janv
...
MozReview-Commit-ID: 3ZtkzLut0UO
2017-01-13 16:40:58 +08:00
Boris Zbarsky
1de2a053fd
Bug 1335368 part 14. Remove the use of IsCallerChrome in IDBFactory. r=smaug
2017-02-01 15:43:37 -05:00
Olli Pettay
3898f7d882
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
2017-01-03 21:47:55 +02:00
Dave Huseby
41f106286f
Bug 1309067 - adding asserts to ensure boolean and OA private browsing values match. r=ehsan
2016-11-17 12:14:00 +01:00
Nicholas Nethercote
1cef4f427a
Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm.
...
This makes a lot of code more compact, and also avoids some redundant nsresult
checks.
The patch also removes a handful of redundant checks on infallible setters.
2016-08-12 15:19:29 +10:00
Andrea Marchesini
59fd7748c6
Bug 1261009 - Remove the Data Store API, r=fabrice
2016-04-29 09:02:45 +08:00
Kyle Huey
20d0dc7286
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Boris Zbarsky
993c12a8fe
Bug 1257725 part 5. Get rid of ThreadsafeAutoJSContext usage in IDBRequest::CaptureCaller. r=khuey
2016-03-23 11:02:57 -04:00
Boris Zbarsky
a5e3b3452d
Bug 1255840. Get rid of the AutoJSAPI usage in IDBFactory. r=khuey
2016-03-14 20:47:13 -04:00
Kyle Huey
f14b772a73
Bug 1247117: De-namespace much of IndexedDB. r=baku
2016-02-16 13:46:08 -08:00
Kyle Huey
e95edb30a9
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Ting-Yu Chou
d33633e008
Bug 1214516 - Sync check PBackgroundChild existence to initiate indexed DB open/delete request right away if it exists. r=khuey
2015-11-25 10:57:07 +08:00
Jan Varga
0225228ad3
Bug 961049 - Part 1: Remove unused members and methods; r=baku
2015-11-22 10:43:09 +01:00
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
Andrew McCreight
28c2afe833
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-05 09:38:14 -07:00
Wes Kocher
b3d2857460
Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE
2015-10-02 16:17:05 -07:00
Andrew McCreight
ec01c9ea15
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 15:09:02 -07:00
Andrew McCreight
e218651f1b
Backed out changeset 6fa9cdf4002b for breaking the build.
2015-10-02 10:49:28 -07:00
Andrew McCreight
edd47ecd4c
Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv
2015-10-02 10:42:08 -07:00
Jan Varga
7634d6acc6
Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); r=baku
2015-09-09 13:15:05 +02:00
Michael Layzell
0cb27cd08f
Bug 1147821 - Update IndexedDB to use common StorageAllowedForWindow logic, r=khuey
2015-08-28 10:10:30 -04:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Martin Thomson
9149fb8310
Bug 1176434 - Enabling indexedDB for content JS sandboxes, r=bent
2015-07-02 13:30:15 -07:00
Ben Turner
063d81721e
Bug 1171578 - Avoid crashing if indexedDB is used at a particular point in the worker shutdown sequence, r=baku.
2015-06-22 12:13:38 -07:00
Fernando Jimenez
7615e5c27c
Bug 1137245 - ServiceWorkerManager should set WorkerPrivate::LoadInfo::mIndexedDBAllowed correctly. r=bent, bkelly
2015-06-11 15:32:54 +02:00
Andrew McCreight
92010d3e4c
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ben Turner
0362c82f44
Bug 1151646 - Cleanup, r=khuey.
2015-04-08 15:21:26 -07:00
Ehsan Akhgari
ea41d8de48
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
3a822d99b4
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
Gijs Kruitbosch
33b617c9cd
Bug 1079355 - indexedDB pref should only apply for content pages, not chrome ones, r=bent
2015-01-05 23:08:12 +00:00
Ben Turner
c8ed07d8be
Bug 701634 - Support IndexedDB in Workers, r=khuey+baku.
2014-12-16 22:26:15 -08:00
Ben Turner
2b90bf55ad
Bug 1092311 - Fix IndexedDB profiler markers and logging, r=khuey.
2014-10-15 21:56:52 -07:00
Jan Varga
8aa840dbd3
Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); Part 1 - Remove unused stuff; r=bent
2014-12-06 07:31:53 -08:00