Closed Bug 1826886 Opened 1 year ago Closed 1 year ago

The "name" of an OPFS root should be the empty string

Categories

(Core :: DOM: File, defect)

Firefox 111
defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: asully, Assigned: jjalkanen)

Details

Attachments

(2 files)

Steps to reproduce:

let opfsRoot = await navigator.storage.getDirectory();
console.log(opfsRoot.name);

Actual results:

logs "root"

Expected results:

logs the empty string

See step 3.2 of https://fs.spec.whatwg.org/#dom-storagemanager-getdirectory

Tested on Firefox 111 - haven't tested more recent builds

Confirmed that stable Chrome and Safari both use the empty string

Confirmed. Jari, could you take a look?

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jjalkanen)
Assignee: nobody → jjalkanen
Status: NEW → ASSIGNED

The test checks that name is empty also after deserialization.

Depends on D175221

Pushed by jjalkanen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/85cb12cef6b7
Use empty OPFS root name. r=dom-storage-reviewers,janv
https://hg.mozilla.org/integration/autoland/rev/4bd6beb5ccc4
Check that OPFS root name is empty. r=dom-storage-reviewers,janv
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39491 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-114b-p2]
Flags: needinfo?(jjalkanen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: