Skip to content

Commit e7f5160

Browse files
committed
Bug 1639545 - Also run IndexedDB mochitests in private browsing mode.r=dom-storage-reviewers,janv
Depends on D76670 Differential Revision: https://phabricator.services.mozilla.com/D170597
1 parent 186bf4e commit e7f5160

File tree

4 files changed

+47
-5
lines changed

4 files changed

+47
-5
lines changed

dom/indexedDB/moz.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ with Files("**"):
99

1010
MOCHITEST_MANIFESTS += [
1111
"test/mochitest-intl-api.ini",
12-
"test/mochitest.ini",
12+
"test/mochitest-private.ini",
13+
"test/mochitest-regular.ini",
1314
]
1415

1516
BROWSER_CHROME_MANIFESTS += ["test/browser.ini"]

dom/indexedDB/test/mochitest.ini renamed to dom/indexedDB/test/mochitest-common.ini

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ support-files =
8383
unit/test_readonly_transactions.js
8484
unit/test_readwriteflush_disabled.js
8585
unit/test_remove_index.js
86+
unit/test_remove_objectStore.js
8687
unit/test_rename_index.js
8788
unit/test_rename_index_errors.js
88-
unit/test_remove_objectStore.js
8989
unit/test_rename_objectStore.js
9090
unit/test_rename_objectStore_errors.js
9191
unit/test_request_readyState.js
@@ -136,10 +136,18 @@ skip-if = os == 'win' && os_version == '6.1' # Bug 1342415
136136
skip-if =
137137
(os == 'win' && os_version == '6.1') || (verify && (os == 'win')) # Bug 1342415
138138
http3
139+
socketprocess_networking # Bug 1827221: test is toggled off here rather than in private.ini
140+
# because socketprocess_networking is an un-released feature so we
141+
# do not loose much coverage by disabling it here.
142+
139143
[test_blob_worker_xhr_post_multifile.html]
140144
skip-if =
141145
os == 'win' && os_version == '6.1' # Bug 1342415
142146
http3
147+
socketprocess_networking # Bug 1827221: test is toggled off here rather than in private.ini
148+
# because socketprocess_networking is an un-released feature so we
149+
# do not loose much coverage by disabling it here.
150+
143151
[test_blob_worker_xhr_read.html]
144152
[test_blob_worker_xhr_read_slice.html]
145153
[test_blocked_order.html]
@@ -170,7 +178,6 @@ skip-if = verify
170178
[test_file_array.html]
171179
[test_file_cross_database_copying.html]
172180
[test_file_delete.html]
173-
[test_file_os_delete.html]
174181
[test_file_put_deleted.html]
175182
[test_file_put_get_object.html]
176183
[test_file_put_get_values.html]
@@ -239,8 +246,6 @@ skip-if = verify
239246
[test_setVersion_events.html]
240247
[test_setVersion_exclusion.html]
241248
[test_setVersion_throw.html]
242-
[test_storage_manager_estimate.html]
243-
scheme=https
244249
[test_success_events_after_abort.html]
245250
[test_table_locks.html]
246251
[test_table_rollback.html]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
[DEFAULT]
6+
dupe-manifest =
7+
prefs =
8+
browser.privatebrowsing.autostart=true
9+
dom.indexedDB.privateBrowsing.enabled=true
10+
extensions.blocklist.enabled=false
11+
tags = indexedDB indexedDB-private
12+
13+
[include:mochitest-common.ini]
14+
15+
[test_storage_manager_estimate.html]
16+
scheme=https
17+
skip-if =
18+
xorigin
19+
[test_file_os_delete.html]
20+
skip-if = true # Bug 1819284: Run test_file_os_delete only for regular manifest.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
[DEFAULT]
6+
dupe-manifest =
7+
prefs =
8+
extensions.blocklist.enabled=false
9+
tags = indexedDB indexedDB-regular
10+
11+
[include:mochitest-common.ini]
12+
13+
[test_storage_manager_estimate.html]
14+
scheme=https
15+
[test_file_os_delete.html] # Bug 1819284: Run test_file_os_delete only for regular manifest.
16+
skip-if = xorigin # Bug 1827617: Investigate test_file_os_delete.html failure in xorigin.

0 commit comments

Comments
 (0)