Граф коммитов

223 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Boris Zbarsky a15e8a72b3 Bug 1341688. Fix IDB leaks due to IDBFactory not declaring all its outgoing edges to the cycle collector. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D11974

--HG--
extra : moz-landing-system : lando
2018-11-15 13:46:18 +00:00
Andrea Marchesini 375ae1c863 Bug 1505212 - Partitioned localStorage for 3rd party tracker pages, r=ehsan, r=asuth
LocalStorage needs to be exposed in every context except for sandboxes and
NullPrincipals (data: URLs, for instance). But we need to keep data
separate in some scenarios: private-browsing and trackers.
In private-browsing, LocalStorage keeps data in memory, and it shares
StorageEvents just with other origins in the same private-browsing
environment.
For Trackers, we expose a partitioned LocalStorage, which doesn't share
data with other contexts, and it's just in memory. Partitioned localStorage
is available only for trackers listed in the
privacy.restrict3rdpartystorage.partitionedHosts pref. See
nsContentUtils::IsURIInPrefList to know the syntax for the pref value.
2018-11-13 09:51:14 +01:00
Andrea Marchesini 194f006ba9 Bug 1489844 - Port DOMPrefs to StaticPrefs - part 22 - dom.indexedDB.storageOption.enabled, r=ehsan 2018-09-10 20:36:17 +02:00
Jan de Mooij 3201853e80 Bug 1468752 part 4 - Remove JS_GetGlobalForObject. r=bz 2018-07-06 12:54:00 +02:00
Jeff Gilbert 5b753da289 Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot
MozReview-Commit-ID: JtTcLL5OPF0
2018-06-26 17:05:01 -07:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Johann Hofmann 29d2c4832d Bug 1451486 - Part 1 - Ignore the storage attribute on indexedDB.open() by default. r=asuth,baku
MozReview-Commit-ID: 844FRkx3rKZ

--HG--
extra : rebase_source : 962cd1ade83b34561ebd6cd70365b44b85a3aa95
2018-04-10 23:00:30 +02:00
Ben Kelly 4bdb579005 Bug 1451913 P10 Make the inner window explicitly disconnect the IDBFactory. r=baku 2018-04-16 06:08:53 -07:00
Ben Kelly 1d58ed46c7 Bug 1451913 P5 Migrate the IDBFactory to the new window on document.open(). r=smaug 2018-04-16 06:08:52 -07:00
Johann Hofmann 6412fc069e 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

--HG--
extra : rebase_source : 0f8e4f8716a2e302e10c3ede81ceb2216706dfc7
2018-03-15 10:35:05 +01:00
Johann Hofmann 6fc9759b14 Bug 1442560 - Add a note for deprecating passing a storage option to indexedDB.open(). r=asuth
MozReview-Commit-ID: 44yCmYrPP26

--HG--
extra : rebase_source : f087aeb9fdd608fbd0f38b4f846c24fa01dcdfa6
2018-03-05 20:01:00 +01:00
Johann Hofmann e5ffc51da5 Bug 1428320 - Ignore about: pages for indexedDB storage type telemetry. r=janv
MozReview-Commit-ID: 1Cx5hBsqyX1

--HG--
extra : rebase_source : 7bfe9fdefb413d84309943697f2159e107f5d05e
2018-01-05 12:52:07 +01:00
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