Closed Bug 1658977 Opened 5 years ago Closed 5 years ago

provide a way to use StorageManager API in tests on http

Categories

(Core :: Storage: StorageManager, enhancement)

enhancement

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bkelly, Unassigned)

Details

I'm working with a partner who is trying to run their automated tests on firefox. They are currently using the --unsafely-treat-insecure-origin-as-secure flag on chrome to run their tests on non-localhost http. When trying to get firefox running they are running into the problem that this site uses StorageManager, but there is no way to enable it on non-localhost http.

Would it be possible to add a pref to enable insecure access to StorageManager? Similar to the dom.serviceWorkers.testing.enabled pref.

Or would it make sense to implement a global SecureContext testing flag similar to what chrome provides? This would remove testing friction from future APIs as well.

:asuth pointed me to dom.securecontext.whitelist pref.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.