Nika Layzell
3409141758
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
55e4d3bef3
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.
--HG--
extra : amend_source : 8c3cff44878f236b488de200ca9446a4fdf5415b
2017-11-06 11:58:13 +08:00
Andrea Marchesini
f863b85f64
Bug 1410106 - Better check about privateBrowsing for IDB, r=asuth
2017-11-08 06:43:50 +01:00
Andrea Marchesini
e0fdc798b7
Bug 1408333 Get rid of nsIIPCBackgroundChildCreateCallback - part 13 - IndexedDB, r=asuth
2017-10-24 12:02:41 +02:00
Shawn Huang
a99c46071a
Bug 1360567 - Add telemetry probes for Indexeddb storage types, r=janv, datareview=francois
2017-09-18 17:00:37 +08:00
Bevis Tseng
a29c316c12
Bug 1352401 - Part 2: Count active IDBOpenRequest, IndexedDB databases/transactions. r=janv
...
--HG--
extra : rebase_source : 3f59fe1087678af689384b34db440960966e00af
2017-06-16 19:06:36 +08:00
Bevis Tseng
dda9bab7b2
Backed out changeset 9c62253ad1a3 (Bug 1374675)
2017-06-21 11:01:52 +08:00
Bevis Tseng
d6b1d1a397
Bug 1352401 - Part 2: Count active IDBOpenRequest, IndexedDB databases/transactions. r=janv
...
--HG--
extra : rebase_source : 87263d63be9021fe2493beb4b874c7e2749fd665
2017-06-16 19:06:36 +08:00
Bill McCloskey
aefa2aa5da
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
e98d22391d
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
c9e62d9e30
Bug 1370519 - Part 1: Add missing includes to fix non-unified builds; r=btseng
2017-06-07 12:36:20 +02:00
Bevis Tseng
69a59cfe93
Bug 1328517 - Part 2: Add Assertion to Each ActorEventTarget. r=janv
...
MozReview-Commit-ID: DDQ0ytBiwm3
--HG--
extra : rebase_source : d3a724e9d69e492621948436cc68cf1d59cdb3a6
2017-02-10 15:13:45 +08:00
Bevis Tseng
dbc3db29c2
Bug 1328517 - Part 1: DocGroup labeling. r=janv
...
MozReview-Commit-ID: 3ZtkzLut0UO
--HG--
extra : rebase_source : ba972891e8b94e755880143c0e87286a45d032a7
2017-01-13 16:40:58 +08:00
Boris Zbarsky
69e66238f4
Bug 1335368 part 14. Remove the use of IsCallerChrome in IDBFactory. r=smaug
2017-02-01 15:43:37 -05:00
Olli Pettay
0364dbc792
Bug 1326507, remove NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS, r=mccr8
...
--HG--
extra : rebase_source : 3ae1207308de120b7299b13ecaa95dd1612b3459
2017-01-03 21:47:55 +02:00
Dave Huseby
4e53da9544
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
ca40b738e4
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.
--HG--
extra : rebase_source : f82426e7584d0d5cddf7c2524356f0f318fbea7d
2016-08-12 15:19:29 +10:00
Andrea Marchesini
1c0c183890
Bug 1261009 - Remove the Data Store API, r=fabrice
2016-04-29 09:02:45 +08:00
Kyle Huey
d9265a3eaf
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Boris Zbarsky
ede5a13ec4
Bug 1257725 part 5. Get rid of ThreadsafeAutoJSContext usage in IDBRequest::CaptureCaller. r=khuey
2016-03-23 11:02:57 -04:00
Boris Zbarsky
a4269f22fb
Bug 1255840. Get rid of the AutoJSAPI usage in IDBFactory. r=khuey
2016-03-14 20:47:13 -04:00
Kyle Huey
31dabb4558
Bug 1247117: De-namespace much of IndexedDB. r=baku
2016-02-16 13:46:08 -08:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Ting-Yu Chou
b758bfd85c
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
27f90d36a3
Bug 961049 - Part 1: Remove unused members and methods; r=baku
2015-11-22 10:43:09 +01:00
Nathan Froyd
01583602a9
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
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrew McCreight
5171450b27
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
f0d829220d
Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE
2015-10-02 16:17:05 -07:00
Andrew McCreight
35cd15b8de
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
7a2c6267d4
Backed out changeset 6fa9cdf4002b for breaking the build.
2015-10-02 10:49:28 -07:00
Andrew McCreight
404740a102
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
2a061d3c3b
Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); r=baku
...
--HG--
rename : dom/filehandle/FileHandle.cpp => dom/filehandle/FileHandleBase.cpp
rename : dom/filehandle/FileHandle.h => dom/filehandle/FileHandleBase.h
rename : dom/filehandle/FileRequest.h => dom/filehandle/FileRequestBase.h
rename : dom/filehandle/MutableFile.cpp => dom/filehandle/MutableFileBase.cpp
rename : dom/filehandle/MutableFile.h => dom/filehandle/MutableFileBase.h
2015-09-09 13:15:05 +02:00
Michael Layzell
cd6e65d4d5
Bug 1147821 - Update IndexedDB to use common StorageAllowedForWindow logic, r=khuey
2015-08-28 10:10:30 -04:00
Birunthan Mohanathas
a8939590de
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
3f054841ce
Bug 1176434 - Enabling indexedDB for content JS sandboxes, r=bent
...
--HG--
extra : commitid : DYgglyPMmSl
2015-07-02 13:30:15 -07:00
Ben Turner
a0940b9a26
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
dbb95a17ef
Bug 1137245 - ServiceWorkerManager should set WorkerPrivate::LoadInfo::mIndexedDBAllowed correctly. r=bent, bkelly
2015-06-11 15:32:54 +02:00
Andrew McCreight
9e8f4b219e
Bug 1152551, part 2 - Fix mode lines in dom/. r=jst
2015-05-03 15:32:37 -04:00
Ben Turner
8f3a68440b
Bug 1151646 - Cleanup, r=khuey.
2015-04-08 15:21:26 -07: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
Boris Zbarsky
dc24477d79
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
69488b712d
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
2be368dceb
Bug 701634 - Support IndexedDB in Workers, r=khuey+baku.
2014-12-16 22:26:15 -08:00
Ben Turner
9a1f2f231f
Bug 1092311 - Fix IndexedDB profiler markers and logging, r=khuey.
2014-10-15 21:56:52 -07:00
Jan Varga
7a79af88ee
Bug 771288 - Multiprocess FileHandle support (FileHandle on PBackground); Part 1 - Remove unused stuff; r=bent
2014-12-06 07:31:53 -08:00
Jan Varga
3528192339
Bug 1083927 - IndexedDB: Subdomain Quota Management; r=bent,ehsan
...
--HG--
rename : dom/indexedDB/test/unit/bug1056939.zip => dom/indexedDB/test/unit/bug1056939_profile.zip
2014-11-28 09:44:12 +01:00
Ben Turner
64e5bce38a
Bug 1083285 - Fix noisy IndexedDB error, replace with better warning. r=khuey.
2014-11-13 18:20:38 -08:00
Wes Kocher
a7a427d424
Backed out changeset f5ed560d297f (bug 1083285) for build bustage
2014-11-18 15:47:57 -08:00
Ben Turner
5b41e9bc9e
Bug 1083285 - Fix noisy IndexedDB error, replace with better warning. r=khuey.
2014-11-13 18:20:38 -08:00
Jon Coppeard
7b007a7874
Bug 877924 - Always trace IDBFactory owner pointer r=mccr8
...
--HG--
extra : rebase_source : 626301faca90a21a03a9f983f7afe88dbdd9e6e7
2014-11-05 08:44:26 +00:00