Jan Varga
668951fa09
Bug 1339081 - Part 17: Strip obsolete origin attributes as part of new upgrade helper (needed for bug 1314361), original patch by Kris Maglione; r=asuth
2017-03-06 18:40:18 +01:00
Jan Varga
8aa8c239ef
Bug 1339081 - Part 16: Remove apps data as part of new upgrade helper (needed for bug 1311057), add a bunch of new tests to verify upgrade methods; r=asuth
2017-03-06 18:40:13 +01:00
Jan Varga
abd3a27c40
Bug 1339081 - Part 15: Shift code to correct place; r=asuth
2017-03-06 18:40:09 +01:00
Jan Varga
13fabd5cfe
Bug 1339081 - Part 14: Don't try to upgrade obsolete origins, remove them right after we detect them; r=asuth
2017-03-06 18:40:07 +01:00
Jan Varga
98b838f625
Bug 1339081 - Part 13: Move morgue directory cleanup to new upgrade helper; r=asuth
2017-03-06 18:40:02 +01:00
Jan Varga
ea68f97a21
Bug 1339081 - Part 12: Add a baseline helper for 1.0 to 2.0 upgrade; r=asuth
2017-03-06 18:39:58 +01:00
Jan Varga
9b5aef9c4a
Bug 1339081 - Part 11: Fallback to PR_Now() if GetLastModifiedTime() fails; r=asuth
2017-03-06 18:39:56 +01:00
Jan Varga
54f45ff479
Bug 1339081 - Part 10: Unify GetDirectoryMetadata() in upgrade helpers; r=asuth
2017-03-06 18:39:51 +01:00
Jan Varga
7cca6c51e2
Bug 1339081 - Part 9: Allow origin properties to be checked before they are added to the list for processing in upgrade helpers; r=asuth
2017-03-06 18:39:49 +01:00
Jan Varga
71cfe5b3f6
Bug 1339081 - Part 8: Rename the upgrade helper to match the method that is using it; r=asuth
2017-03-06 18:39:44 +01:00
Jan Varga
a2571e9f2b
Bug 1339081 - Part 7: Implement safe metadata writting using temp files; r=asuth
2017-03-06 18:39:40 +01:00
Jan Varga
f0b8133f92
Bug 1339081 - Part 6: Fix unknown file handling; r=asuth
2017-03-06 18:39:38 +01:00
Jan Varga
61fe32371f
Bug 1339081 - Part 5: Add a method for testing origin initialization; r=asuth
2017-03-06 18:39:33 +01:00
Jan Varga
9c49950e02
Bug 1339081 - Part 3: Split OriginClearOp to make code more readable and cleaner; r=asuth
2017-03-06 18:39:25 +01:00
Jan Varga
528102ba20
Bug 1339081 - Part 2: Add a method for testing storage initialization; r=asuth
2017-03-06 18:39:21 +01:00
Jan Varga
928e24d75d
Bug 1311057 - Part 3: Code simplification and cleanup after isApp removal; r=asuth
2017-03-06 18:38:44 +01:00
Jan Varga
dcc35b89e6
Bug 1311057 - Part 2: Remove isApp from quota manager and its clients; r=asuth
2017-03-06 18:38:42 +01:00
Tom Tromey
d2667a2b27
Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
...
MozReview-Commit-ID: 2E8FoiNxU8L
--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
Jeff Walden
965f401e22
Bug 1287006 - Don't pass Nullable by value in various places, rather by const&. r=bz
...
--HG--
extra : rebase_source : cbdd6e33cc69f58983a4b6ce97642caf54ddbc9a
2017-02-13 09:07:40 -08:00
Eric Rahm
6af429ff8a
Bug 1332202 - Convert most infallible NS_EscapeURL calls to fallible version. r=froydnj
...
This makes most users of |NS_EscapeURL| use the fallible version. A few are
left infallible as it seems like the entire function is assumed to be
infallible.
MozReview-Commit-ID: Cy1L5jQwjO1
2017-01-24 11:11:44 -08:00
Andrea Marchesini
359ae91eac
Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby
2017-01-12 17:38:48 +01:00
Jan Varga
c4553baa05
Bug 1329689 - QuotaManager: Upgrade loop should also cover "from 0_0 to 1_0" case; r=asuth
2017-01-10 11:44:32 +01:00
Nathan Froyd
f6a73ed989
Bug 1315274 - rename mozilla::MakeRange to mozilla::IntegerRange; r=Waldo
...
MakeRange is just way too generic for this sort of thing.
2017-01-06 09:22:53 -05:00
Jan Varga
965cffb389
Bug 1286914 - Part 1: Prevent creation of origin directories which are not supported by our origin parser; r=asuth
2017-01-03 13:46:34 +01:00
Cervantes Yu
6629c9887c
Bug 1321244 - Lazily init global variables that could implicitly initialize NSPR. r=froydnj
...
MozReview-Commit-ID: IPU9Qc8lr50
--HG--
extra : rebase_source : f25e7403492d1935c8ca714a75ccf99811775b44
2016-12-01 11:48:32 +08:00
Yoshi Huang
2ceecc22f5
Bug 1324115 - Part 2: replace the callers to use C++ helper. r=smaug
2016-12-21 14:59:21 +08:00
Kan-Ru Chen
f8100451db
Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
...
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.
MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Andi-Bogdan Postelnicu
cf2f92a099
Bug 1301333 - Add mark-initialisation-func annotation to functions Init and DoInitOnMainThread from GetUsageOp. r=baku
...
MozReview-Commit-ID: KKUX4FE0pth
2016-10-18 12:57:57 +03:00
Tim Huang
5277f5e7aa
Bug 1278037 - Part 3: Modify the nsIQuotaManagerService.clearStoragesForPrincipal() for clearing all storages under the given origin. r=janv
...
--HG--
extra : rebase_source : a7fdc05823bf274258588cd682bc2698d39b452d
extra : histedit_source : 4222585575bb96126cd8bca7e2c342d121535752
2016-08-17 14:46:16 +08:00
Michael Layzell
b258dfaa89
Bug 1297802 - Remove unused RefPtr<> and COMPtr<> types in dom/, r=baku
...
MozReview-Commit-ID: CLUJZdbN7sW
2016-08-29 11:40:02 -04:00
Kan-Ru Chen
b6d880aca1
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Andi-Bogdan Postelnicu
108d1db3a1
Bug 1296297 - prevent integer overflow in QuotaManager::EnsureOriginIsInitialized. r=janv
...
MozReview-Commit-ID: KPYheDCdLa1
2016-08-18 17:16:24 +03: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
Nicholas Nethercote
e7f10a07fd
Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
...
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.
As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Jan Varga
410139beb7
Bug 1280216 - Remove nsIAboutModule::GetIndexedDBOriginPostfix(); r=bz
2016-08-09 20:47:29 +02:00
Tom Tung
3b07e666f0
Bug 1281103 - Support getting the group usage and the limit in QuotaManagerService. r=janv.
...
--HG--
extra : rebase_source : 609795f25eeab0d96f962799629e4e81492fb087
2016-06-24 10:24:06 +08:00
Jan Varga
a6c44c3242
Bug 1261491 - Intermittent test_quotaExceeded_recovery.js | application crashed [@ mozilla::dom::IndexedDatabaseManager::Notify]; r=khuey
2016-07-18 18:51:54 +02:00
Jan Varga
3b7511210c
Bug 1280336 - b2g-installer broke indexedDB; r=asuth
2016-06-16 15:26:22 +01:00
Jan Varga
2d1e6d62c8
Bug 1246828 - Part 4: Rename profile-before-change2 to profile-before-change-qm and profile-before-change3 to profile-before-change-telemetry; r=asuth
2016-06-15 11:49:04 +01:00
Kyle Huey
a43998c8bf
Bug 1246828 - Part 2: Main changes, quota manager shutdown pushed back to profile-before-change2; r=asuth
2016-06-15 11:48:50 +01:00
Jan Varga
a25258797e
Bug 1195930 - Part 11: Unified SQLite database schema and storage version, major and minor version support; r=asuth
2016-06-05 21:43:09 +02:00
Jan Varga
2b9890e7bd
Bug 1195930 - Part 10: Use extra durability mode for storage.sqlite; r=asuth
2016-06-05 21:43:02 +02:00
Jan Varga
111f87a355
Bug 1195930 - Part 9: Remove old directories (fixes bug 1273717); r=asuth
2016-06-05 21:42:55 +02:00
Jan Varga
af49dba19e
Bug 1195930 - Part 8: Fixed support for origin clearing, reworked internal origin patterns to use OriginAttributesPattern; r=asuth
2016-06-05 21:42:48 +02:00
Jan Varga
5a2fea4594
Bug 1195930 - Part 5: Core changes, support for storage directory versioning, new metadata v2 files, origin suffix added to API methods, origin attributes used across the implementation, more upgrade tests; r=asuth
2016-06-05 21:42:25 +02:00
Jan Varga
f81ab7f0fb
Bug 1195930 - Part 4: Move code to correct place - add; r=asuth
2016-06-05 21:42:18 +02:00
Jan Varga
0360bbe43a
Bug 1195930 - Part 3: Move code to correct place - remove; r=asuth
2016-06-05 21:42:11 +02:00
Jan Varga
3249fba977
Bug 1195930 - Part 2: Refactor StorageDirectoryHelper to a base class and two separate final classes, improve correctness of default storage upgrade and add support for resource urls; r=asuth
2016-06-05 21:42:01 +02:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Kyle Huey
c73656947b
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Kyle Huey
d9265a3eaf
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Jan Varga
e578091712
Bug 1182987 - Part 3: Add "cleanup" transaction with disabled quota checks and vacuuming/checkpointing after commit; r=baku
2016-03-15 07:00:37 +01:00
Jonathan Watt
a73bd8c354
Bug 1253094, part 1 - Stop using DebugOnly for class/struct members in dom/. r=baku
...
MozReview-Commit-ID: ErWZs9oV4WS
2016-02-26 15:52:06 +00:00
J. Ryan Stinnett
2a55d065b7
Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
...
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement. Other
methods that pass these values around also have name changes.
Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc. No changes are made to any
serialization formats. Only runtime method and variable names are updated.
No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations. These are corrected in subsequent patches
focused on behavior.
MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Jan Varga
8857cde431
Bug 1248550 - Part 1: Move main idle maintenance logic into a new object Maintenance; r=khuey
2016-03-01 10:44:39 +01:00
Joel Maher
0a0e9612ba
Bug 1250525 - remove #IFDEF ENABLE_TESTS from dom/quota/ActorsParent.cpp. r=janv
...
MozReview-Commit-ID: 8Ico1aiA3k7
--HG--
extra : rebase_source : aeace3927029da4ffc9acad8ac3dc495e2d0f163
2016-02-23 07:55:21 -08:00
Wes Kocher
b899130873
Backed out changeset e28540fe266a (bug 1246828) for xpcshell failures in test_TelemetrySession.js CLOSED TREE
...
--HG--
extra : commitid : 8sSr108Ob73
2016-02-10 13:40:41 -08:00
Kyle Huey
dd361add99
Bug 1246828: Push QuotaManager shutdown back to profile-before-change2
2016-02-10 10:53:26 -08:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Kyle Huey
91efc5a86c
Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug
2016-01-30 09:05:36 -08:00
Yoshi Huang
67beaeeec1
Bug 1209349 - Audit the callers of the two-argument OriginAttributes. r=janv
2015-12-17 15:41:16 +08:00
Yoshi Huang
4b500464f5
Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking.
2015-11-03 09:50:54 +08:00
Jan Varga
38ee7f95d8
Bug 961049 - Part 4: QuotaManager on PBackground core changes; r=baku
...
--HG--
rename : dom/quota/QuotaManager.cpp => dom/quota/ActorsParent.cpp
rename : dom/quota/nsIUsageCallback.idl => dom/quota/nsIQuotaCallbacks.idl
rename : dom/quota/nsIQuotaManager.idl => dom/quota/nsIQuotaManagerService.idl
rename : dom/quota/nsIQuotaRequest.idl => dom/quota/nsIQuotaRequests.idl
2015-11-22 10:43:55 +01:00