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

88 Коммитов

Автор SHA1 Сообщение Дата
Jan Varga 28f6cf6f67 Bug 1718190 - QM: Move ScopedLogExtraInfo into own h/cpp files; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D118807
2021-06-25 10:21:27 +00:00
Jan Varga e6e7042dab Bug 1716568 - Extract first initialization attempts handling into a generic (templatized) class; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D118140
2021-06-23 21:26:10 +00:00
Jan Varga 3a8312aeeb Bug 1716568 - Move implementation details of InitializationInfo to a cpp file; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D118131
2021-06-23 21:26:07 +00:00
Jan Varga 74cdcac137 Bug 1713820 - Add dedicated QM_LOG_ERROR_ENABLED identifier for conditional LogError compilation; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D117132
2021-06-08 16:27:28 +00:00
Jan Varga 01123f15c4 Bug 1709352 - Add ToResult function for QMResult; r=dom-storage-reviewers,jstutte,asuth
Differential Revision: https://phabricator.services.mozilla.com/D114242
2021-05-25 07:28:19 +00:00
Jan Varga 3f78809e7b Bug 1709352 - Introduce QMResult; r=dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D114241
2021-05-25 07:28:19 +00:00
Simon Giesecke 7d2448b7d5 Bug 1641178 - Add NSSCipherStrategy. r=dom-workers-and-storage-reviewers,jcj,janv
Differential Revision: https://phabricator.services.mozilla.com/D73290
2021-03-12 09:31:57 +00:00
Jan Varga 1cc0ba995e Bug 1686031 - Rename OriginMetadata.h to CommonMetadata.h; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D107608
2021-03-11 05:53:17 +00:00
Butkovits Atila 22e752e996 Backed out changeset 8f7c25b71590 (bug 1641178) for causing GTest failures. CLOSED TREE 2021-02-24 18:14:23 +02:00
Simon Giesecke e09b49aa3d Bug 1641178 - Add NSSCipherStrategy. r=dom-workers-and-storage-reviewers,jcj,janv
Differential Revision: https://phabricator.services.mozilla.com/D73290
2021-02-24 13:18:24 +00:00
Jan Varga 832c277718 Bug 1686031 - Fold QuotaInfo into OriginMetadata and rename QuotaInfo.h to OriginMetadata.h; r=dom-storage-reviewers,sg
Existing uses of OriginMetadata (with only mGroup and mOrigin) have been
adapted and they now always initialize mSuffix to an empty string.
Following patches will change it to real suffix if there's any.

Differential Revision: https://phabricator.services.mozilla.com/D104971
2021-02-12 21:43:42 +00:00
Jan Varga 5e9556369c Bug 1690025 - Move DirectoryLockImpl class to separate files; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D104163
2021-02-09 10:42:23 +00:00
Jan Varga 9e117b1b8d Bug 1690025 - Move DirectoryLock class to a separate file; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D104154
2021-02-09 10:42:22 +00:00
Butkovits Atila 7ab6339085 Backed out 3 changesets (bug 1690025) for causing failure on Client.h. CLOSED TREE
Backed out changeset 5d5e90d31294 (bug 1690025)
Backed out changeset d2b39aebfad2 (bug 1690025)
Backed out changeset 2684aad61a6b (bug 1690025)
2021-02-09 10:12:28 +02:00
Jan Varga 8eeb10cf67 Bug 1690025 - Move DirectoryLockImpl class to separate files; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D104163
2021-02-09 06:52:57 +00:00
Jan Varga dcca4eaf0c Bug 1690025 - Move DirectoryLock class to a separate file; r=dom-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D104154
2021-02-09 06:52:57 +00:00
Simon Giesecke 916433bd5a Bug 1685111 - Extract CachingDatabaseConnection base class from indexedDB's DatabaseConnection. r=dom-workers-and-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D100922
2021-01-26 09:19:44 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Simon Giesecke f92973bd13 Bug 1663924 - Replace output parameters by return values on GetInfo* methods. r=dom-workers-and-storage-reviewers,ttung
This also changes all methods that use a pair of group/origin or a tuple of
suffix/group/origin input/output parameters to use a single GroupAndOrigin
resp. QuotaInfo struct input parameter or return value. Also, several types
having a pair or 3-tuple of such data members are changed to use these structs
instead.

Differential Revision: https://phabricator.services.mozilla.com/D91131
2020-10-20 11:46:31 +00:00
Simon Giesecke 43fe271d3f Bug 1634436 - Make DecryptingInputStream implement nsIIPCSerializableInputStream. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D75913
2020-06-25 13:23:06 +00:00
Simon Giesecke aa427a3937 Bug 1634436 - Add encrypted stream implementation. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D76481
2020-06-11 08:00:39 +00:00
Mihai Alexandru Michis 43e76aca07 Backed out 2 changesets (bug 1634436) for causing bustages in TestEncryptedStream.cpp
CLOSED TREE

Backed out changeset dc8cff56948f (bug 1634436)
Backed out changeset 2bdc7d7249f5 (bug 1634436)
2020-06-10 22:17:20 +03:00
Simon Giesecke de661a3fd7 Bug 1634436 - Add encrypted stream implementation. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D76481
2020-06-10 16:17:06 +00:00
Jan Varga 6caab074de Bug 1624802 - Refactor tests in dom/quota/test; r=dom-workers-and-storage-reviewers,ttung
The refactoring consists of:
- moving tests into dedicated directories for given test type
  (browser, mochitest, xpcshell)
- replacing add_test with addTest in browser tests to share common setup code
- adding a way to synchronously load scripts in all test types by providing a
  path relative to the top level directory
- adding a way to explicitely run a mochitest inside a worker context
  (loadWorkerScript)
- removing the need to declare testGenerator in tests
- removing the need to set some common preferences in individual tests
- sharing common functions for:
  - system context (system.js)
  - content context (content.js)
  - browser tests (browser.js)
  - mochitest tests (mochitest.js)
  - xpcshell tests (xpcshell.js)
  - nested content test inside a browser test (nestedtest.js)
  - buffer/view/blob/file (file.js)

Differential Revision: https://phabricator.services.mozilla.com/D73149
2020-05-08 09:49:52 +00:00
Jan Varga a87575bf55 Bug 1619592 - Rationalize PersistenceTypeTo* and PersistenceTypeFrom* methods; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D65937

--HG--
extra : moz-landing-system : lando
2020-03-13 12:55:20 +00:00
shindli 0b7c33c8d9 Backed out changeset 50af9d58c645 (bug 1619592) for causing build bustages in /builds/worker/checkouts/gecko/dom/quota/PersistenceType.cpp CLOSED TREE 2020-03-11 10:37:51 +02:00
Jan Varga a415028a3c Bug 1619592 - Rationalize PersistenceTypeTo* and PersistenceTypeFrom* methods; r=dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D65937

--HG--
extra : moz-landing-system : lando
2020-03-11 08:08:46 +00:00
Jan Varga efe95e9831 Bug 1608025 - Move storage upgrade related tests to a separate directory; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59661

--HG--
rename : dom/quota/test/unit/defaultStorageUpgrade_profile.zip => dom/quota/test/unit/upgrades/defaultStorageUpgrade_profile.zip
rename : dom/quota/test/unit/idbSubdirUpgrade1_profile.zip => dom/quota/test/unit/upgrades/idbSubdirUpgrade1_profile.zip
rename : dom/quota/test/unit/idbSubdirUpgrade2_profile.zip => dom/quota/test/unit/upgrades/idbSubdirUpgrade2_profile.zip
rename : dom/quota/test/unit/localStorageArchive1upgrade_profile.zip => dom/quota/test/unit/upgrades/localStorageArchive1upgrade_profile.zip
rename : dom/quota/test/unit/localStorageArchive4upgrade_profile.zip => dom/quota/test/unit/upgrades/localStorageArchive4upgrade_profile.zip
rename : dom/quota/test/unit/localStorageArchiveDowngrade_profile.zip => dom/quota/test/unit/upgrades/localStorageArchiveDowngrade_profile.zip
rename : dom/quota/test/unit/morgueCleanup_profile.zip => dom/quota/test/unit/upgrades/morgueCleanup_profile.zip
rename : dom/quota/test/unit/obsoleteOriginAttributes_profile.zip => dom/quota/test/unit/upgrades/obsoleteOriginAttributes_profile.zip
rename : dom/quota/test/unit/originAttributesUpgrade_profile.zip => dom/quota/test/unit/upgrades/originAttributesUpgrade_profile.zip
rename : dom/quota/test/unit/storagePersistentUpgrade_profile.zip => dom/quota/test/unit/upgrades/storagePersistentUpgrade_profile.zip
rename : dom/quota/test/unit/test_defaultStorageUpgrade.js => dom/quota/test/unit/upgrades/test_defaultStorageUpgrade.js
rename : dom/quota/test/unit/test_idbSubdirUpgrade.js => dom/quota/test/unit/upgrades/test_idbSubdirUpgrade.js
rename : dom/quota/test/unit/test_localStorageArchive1upgrade.js => dom/quota/test/unit/upgrades/test_localStorageArchive1upgrade.js
rename : dom/quota/test/unit/test_localStorageArchive4upgrade.js => dom/quota/test/unit/upgrades/test_localStorageArchive4upgrade.js
rename : dom/quota/test/unit/test_localStorageArchiveDowngrade.js => dom/quota/test/unit/upgrades/test_localStorageArchiveDowngrade.js
rename : dom/quota/test/unit/test_morgueCleanup.js => dom/quota/test/unit/upgrades/test_morgueCleanup.js
rename : dom/quota/test/unit/test_obsoleteOriginAttributesUpgrade.js => dom/quota/test/unit/upgrades/test_obsoleteOriginAttributesUpgrade.js
rename : dom/quota/test/unit/test_obsoleteOrigins.js => dom/quota/test/unit/upgrades/test_obsoleteOrigins.js
rename : dom/quota/test/unit/test_originAttributesUpgrade.js => dom/quota/test/unit/upgrades/test_originAttributesUpgrade.js
rename : dom/quota/test/unit/test_storagePersistentUpgrade.js => dom/quota/test/unit/upgrades/test_storagePersistentUpgrade.js
rename : dom/quota/test/unit/test_version2_1upgrade.js => dom/quota/test/unit/upgrades/test_version2_1upgrade.js
rename : dom/quota/test/unit/version2_1upgrade_profile.zip => dom/quota/test/unit/upgrades/version2_1upgrade_profile.zip
rename : dom/quota/test/unit/version2_2upgrade_profile.zip => dom/quota/test/unit/upgrades/version2_2upgrade_profile.zip
extra : moz-landing-system : lando
2020-01-14 02:36:19 +00:00
Jan Varga 88ce749554 Bug 1606318 - Enhance QM_FIRST_INITIALIZATION_ATTEMPT testing; r=asuth
Changes:
- use separate directory for testing of telemetry
- use separate zip packages
- test entire histogram snapshots (not just particular key)
- a test doesn't need to do own cleanup anymore
- general cleanup

Differential Revision: https://phabricator.services.mozilla.com/D58382

--HG--
rename : dom/quota/test/unit/head.js => dom/quota/test/unit/head-shared.js
rename : dom/quota/test/unit/test_qm_first_initialization_attempt.js => dom/quota/test/unit/telemetry/test_qm_first_initialization_attempt.js
rename : dom/quota/test/unit/version2_0upgrade_profile.zip => dom/quota/test/unit/telemetry/version1_0_profile.zip
rename : dom/quota/test/unit/version2_1upgrade_profile.zip => dom/quota/test/unit/telemetry/version2_0_profile.zip
rename : dom/quota/test/unit/version2_2upgrade_profile.zip => dom/quota/test/unit/telemetry/version2_1_profile.zip
extra : moz-landing-system : lando
2019-12-31 02:26:27 +00:00
Jan Varga 143724b74b Bug 1592934 - Abstract first initialization attempt recording into a standalone class; r=ttung,dom-workers-and-storage-reviewers,sg
Differential Revision: https://phabricator.services.mozilla.com/D55653

--HG--
extra : moz-landing-system : lando
2019-12-11 08:22:47 +00:00
Sebastian Hengst 0341151d63 Bug 1594981 - update Core::DOM* and Core::Storage* bugzilla product and component meta data in moz.build files after reorganization in bug 1594717. r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D52345

--HG--
extra : moz-landing-system : lando
2019-11-08 12:17:57 +00:00
Jan Varga d97b501006 Bug 1563023 - Part 5: Rationalize Client::TypeToText and Client::TypeFromText methods; r=asuth
This patch makes it easier to create new Client::TypeTo and Client::TypeFrom
variations by creating generic reusable helpers.

Differential Revision: https://phabricator.services.mozilla.com/D38628

--HG--
extra : moz-landing-system : lando
2019-08-23 04:49:14 +00:00
Yaron Tausky e8af6c032a Bug 1539538 - Introduce UnsafePtr r=froydnj,janv
This commit adds a smart pointer class that verifies that no dangling
pointers remain after the pointee went out of scope. This verification is
opt-in and can be controlled both statically and dynamically by the pointee.

Differential Revision: https://phabricator.services.mozilla.com/D25200

--HG--
extra : moz-landing-system : lando
2019-04-09 14:41:57 +00:00
Jan Varga ecbb521e47 Bug 1526891 - Part 1: Change handling of indexeddb:// from simple URI to standard URL; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D20905
2019-02-23 04:20:29 +01:00
Tom Tung 698bbba539 Bug 1521017 - Using NS_NAMED_LITERNAL_CSTRING to avoid increasing the number of static constructors; r=asuth
This patch uses nsLiteralCString instead of nsCString for avoiding increasing
the number of static constructors. Also, it removes the declaration of
kInternalError and kExternalError on Beta and Release since they won't be use
in these channels.

Differential Revision: https://phabricator.services.mozilla.com/D16981

--HG--
extra : moz-landing-system : lando
2019-01-18 22:52:06 +00:00
Jan Varga 422e07e11f Bug 1324836 - Part 2: Add a gtest for OriginScope testing; r=asuth
Original patch by Tom Tung [:tt].
2018-09-07 18:23:02 +02:00
Jan Varga e7d1daf164 Bug 1361330 - Part 5: Automatic tests for simpledb; r=asuth 2018-08-20 14:33:10 +02:00
Jan Varga b277f1385d Bug 1361330 - Part 2: Move MemoryOutputStream to a generic place; r=asuth 2018-08-20 14:32:48 +02:00
Andrea Marchesini 26352bfee1 Bug 1432963 - Fixing workers headers - part 17 - no LIBS=[workers] in moz.build files, r=smaug 2018-01-31 08:25:30 +01:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Shawn Huang 3ee2d007ef Bug 1286717 - Part 2: Add mochitests for persist/persisted functions, r=janv 2017-04-17 15:06:39 +08:00
Jan Varga 2232d1fd5c Bug 1348660 - Part 1: Convert nsIQuotaUsageRequest result related attributes to a new structure nsIQuotaUsageResult and expose it using a new result attribute of type nsIVariant; r=btseng 2017-03-22 12:13:38 +01:00
Jan Varga 0b3480d328 Bug 1339081 - Part 1: Create a standalone testing infrastructure with a basic test; r=asuth 2017-03-06 18:39:17 +01:00
Joel Maher f297f17181 Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt
MozReview-Commit-ID: 2HbPxGkrVfv
2017-03-01 08:20:25 -05:00
Shawn Huang ba9fa0d68a Bug 1267941 - Implement Storage API estimate() feature, r=janv,baku 2016-06-14 13:57:36 +01:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00