Skip to content

hasStorageAccess() deals with promises in parallel #151

@domfarolino

Description

@domfarolino

While in parallel, the hasStorageAccess() algorithm creates a promise and fulfills it in-parallel, which is an invalid usage of the Promise API.

More generally, I don't really understand the flow of that algorithm. The method itself returns a promise and then right when it goes in parallel it creates another promise which becomes the resolved value of the outer promise? It seems like we should just pass in the first promise (that was properly created on the main thread) into the https://privacycg.github.io/storage-access/#determine-the-storage-access-policy algorithm, which would then resolve/reject it accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions