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

354 Коммитов

Автор SHA1 Сообщение Дата
Kagami Sascha Rosylight c771068e58 Bug 1908664 - Add nsIPrincipal::GetIsInPrivateBrowsing r=media-playback-reviewers,anti-tracking-reviewers,dom-storage-reviewers,padenot,asuth,pbz
Differential Revision: https://phabricator.services.mozilla.com/D216993
2024-07-26 17:47:51 +00:00
Emilio Cobos Álvarez 4ffa6418bb Bug 1904442 - Rename GlobalTeardownObserver::GetOwner to GetOwnerWindow. r=smaug,media-playback-reviewers,dom-storage-reviewers,aosmond,padenot,asuth
Also HasOrHasHadOwner to HasOrHasHadOwnerWindow.

Differential Revision: https://phabricator.services.mozilla.com/D214772
2024-07-01 11:49:59 +00:00
Tom Schuster 6613ec7689 Bug 1904004 - Use OriginAttributes::IsPrivateBrowsing instead of open coding PBM checks. r=timhuang,cookie-reviewers,anti-tracking-reviewers,profiler-reviewers,necko-reviewers,kershaw,dom-storage-reviewers,janv,canaltinova,dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D214532
2024-06-24 11:06:18 +00:00
Jari Jalkanen 0182792f58 Bug 1878137 - Defer reporting declined IDB storage access to method calls. r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D207268
2024-05-08 14:29:53 +00:00
Jan Varga 11443624aa Bug 1893635 - Handle disconnection from global in IDBFactory::Databases; r=dom-storage-reviewers,webidl,saschanaz,asuth
Differential Revision: https://phabricator.services.mozilla.com/D209206
2024-05-03 07:21:06 +00:00
Jari Jalkanen 83f211d36f Bug 1890730 - Fix IDBFactory deleteDatabase to not use IDBOpenDBOptions. r=dom-storage-reviewers,webidl,smaug,asuth
Differential Revision: https://phabricator.services.mozilla.com/D207168
2024-04-22 04:46:59 +00:00
Simon Giesecke 25caa8b5fb Bug 1275496 - Remove custom overload of Open with options. r=webidl,janv,saschanaz,smaug,asuth
The original author of this patch is Simon Giesecke.

Differential Revision: https://phabricator.services.mozilla.com/D38293
2024-04-22 04:46:58 +00:00
Jan Varga 504e95b43b Bug 934640 - Implement IDBFactory.databases() to enumerate IndexedDB databases; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D190053
2024-03-25 10:54:33 +00:00
Jan Varga 113e2c7522 Bug 934640 - Extract persistence type deduction into a separate function; r=dom-storage-reviewers,jari
GetPersistenceType will be also called from IDBFactory::Databases.

Differential Revision: https://phabricator.services.mozilla.com/D190018
2024-03-25 10:54:31 +00:00
Jan Varga 28b80c6924 Bug 934640 - Extract background actor creation into a separate function; r=dom-storage-reviewers,jari
EnsureBackgroundActor will be also called from IDBFactory::Databases.

Differential Revision: https://phabricator.services.mozilla.com/D190017
2024-03-25 10:54:31 +00:00
Jan Varga 1113d3070a Bug 934640 - Added IDBFactory.databases function to webidl; r=dom-storage-reviewers,webidl,smaug,aiunusov,jari
Differential Revision: https://phabricator.services.mozilla.com/D54141
2024-03-25 10:54:29 +00:00
Cristian Tuns 3ea845929a Backed out 12 changesets (bug 934640) for causing wpt failures in idb-explicit-commit.any.html CLOSED TREE
Backed out changeset f842e5594224 (bug 934640)
Backed out changeset 3cf1e31d16ba (bug 934640)
Backed out changeset ba85838ef7cd (bug 934640)
Backed out changeset a2769ba4c0ab (bug 934640)
Backed out changeset 3a2af6a310ab (bug 934640)
Backed out changeset 8bbe6f8fb695 (bug 934640)
Backed out changeset 184282e69b59 (bug 934640)
Backed out changeset f3b863806999 (bug 934640)
Backed out changeset ed5bb2e976ef (bug 934640)
Backed out changeset f315683fd3ba (bug 934640)
Backed out changeset 30dbc38c3e9a (bug 934640)
Backed out changeset ef90771d141d (bug 934640)
2024-03-05 13:17:12 -05:00
Jan Varga 690a9b7c4e Bug 934640 - Implement IDBFactory.databases() to enumerate IndexedDB databases; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D190053
2024-03-05 13:47:54 +00:00
Jan Varga 666036817a Bug 934640 - Extract persistence type deduction into a separate function; r=dom-storage-reviewers,jari
GetPersistenceType will be also called from IDBFactory::Databases.

Differential Revision: https://phabricator.services.mozilla.com/D190018
2024-03-05 13:47:52 +00:00
Jan Varga f657cf0455 Bug 934640 - Extract background actor creation into a separate function; r=dom-storage-reviewers,jari
EnsureBackgroundActor will be also called from IDBFactory::Databases.

Differential Revision: https://phabricator.services.mozilla.com/D190017
2024-03-05 13:47:52 +00:00
Jan Varga b4c70c8944 Bug 934640 - Added IDBFactory.databases function to webidl; r=dom-storage-reviewers,webidl,smaug,aiunusov,jari
Differential Revision: https://phabricator.services.mozilla.com/D54141
2024-03-05 13:47:50 +00:00
pstanciu 7fca764698 Backed out 12 changesets (bug 934640) for causing xpcshell failures on test_Store.js. CLOSED TREE
Backed out changeset b9130d0d185f (bug 934640)
Backed out changeset f607e117912b (bug 934640)
Backed out changeset 74b616bdd9ca (bug 934640)
Backed out changeset b4ee14550d3c (bug 934640)
Backed out changeset 133d11049a61 (bug 934640)
Backed out changeset 392886344471 (bug 934640)
Backed out changeset 189686b6ccfa (bug 934640)
Backed out changeset 067b6058bf70 (bug 934640)
Backed out changeset 9b5fbc925fe5 (bug 934640)
Backed out changeset 2e53225b5d81 (bug 934640)
Backed out changeset ffdb716cfa3f (bug 934640)
Backed out changeset fb741c8c2cb6 (bug 934640)
2024-03-05 00:13:09 +02:00
Jan Varga 95e042bcb2 Bug 934640 - Implement IDBFactory.databases() to enumerate IndexedDB databases; r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D190053
2024-03-04 17:35:47 +00:00
Jan Varga 41005715be Bug 934640 - Extract persistence type deduction into a separate function; r=dom-storage-reviewers,jari
GetPersistenceType will be also called from IDBFactory::Databases.

Differential Revision: https://phabricator.services.mozilla.com/D190018
2024-03-04 17:35:45 +00:00
Jan Varga 3dd66a4409 Bug 934640 - Extract background actor creation into a separate function; r=dom-storage-reviewers,jari
EnsureBackgroundActor will be also called from IDBFactory::Databases.

Differential Revision: https://phabricator.services.mozilla.com/D190017
2024-03-04 17:35:45 +00:00
Jan Varga 830af7fc5d Bug 934640 - Added IDBFactory.databases function to webidl; r=dom-storage-reviewers,webidl,smaug,aiunusov,jari
Differential Revision: https://phabricator.services.mozilla.com/D54141
2024-03-04 17:35:43 +00:00
Jan Varga ddc4caf2af Bug 1855142 - Rename isInternal to isPersistent; r=dom-storage-reviewers,jari
The new name better reflects the meaning.

Differential Revision: https://phabricator.services.mozilla.com/D189906
2024-02-29 15:28:49 +00:00
Jan Varga 67a8ed7ac0 Bug 1855142 - Ensure IndexedDabaseManager::mLocale separately; r=dom-storage-reviewers,jari
mLocale is currently initialized in IndexedDatabaseManager::Init which is
called from IndexedDatabaseManager::GetOrCreate if the manager doesn't exist.
This can be a problem when IndexedDatabaseManager::GetOrCreate is called very
early,for example in nsLayoutStatics::Initialize in the parent process.

This is a preparation for moving IndexedDatabaseManager::GetOrCreate from
FactoryOp::Open to InitializeQuotaManager.

Differential Revision: https://phabricator.services.mozilla.com/D189891
2024-02-29 15:28:47 +00:00
Andrew Sutherland 22a32b3d61 Bug 1879259 - Use GlobalTeardownObserver for consistency on workers. r=dom-storage-reviewers,janv
This removes the manual global tracking which was only correctly hooked
up for windows, but missed other global types, especially workers.
Because GlobalTeardownObserver is reliably notified of when to
disconnect, it is able to "safely" hold a raw non-owning pointer which
simplifies cycle collection somewhat.  (That design decision was
originally part of DOMEventTargetHelper which GlobalTeardownObserver
was extracted from.)  It also provides a pre-cached window getter.

This test includes a WPT test that reliably fails without the fix and
passes with the fix.

Differential Revision: https://phabricator.services.mozilla.com/D201188
2024-02-16 17:06:48 +00:00
Emilio Cobos Álvarez 25c0d10932 Bug 1624819 - Remove TaskCategory and other quantum dom remnants. r=smaug,media-playback-reviewers,credential-management-reviewers,cookie-reviewers,places-reviewers,win-reviewers,valentin,mhowell,sgalich,alwu
Sorry this is not a particularly easy patch to review. But it should be
mostly straight-forward.

I kept Document::Dispatch mostly for convenience, but could be
cleaned-up too / changed by SchedulerGroup::Dispatch. Similarly maybe
that can just be NS_DispatchToMainThread if we add an NS_IsMainThread
check there or something (to preserve shutdown semantics).

Differential Revision: https://phabricator.services.mozilla.com/D190450
2023-10-10 08:51:12 +00:00
Peter Van der Beken 9fba1d5220 Bug 1846277 - Remove nsGlobalWindow.h. r=dom-core,necko-reviewers,jesup,farre
Differential Revision: https://phabricator.services.mozilla.com/D184973
2023-08-02 20:41:48 +00:00
Jan Varga d195117a36 Bug 1829819: Use persistenceType 'private' for private origins.r=janv,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175916
2023-05-04 04:50:45 +00:00
Natalia Csoregi b8b793fec3 Backed out 13 changesets (bug 1831040, bug 1829814, bug 1831046, bug 1831039, bug 1781201, bug 1829819, bug 1830887) for causing failures on test_upgrade_add_index.html. CLOSED TREE
Backed out changeset 0c3955157c7b (bug 1830887)
Backed out changeset 4f0b25db66d8 (bug 1831040)
Backed out changeset c503469bc048 (bug 1829814)
Backed out changeset 1a3dbef50207 (bug 1829819)
Backed out changeset 2c78a126281e (bug 1831046)
Backed out changeset 37aede27e09d (bug 1831039)
Backed out changeset bafee1f02404 (bug 1781201)
Backed out changeset 11c291dd3fb0 (bug 1781201)
Backed out changeset 2b8747b30bba (bug 1781201)
Backed out changeset 2b8e694fbfb9 (bug 1781201)
Backed out changeset e4ac26a5b071 (bug 1781201)
Backed out changeset a3ae636a90fe (bug 1781201)
Backed out changeset 236d1112bc5b (bug 1781201)
2023-05-04 02:27:58 +03:00
Jan Varga b249c3278f Bug 1829819: Use persistenceType 'private' for private origins.r=janv,dom-storage-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D175916
2023-05-03 19:49:32 +00:00
Kagami Sascha Rosylight e60f5b3f5d Bug 1784590 - Part 2: Add use counters for unsupported APIs in PBM r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D154579
2022-08-24 10:58:47 +00:00
Kagami Sascha Rosylight 32a02a7021 Bug 1784590 - Part 1: Remove hide_in_pbmode prefs r=asuth
It turns out that websites break with different reasons when hiding things. At this point we want to stop revising the hack further and instead gather the data about how many websites are currently affected.

Differential Revision: https://phabricator.services.mozilla.com/D154578
2022-08-24 10:58:46 +00:00
Marian-Vasile Laza e32b8c70e9 Backed out 2 changesets (bug 1784590) for causing mochitest failures on test_privateBrowsing.html. CLOSED TREE
Backed out changeset cd284ba05fbb (bug 1784590)
Backed out changeset 2f714355a8c8 (bug 1784590)
2022-08-23 01:26:37 +03:00
Kagami Sascha Rosylight e2a0941795 Bug 1784590 - Part 2: Add use counters for unsupported APIs in PBM r=asuth
Depends on D154578

Differential Revision: https://phabricator.services.mozilla.com/D154579
2022-08-22 20:48:34 +00:00
Kagami Sascha Rosylight ee9aec5cb9 Bug 1784590 - Part 1: Remove hide_in_pbmode prefs r=asuth
It turns out that websites break with different reasons when hiding things. At this point we want to stop revising the hack further and instead gather the data about how many websites are currently affected.

Differential Revision: https://phabricator.services.mozilla.com/D154578
2022-08-22 20:48:33 +00:00
Marian-Vasile Laza b92a6b8396 Backed out 2 changesets (bug 1784590) for causing mochitest failures on test_privateBrowsing.html.
Backed out changeset 36d36e75930f (bug 1784590)
Backed out changeset 35dbbd6dbb70 (bug 1784590)
2022-08-22 22:50:41 +03:00
Kagami Sascha Rosylight 695e5e60df Bug 1784590 - Part 2: Add use counters for unsupported APIs in PBM r=asuth
Depends on D154578

Differential Revision: https://phabricator.services.mozilla.com/D154579
2022-08-22 18:48:12 +00:00
Kagami Sascha Rosylight bfc04ec1a4 Bug 1784590 - Part 1: Remove hide_in_pbmode prefs r=asuth
It turns out that websites break with different reasons when hiding things. At this point we want to stop revising the hack further and instead gather the data about how many websites are currently affected.

Differential Revision: https://phabricator.services.mozilla.com/D154578
2022-08-22 18:48:12 +00:00
Kagami Sascha Rosylight cdb7d00f1e Bug 1354500 - Part 2: Remove IDBDatabase#storage r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D151417
2022-07-15 01:55:26 +00:00
Kagami Sascha Rosylight 48adbee64d Bug 1776109 - Part 3: Hide caches/indexedDB/serviceWorker in PBMode r=asuth,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D150064
2022-06-30 11:33:56 +00:00
Iulian Moraru 23c0c3baed Backed out 3 changesets (bug 1776109) for causing hazzard build bustages on ServiceWorker.cpp.
Backed out changeset b6222b68a403 (bug 1776109)
Backed out changeset 80fb3c3a5a40 (bug 1776109)
Backed out changeset 021a94a72d0c (bug 1776109)
2022-06-30 09:53:28 +03:00
Kagami Sascha Rosylight 30b8df0dc0 Bug 1776109 - Part 3: Hide caches/indexedDB/serviceWorker in PBMode r=asuth,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D150064
2022-06-30 01:35:13 +00:00
criss a78fdd3dc0 Backed out 3 changesets (bug 1776109) for causing multiple failures. CLOSED TREE
Backed out changeset 8e76401f7c43 (bug 1776109)
Backed out changeset 1cdbbad1d996 (bug 1776109)
Backed out changeset 66bb4c49d615 (bug 1776109)
2022-06-30 03:23:01 +03:00
Kagami Sascha Rosylight 4c9ef0bb36 Bug 1776109 - Part 3: Hide caches/indexedDB/serviceWorker in PBMode r=asuth,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D150064
2022-06-29 22:52:39 +00:00
Sylvestre Ledru 98949ee751 Bug 1754767 - Remove duplicate includes r=media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D138441
2022-02-11 10:01:15 +00:00
Nika Layzell 09d88e5fd2 Bug 1749059 - Remove Quantum DOM support from IPDL, r=ipc-reviewers,mccr8
This is no longer necessary as the Quantum DOM project is no longer
happening, and removing support simplifies various components inside of
IPDL.

As some code used the support to get a `nsISerialEventTarget` for an
actor's worker thread, that method was replaced with a method which
instead pulls the nsISerialEventTarget from the MessageChannel and
should work on all actors.

Differential Revision: https://phabricator.services.mozilla.com/D135411
2022-01-25 20:29:46 +00:00
Simon Giesecke 6fac745ea4 Bug 1673931 - Remove dependency of BindingUtils.h on Document.h.
Differential Revision: https://phabricator.services.mozilla.com/D95048

Depends on D95047
2020-11-23 16:08:03 +00:00
Simon Giesecke 971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Sylvestre Ledru fde06f6d21 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 17:04:01 +00:00
Butkovits Atila 964cca3198 Backed out changeset c0adbf7522dc (bug 1674637) for bustage on GMPParent.cpp. CLOSED TREE 2020-11-04 10:54:36 +02:00
Sylvestre Ledru 5f29324f60 Bug 1674637 - Use nested namespaces in dom/ r=sg,andi
Also add some missing namespace qualifications

Done with:
./mach static-analysis check --checks="-*,modernize-concat-nested-namespaces" --fix dom/
./mach clang-format -p $(hg status dom/|grep ^M|awk '{print $2}')

Differential Revision: https://phabricator.services.mozilla.com/D95456
2020-11-04 08:29:00 +00:00