Closed Bug 1768050 Opened 2 years ago Closed 2 years ago

Move all OPFS operations other than getting the root off PBackground

Categories

(Core :: DOM: File, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: jesup, Assigned: jesup)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(2 files, 6 obsolete files)

We can't do database opens/operations or obtain fd's on PBackground; they need to be done on another thread/TaskQueue.

Depends on: 1761370
Attachment #9275296 - Attachment description: WIP: Bug 1768050: Move OPFS operations off PBackground r=nika,jari,#dom-storage-reviewers → Bug 1768050: Move OPFS operations off PBackground r=nika,jari,#dom-storage-reviewers
Attachment #9275296 - Attachment description: Bug 1768050: Move OPFS operations off PBackground r=nika,jari,#dom-storage-reviewers → Bug 1768050: Move OPFS operations off PBackground r=nika,jari,janv,#dom-storage-reviewers,#ipc-reviewers

This is copy and refactoring of https://phabricator.services.mozilla.com/D145643
for the purpose of resolving conflicts in the OPFS patch stack.
It can be merged or abandoned in favor of the original patch D145643.

Attachment #9278106 - Attachment description: WIP: Bug 1768050: Move OPFS operations off PBackground. → Bug 1768050: Move OPFS operations off PBackground r=nika,jari,janv,#dom-storage-reviewers,#ipc-reviewers
Attachment #9275296 - Attachment is obsolete: true

This is copy and refactoring of https://phabricator.services.mozilla.com/D145643
for the purpose of resolving conflicts in the OPFS patch stack.
It can be merged or abandoned in favor of the original patch D145643.

This patch is intended to be folded into D147273.

Depends on: 1774442
Attachment #9281218 - Attachment description: Bug 1768050: Cache OPFS IPC channels by thread and origin to allow reuse r=#dom-storage-reviewers,nika → WIP: Bug 1768050: Cache OPFS IPC channels by nsIGlobalObject to allow reuse r=#dom-storage-reviewers,nika
Attachment #9281170 - Attachment is obsolete: true
Attachment #9282589 - Attachment is obsolete: true
Attachment #9278106 - Attachment description: Bug 1768050: Move OPFS operations off PBackground r=nika,jari,janv,#dom-storage-reviewers,#ipc-reviewers → Bug 1768050: Move OPFS operations off PBackground r=jari,janv,#dom-storage-reviewers,#ipc-reviewers
Attachment #9278106 - Attachment description: Bug 1768050: Move OPFS operations off PBackground r=jari,janv,#dom-storage-reviewers,#ipc-reviewers → Bug 1768050: Move OPFS operations off PBackground r=nika,jari,janv,#dom-storage-reviewers,#ipc-reviewers
Attachment #9278106 - Attachment description: Bug 1768050: Move OPFS operations off PBackground r=nika,jari,janv,#dom-storage-reviewers,#ipc-reviewers → Bug 1768050: Move OPFS operations off PBackground r=jari,janv,#dom-storage-reviewers,#ipc-reviewers
Attachment #9281218 - Attachment description: WIP: Bug 1768050: Cache OPFS IPC channels by nsIGlobalObject to allow reuse r=#dom-storage-reviewers,nika → Bug 1768050: Cache OPFS IPC channels by nsIGlobalObject to allow reuse r=#dom-storage-reviewers,nika
Pushed by jjalkanen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a3c7a9041511
Move OPFS operations off PBackground r=janv,nika
https://hg.mozilla.org/integration/autoland/rev/52f54c3384db
Test request handler. r=jesup
Pushed by jjalkanen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3297ee78ba17
Move OPFS operations off PBackground r=janv,nika
https://hg.mozilla.org/integration/autoland/rev/57d24405f8e1
Test request handler. r=jesup
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---

Comment on attachment 9281218 [details]
Bug 1768050: Cache OPFS IPC channels by nsIGlobalObject to allow reuse r=#dom-storage-reviewers,nika

Revision D149262 was moved to bug 1789696. Setting attachment 9281218 [details] to obsolete.

Attachment #9281218 - Attachment is obsolete: true

Comment on attachment 9281219 [details]
Bug 1768050: Factor out connection creation for OPFS so we can reuse it for PostMessage r=#dom-storage-reviewers

Revision D149263 was moved to bug 1789696. Setting attachment 9281219 [details] to obsolete.

Attachment #9281219 - Attachment is obsolete: true

Moved remaining patches to a new bug

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Flags: needinfo?(rjesup)
Resolution: --- → FIXED
Attachment #9280067 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: