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

706 Коммитов

Автор SHA1 Сообщение Дата
Simon Giesecke 59b23375c0 Bug 1613985 - Use MOZ_COUNTED_DEFAULT_CTOR_*/MOZ_COUNTED_DTOR_* macros. r=froydnj
This removes the need for explicit #ifdef NS_BUILD_REFCNT_LOGGING without
introducing user-defined destructors when it is not defined.

Also, some uses of virtual for declaring destructors are replaced by the
appropriate override declaration through these changes.

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

--HG--
extra : moz-landing-system : lando
2020-02-19 18:05:38 +00:00
Jan Varga 29b9b41a82 Bug 1608759 - Forbid leaf common entries; r=ttung,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D62068

--HG--
extra : moz-landing-system : lando
2020-02-14 09:22:58 +00:00
Jan Varga 1ffac26af6 Bug 1608759 - Add "beforeInstall" key to package definitions; r=ttung,dom-workers-and-storage-reviewers
This is a preparation for "afterInitTemporaryStorage" key which requires initialized storage.

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

--HG--
extra : moz-landing-system : lando
2020-02-14 09:23:24 +00:00
Tom Tung 9bea5d80bc Bug 1610880 - Do not remove the empty origin directory when clearing a client; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D62434

--HG--
extra : moz-landing-system : lando
2020-02-11 14:51:13 +00:00
Simon Giesecke 861998c782 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/quota. r=dom-workers-and-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D62557

--HG--
extra : moz-landing-system : lando
2020-02-12 10:25:22 +00:00
Tom Tung 9b0da9363f Bug 1609625 - P1 - Add a temporary scalar probes to get the longest initializattion time; r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D61231

--HG--
extra : moz-landing-system : lando
2020-02-10 10:43:06 +00:00
Jan Varga 4e80555e4f Bug 1608759 - Implement and use verifyStorage() function in all upgrade tests; r=dom-workers-and-storage-reviewers,ttung
The new verifyStorage() function takes current storage structure on disk and compares it with the expected structure. The expected structure is defined in JSON and consists of a per test package definition and a shared package definition. The shared package definition contains unknown files and directories which need to be ignored in all upgrade methods.
The new infrastructure for checking storage structure will be used later in other tests to verify handling of unknown or obsolete stuff for example during temporary storage initialization.

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

--HG--
extra : moz-landing-system : lando
2020-02-07 15:32:26 +00:00
Jan Varga 6f4faaf11f Bug 1608759 - installPackage() shouldn't allow file overwrites by default; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D61449

--HG--
extra : moz-landing-system : lando
2020-02-07 15:29:24 +00:00
Daniel Varga 1c197e92da Backed out 2 changesets (bug 1608759) for causing lint failure
CLOSED TREE

Backed out changeset cb706e608d58 (bug 1608759)
Backed out changeset f2a08319ac10 (bug 1608759)

--HG--
extra : amend_source : 251fcc6d6304fe6a4ed240f6d1d409fc168f1c31
2020-02-07 17:23:36 +02:00
Jan Varga 469bf12cb7 Bug 1608759 - Implement and use verifyStorage() function in all upgrade tests; r=dom-workers-and-storage-reviewers,ttung
The new verifyStorage() function takes current storage structure on disk and compares it with the expected structure. The expected structure is defined in JSON and consists of a per test package definition and a shared package definition. The shared package definition contains unknown files and directories which need to be ignored in all upgrade methods.
The new infrastructure for checking storage structure will be used later in other tests to verify handling of unknown or obsolete stuff for example during temporary storage initialization.

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

--HG--
extra : moz-landing-system : lando
2020-02-07 14:58:38 +00:00
Jan Varga fc5548f510 Bug 1608759 - installPackage() shouldn't allow file overwrites by default; r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D61449

--HG--
extra : moz-landing-system : lando
2020-02-07 14:41:54 +00:00
Tom Tung c92ce328e9 Bug 1607770 - Drop QM_REPOSITORIES_INITIALIZATION_TIME; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D60116

--HG--
extra : moz-landing-system : lando
2020-01-17 18:32:44 +00:00
Jan Varga c30d23c18d Bug 1608025 - Add a test for the upgrade from storage version 2.2; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59711

--HG--
extra : moz-landing-system : lando
2020-01-14 06:17:09 +00:00
Jan Varga f0098d5b2f Bug 1608025 - Clean up the test for the upgrade from storage version 2.1; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59710

--HG--
rename : dom/quota/test/unit/test_unknownFiles.js => dom/quota/test/unit/upgrades/test_unknownFiles.js
rename : dom/quota/test/unit/upgrades/test_obsoleteOrigins.js => dom/quota/test/unit/upgrades/test_upgradeStorageFrom2_1.js
rename : dom/quota/test/unit/upgrades/version2_2upgrade_profile.zip => dom/quota/test/unit/upgrades/version2_1_profile.zip
extra : moz-landing-system : lando
2020-01-14 06:16:52 +00:00
Jan Varga 83c009bffd Bug 1608025 - Clean up the test for the upgrade from storage version 2.0; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59709

--HG--
rename : dom/quota/test/unit/upgrades/test_version2_1upgrade.js => dom/quota/test/unit/upgrades/test_upgradeStorageFrom2_0.js
rename : dom/quota/test/unit/upgrades/version2_1upgrade_profile.zip => dom/quota/test/unit/upgrades/version2_0_profile.zip
extra : moz-landing-system : lando
2020-01-14 06:15:53 +00:00
Jan Varga c93adc6459 Bug 1608025 - Clean up the tests for the upgrade from storage version 1.0; r=asuth
This patch also fixes the code to correctly handle the removal of appId origin
attribute.

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

--HG--
rename : dom/quota/test/unit/upgrades/test_morgueCleanup.js => dom/quota/test/unit/upgrades/test_upgradeStorageFrom1_0_removeMorgueDirectory.js
rename : dom/quota/test/unit/upgrades/test_obsoleteOriginAttributesUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeStorageFrom1_0_stripObsoleteOriginAttributes.js
rename : dom/quota/test/unit/upgrades/morgueCleanup_profile.zip => dom/quota/test/unit/upgrades/version1_0_morgueDirectory_profile.zip
rename : dom/quota/test/unit/upgrades/obsoleteOriginAttributes_profile.zip => dom/quota/test/unit/upgrades/version1_0_obsoleteOriginAttributes_profile.zip
extra : moz-landing-system : lando
2020-01-14 06:19:50 +00:00
Jan Varga 48cc81bb25 Bug 1608025 - Clean up the test for the upgrade from storage version 0.0; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59703

--HG--
rename : dom/quota/test/unit/upgrades/test_originAttributesUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeStorageFrom0_0.js
rename : dom/quota/test/unit/upgrades/originAttributesUpgrade_profile.zip => dom/quota/test/unit/upgrades/version0_0_profile.zip
extra : moz-landing-system : lando
2020-01-14 02:53:39 +00:00
Jan Varga 37fc02fdf4 Bug 1608025 - Add tests for the removal of old indexedDB/ and storage/persistent/ directories; r=asuth
This patch also refactors relevant upgrade methods to do the removal directly.

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

--HG--
extra : moz-landing-system : lando
2020-01-14 02:53:16 +00:00
Jan Varga 68e8c0c78c Bug 1608025 - Clean up the test for the upgrade from storage/persistent/ directory; r=asuth
An additional test is added for the complete upgrade from flat origin directories.

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

--HG--
rename : dom/quota/test/unit/upgrades/persistentStorageDirectory_flatOriginDirectories_profile.zip => dom/quota/test/unit/upgrades/persistentStorageDirectory_originDirectories_profile.zip
rename : dom/quota/test/unit/upgrades/defaultStorageUpgrade_profile.zip => dom/quota/test/unit/upgrades/persistentStorageDirectory_profile.zip
rename : dom/quota/test/unit/upgrades/test_defaultStorageUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeFromPersistentStorageDirectory.js
rename : dom/quota/test/unit/upgrades/test_upgradeFromFlatOriginDirectories.js => dom/quota/test/unit/upgrades/test_upgradeFromPersistentStorageDirectory_upgradeOriginDirectories.js
extra : moz-landing-system : lando
2020-01-14 02:51:42 +00:00
Jan Varga 2159f2fcd8 Bug 1608025 - Clean up the test for the upgrade from indexedDB/ directory; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59700

--HG--
rename : dom/quota/test/unit/upgrades/storagePersistentUpgrade_profile.zip => dom/quota/test/unit/upgrades/indexedDBDirectory_profile.zip
rename : dom/quota/test/unit/upgrades/test_storagePersistentUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeFromIndexedDBDirectory.js
extra : moz-landing-system : lando
2020-01-14 02:50:08 +00:00
Jan Varga f8f9157438 Bug 1608025 - Clean up the test for the upgrade from flat origin directories; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59664

--HG--
rename : dom/quota/test/unit/upgrades/idbSubdirUpgrade1_profile.zip => dom/quota/test/unit/upgrades/indexedDBDirectory_flatOriginDirectories_profile.zip
rename : dom/quota/test/unit/upgrades/idbSubdirUpgrade2_profile.zip => dom/quota/test/unit/upgrades/persistentStorageDirectory_flatOriginDirectories_profile.zip
rename : dom/quota/test/unit/upgrades/test_idbSubdirUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeFromFlatOriginDirectories.js
extra : moz-landing-system : lando
2020-01-14 02:49:43 +00:00
Jan Varga e575c0d8c6 Bug 1608025 - Legacy upgrade methods should only be called when storage.sqlite doesn't exist; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D59663

--HG--
extra : moz-landing-system : lando
2020-01-14 02:43:40 +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
Eric Rahm 78ee6675cf Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59042

--HG--
extra : moz-landing-system : lando
2020-01-13 19:18:56 +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 b6698c1d76 Bug 1606318 - Don't initialize storage for the reset operation; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D58373

--HG--
extra : moz-landing-system : lando
2019-12-31 02:26:27 +00:00
Chris Peterson 406763af7f Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj
This changeset is a simple find and replace of `MOZ_FALLTHROUGH` and `[[fallthrough]]`.

Unfortunately, the MOZ_FALLTHROUGH_ASSERT macro (to assert on case fallthrough in debug builds) is still necessary after switching from [[clang::fallthrough]] to [[fallthrough]] because:

* MOZ_ASSERT(false) followed by [[fallthrough]] triggers a -Wunreachable-code warning in DEBUG builds
* but MOZ_ASSERT(false) without [[fallthrough]] triggers a -Wimplicit-fallthrough warning in NDEBUG builds.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 07:16:43 +00:00
Tom Tung 09c32538fb Bug 1594075 - P1 - Ignore the unknown directories in origin directories; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D51873

--HG--
extra : moz-landing-system : lando
2019-12-18 15:50:18 +00:00
Kris Maglione 94e3b0bd8d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Tom Tung 3f2680cc2c Bug 1592934 - Revert the accidental changes on D55653; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D56711

--HG--
extra : moz-landing-system : lando
2019-12-11 10:40:49 +00:00
Tom Tung 21f3d11a5b Bug 1474608 - P3 - Add a argument (aCallback) to deleteDataFromOriginAttributesPattern and add a browser test to verify the behavior on quota storage; r=asuth,baku
Differential Revision: https://phabricator.services.mozilla.com/D34325

--HG--
extra : moz-landing-system : lando
2019-12-10 10:03:34 +00:00
Tom Tung 83eb41d14a Bug 1474608 - P1 - Clear origin attributes directly for deleteDataFromOriginAttributesPattern if it's possible; r=asuth,baku
The idea of this patch is to try to not use oberver mechanism as possible. To
achieve that, it introduces deleteByOriginAttributes() to cleaners. Different
from other methods, it would only be executed if it's implemented from a
cleaner.

It doesn't remove oberver mechanism entirely since some cleaners are still using
that for other deleteByXXX() functions. So, it only applies removing stuff to
PushService, QuotaManagerService, ServiceWorkerManager, nsPermissionManager,
nsApplicationCacheService, and nsCookieService.

Since the original issue is related to QuotaManagerService, it adds xpcshell
test under the dom/quota/test/unit/ to ensure the behavior won't be changed
accidentally in the future.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 19:47:13 +00:00
Tom Tung 5775eb8fb7 Bug 1592934 - Measure the success rate for the UpgradeStorageFrom* functions and the InitializeRepository function per repository; r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D55834

--HG--
extra : moz-landing-system : lando
2019-12-11 08:27:01 +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
Tom Tung 279395a8a9 Bug 1592934 - Use spread syntax to reduce the code in test_qm_first_initialization_attempt.js; r=janv,dom-workers-and-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D55074

--HG--
extra : moz-landing-system : lando
2019-12-09 18:47:56 +00:00
Jan Varga f6d7565873 Bug 1592934 - Change some bools to bitfields before adding new telemetry probes; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D54902

--HG--
extra : moz-landing-system : lando
2019-12-09 18:47:56 +00:00
Tom Tung 77e83b90da Bug 1592934 - Add telemetry probes to track persistent origins and temporary origins initialization success rate; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D53392

--HG--
extra : moz-landing-system : lando
2019-12-11 08:20:46 +00:00
shindli 91924fedc7 Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione 16a9b29848 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:13 +00:00
Noemi Erli 82d41a33b2 Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione 910eab35d2 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-07 19:11:58 +00:00
Daniel Varga 84a601a6d4 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione 20da940e14 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:14 +00:00
Gabriele Svelto ace6d1063f Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:24:56 +00:00
Boris Zbarsky 75124bdd98 Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D53067

--HG--
extra : moz-landing-system : lando
2019-12-05 04:44:32 +00:00
Thomas Nguyen a0b817ac65 Bug 1483631 - Restrict nested permission requests in webrtc with permission delegate r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47417

--HG--
extra : moz-landing-system : lando
2019-12-04 15:39:14 +00:00
Dorel Luca a381d5c96d Backed out changeset f6e53d1c6518 (bug 1600545) for Android build bustage. CLOSED TREE 2019-12-04 17:32:27 +02:00
Gabriele Svelto bc9290f767 Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-04 15:01:19 +00:00
Gurzau Raul 4f21dcd081 Backed out 4 changesets (bug 1483631) for failing at browser_temporary_permissions.js on a CLOSED TREE.
Backed out changeset f5bb5f6a148f (bug 1483631)
Backed out changeset c5e562c1d590 (bug 1483631)
Backed out changeset 7ef09193a7ef (bug 1483631)
Backed out changeset a909dcbbea2b (bug 1483631)
2019-12-03 21:57:55 +02:00
Thomas Nguyen 023216a561 Bug 1483631 - Restrict nested permission requests in webrtc with permission delegate r=jib
Differential Revision: https://phabricator.services.mozilla.com/D47417

--HG--
extra : moz-landing-system : lando
2019-12-03 16:25:31 +00:00
Jan Varga 6ba032116d Bug 1592934 - Refactor some storage initialization methods before adding new telemetry probes; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D54307

--HG--
extra : moz-landing-system : lando
2019-11-25 15:04:43 +00:00
Geoff Lankow c871ba0fb2 Bug 1592934 - Disable test_qm_first_initialization_attempt.js on Thunderbird, which doesn't have the Telemetry probe tested. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D54238

--HG--
extra : moz-landing-system : lando
2019-11-22 08:17:42 +00:00
Tom Tung 05af29c010 Bug 1592934 - Add a telemetry probe to track storage initialization success rate; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D51845

--HG--
extra : moz-landing-system : lando
2019-11-20 10:34:34 +00:00
Tom Tung 6667804ee1 Bug 1592934 - Add a telemetry probe to track temporary storage initialization success rate; r=janv,janerik
Differential Revision: https://phabricator.services.mozilla.com/D51267

--HG--
extra : moz-landing-system : lando
2019-11-21 07:59:34 +00:00
Tom Tung 1479bb0a2c Bug 1592204 - P2 - Ignore the unknown files in repositories; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D51872

--HG--
extra : moz-landing-system : lando
2019-11-12 07:52:14 +00:00
Tom Tung b98464a5ca Bug 1592204 - P1 - Ignore the unknown files in origin directories; r=asuth,janv
Differential Revision: https://phabricator.services.mozilla.com/D51669

--HG--
extra : moz-landing-system : lando
2019-11-11 13:50:03 +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
Simon Giesecke 7296de4e10 Bug 1586189 - Reenable fission tests. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D49753

--HG--
extra : moz-landing-system : lando
2019-10-30 16:37:33 +00:00
Kashav Madan 449e7a00a5 Bug 1588193 - Fix broken tests, r=mccr8
Most of these tests relied on assumptions that were broken by the updated
content event helpers (timing, being in a ContentTask, etc).

Depends on D51441

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

--HG--
extra : moz-landing-system : lando
2019-11-07 21:33:10 +00:00
Thomas Nguyen 7e65be9414 Bug 1583142 - Remove third-party "persistent-storage" prompting support r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50908

--HG--
extra : moz-landing-system : lando
2019-11-07 14:29:02 +00:00
Ciure Andrei c5a6643d39 Backed out changeset dde0354521ab (bug 1583142) for causing PermissionDelegateHandler.cpp bustages CLOSED TREE 2019-11-07 14:17:02 +02:00
Thomas Nguyen f431604a62 Bug 1583142 - Remove third-party "persistent-storage" prompting support r=baku
Differential Revision: https://phabricator.services.mozilla.com/D50908

--HG--
extra : moz-landing-system : lando
2019-11-07 11:56:28 +00:00
Dorel Luca 97387d0d91 Backed out 4 changesets (bug 1588193) for Broswer-chrome failures on browser/base/content/test/favicons/browser_favicon_change_not_in_document.js. CLOSED TREE
Backed out changeset df4c4004abc5 (bug 1588193)
Backed out changeset 1beab20978b2 (bug 1588193)
Backed out changeset 1ada54e7ba7c (bug 1588193)
Backed out changeset a0d9537d24c6 (bug 1588193)
2019-11-06 21:30:29 +02:00
Kashav Madan a7396dd033 Bug 1588193 - Fix broken tests, r=mccr8
Most of these tests relied on assumptions that were broken by the new content
event utils (timing, being in a ContentTask, etc).

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

--HG--
extra : moz-landing-system : lando
2019-11-06 15:35:19 +00:00
Brindusan Cristian 3eaf139d31 Backed out 4 changesets (bug 1588193) for bc failures at browser_mixedcontent_aboutblocked.js. CLOSED TREE
Backed out changeset 0bbb1f92bb47 (bug 1588193)
Backed out changeset 074bb8a6fd68 (bug 1588193)
Backed out changeset b10ec4058ec3 (bug 1588193)
Backed out changeset c90bab12f4cb (bug 1588193)
2019-11-06 02:39:32 +02:00
Kashav Madan eeeeb803c4 Bug 1588193 - Fix broken tests, r=mccr8
Most of these tests relied on assumptions that were broken by the new content
event utils (timing, being in a ContentTask, etc).

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

--HG--
extra : moz-landing-system : lando
2019-11-05 21:52:43 +00:00
Simon Giesecke 1a9ec13557 Bug 1586189 - Re-implement waitForMessage based on waitForContentEvent; r=mccr8,janv
Differential Revision: https://phabricator.services.mozilla.com/D49752

--HG--
extra : moz-landing-system : lando
2019-10-30 15:26:25 +00:00
Jan Varga f745bd76f9 Bug 1578177 - Crash in [@ mozilla::dom::quota::QuotaManager::EnsureTemporaryStorageIsInitialized]; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D50969

--HG--
extra : moz-landing-system : lando
2019-10-29 20:42:24 +00:00
Razvan Maries 5461b139a7 Backed out changeset e48111fd8ea2 (bug 1586189) as per Tom's request. CLOSED TREE 2019-10-28 16:17:46 +02:00
Simon Giesecke 38c02fb8ce Bug 1586189 - Re-implement waitForMessage based on waitForContentEvent. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D49752

--HG--
extra : moz-landing-system : lando
2019-10-18 17:53:15 +00:00
Jan Varga 8ea2bacbc6 Bug 1591394 - QM: Add more getters to DirectoryLock; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D50610

--HG--
extra : moz-landing-system : lando
2019-10-26 08:50:43 +00:00
Tom Tung a973874d9b Bug 1576593 - P2 - Change the way for tunneling quota information to SQLite; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D48183

--HG--
extra : moz-landing-system : lando
2019-10-25 12:02:10 +00:00
Tom Tung 20f43c02f7 Bug 1576593 - P1 - Move IntString to QuotaCommon and introduce IntCString to be used by IDB and DOM Cache; r=janv
Differential Revision: https://phabricator.services.mozilla.com/D49575

--HG--
extra : moz-landing-system : lando
2019-10-23 08:52:47 +00:00
Jan Varga 9dd55053d6 Bug 1587258 - QM: Add support for creating specialized directory locks from existing directory locks; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D48657

--HG--
extra : moz-landing-system : lando
2019-10-10 14:55:53 +00:00
Tom Tung 6a0e551480 Bug 1584986 - P3 - Correct the function in the test to fix the try failure; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47747

--HG--
extra : moz-landing-system : lando
2019-10-02 07:57:53 +00:00
Tom Tung c0f0ba97a7 Bug 1584986 - P2 - Rename listInitializedOrigins to listOrigins; r=asuth,johannh
Differential Revision: https://phabricator.services.mozilla.com/D47741

--HG--
rename : dom/quota/test/unit/test_listInitializedOrigins.js => dom/quota/test/unit/test_listOrigins.js
extra : moz-landing-system : lando
2019-10-02 07:57:52 +00:00
Tom Tung 1acaad7116 Bug 1584986 - P1 - Remove the early return for listInitializedOrigins; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47740

--HG--
extra : moz-landing-system : lando
2019-10-02 07:57:57 +00:00
Jan Varga ae7651951f Bug 1584323 - Add more object properties to IndexedDBShutdownTimeout and LocalStorageShutdownTimeout crash annotations; r=asuth, dr=chutten
Differential Revision: https://phabricator.services.mozilla.com/D47341

--HG--
extra : moz-landing-system : lando
2019-10-02 04:28:23 +00:00
Oana Pop Rus cb6253f70e Backed out 3 changesets (bug 1584986) for xpcshell failures in dom/quota/test/unit/test_listOrigins.js on a CLOSED TREE
Backed out changeset 8fc63769342e (bug 1584986)
Backed out changeset ec44603ce08a (bug 1584986)
Backed out changeset 0fc3d50b822e (bug 1584986)

--HG--
rename : dom/quota/test/unit/test_listOrigins.js => dom/quota/test/unit/test_listInitializedOrigins.js
2019-10-02 07:50:10 +03:00
Tom Tung 3c51d58e32 Bug 1584986 - P3 - Correct the function in the test to fix the try failure; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47747

--HG--
extra : moz-landing-system : lando
2019-10-01 16:33:00 +00:00
Tom Tung a9e251b07f Bug 1584986 - P2 - Rename listInitializedOrigins to listOrigins; r=asuth,johannh
Depends on D47740

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

--HG--
rename : dom/quota/test/unit/test_listInitializedOrigins.js => dom/quota/test/unit/test_listOrigins.js
extra : moz-landing-system : lando
2019-10-01 13:29:52 +00:00
Tom Tung 1ff828704c Bug 1584986 - P1 - Remove the early return for listInitializedOrigins; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D47740

--HG--
extra : moz-landing-system : lando
2019-10-01 13:10:27 +00:00
Tom Tung 4912a256d6 Bug 1561611 - Removing the code for collecting unexpected filenames in origin directories; r=chutten,janv
Differential Revision: https://phabricator.services.mozilla.com/D36021

--HG--
extra : moz-landing-system : lando
2019-09-27 17:16:08 +00:00
Boris Zbarsky 2e33a36d6f Bug 1581278 part 3. Stop incorrectly rejecting promises in storage manager. r=janv
Differential Revision: https://phabricator.services.mozilla.com/D46384

--HG--
extra : moz-landing-system : lando
2019-09-19 18:18:28 +00:00
Jan Varga 3ca5b40b9a Bug 1581127 - Add IsShuttingDown checks to DOM Cache origin initialization; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D45846

--HG--
extra : moz-landing-system : lando
2019-09-13 16:43:30 +00:00
Tom Tung c960a1a6b6 Bug 1580238 - Extend the release for the prob of initialization time on QM and add another one to catch the longest time; r=janv,sg
Differential Revision: https://phabricator.services.mozilla.com/D45501

--HG--
extra : moz-landing-system : lando
2019-09-11 13:55:50 +00:00
Simon Giesecke eea9483c1b Bug 1578146 - Moved test case to test_validOrigins.js after fixes to rust-url. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D44354

--HG--
extra : moz-landing-system : lando
2019-09-02 21:18:02 +00:00
Mark Banner 709c7ccf0c Bug 1577746 - Automatically enable more ESLint rules for dom/. r=baku
This enables:
- mozilla/no-useless-parameters
- mozilla/no-useless-run-test
- no-extra-boolean-cast
- no-unneeded-ternary

Depends on D44150

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

--HG--
extra : moz-landing-system : lando
2019-09-02 11:23:26 +00:00
Mark Banner 351d147e2f Bug 1577746 - Enable ESLint rule object-shorthand for dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D44149

--HG--
extra : moz-landing-system : lando
2019-09-02 11:22:27 +00:00
Gurzau Raul e4ce5cd90c Backed out changeset cbce223800c1 (bug 1540247) for xpcshell failures at test_obsoleteOrigins.js on a CLOSED TREE. 2019-08-28 19:47:27 +03:00
Simon Giesecke fc1e20f375 Bug 1540247 - Expose MozURL::Init to JS for QuotaManager tests r=ttung,asuth
Differential Revision: https://phabricator.services.mozilla.com/D39207

--HG--
extra : moz-landing-system : lando
2019-08-27 18:14:35 +00:00
Jan Varga 359aa0d597 Bug 1576453 - Fix a problem with unused variable in non-nightly builds; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D43357

--HG--
extra : moz-landing-system : lando
2019-08-25 17:39:17 +00:00
Jan Varga f4529437df Bug 1563023 - Part 9: Ignore quota cache if LSNG is disabled; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D39881

--HG--
extra : moz-landing-system : lando
2019-08-25 00:45:41 +00:00
Jan Varga f4d108788b Bug 1563023 - Part 8: Ignore quota cache if the user loads the same profile in different builds; r=asuth
This patch adds support for quota cache invalidation if the profile is loaded in different builds.

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

--HG--
extra : moz-landing-system : lando
2019-08-25 00:45:19 +00:00
Jan Varga 3e97ea2f34 Bug 1563023 - Part 7: Implement caching functionality; r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D38817

--HG--
extra : moz-landing-system : lando
2019-08-25 01:34:37 +00:00
Jan Varga 76cfa3e3e3 Bug 1563023 - Part 6: Simplify iterations over all client types; r=asuth
This patch converts index based client type loops to iterator based client type
loops. This way the static cast is avoided and the loops are simpler and more
readable.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 04:48:36 +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
Jan Varga a650fac7b0 Bug 1563023 - Part 4: Get rid of custom usage tracking in LS by using client usage tracked by QM; r=asuth
This patch gets rid of gUsages in LSNG. This provides better consistency and
makes it easier to cache quota info on disk.
The patch also fixes some edge cases when usage was not adjusted correctly after
a failed file or database operation.

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

--HG--
extra : moz-landing-system : lando
2019-08-23 04:46:14 +00:00
Jan Varga 0e46119bb9 Bug 1563023 - Part 3: Change client usage type to support the null value; r=asuth
This patch wraps the uint64_t type in a Maybe container, so the client usage can
represent a state when there are no files on disk for the given client. Zero
usage then represents a state when there are some files but they are empty or
the client tracks logical size (not physical size of files on disk) and the
logical size is zero. This can be useful especially for LocalStorage.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 20:52:09 +00:00
Jan Varga 9ab967ef1e Bug 1563023 - Part 2: Add support for getting origin usage from memory; r=asuth
This patch modifies getUsageForPrincipal to support getting origin usage from
memory. Support for getting group usage is factored out to a standalone method
called Estimate.
Operations based on NormalOriginOperationBase can now avoid directory locking
if they don't touch disk.

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

--HG--
extra : moz-landing-system : lando
2019-08-22 20:51:09 +00:00