Skip to content

CapturedJSStack::as_string should pass a principal argument #534

Open
@jdm

Description

@jdm

We always pass a null pointer to BuildStackString right now:

ptr::null_mut(),

Equivalent code in Firefox obtains the current context realm and the realm of the stack object and chooses the least privileged of the two (by checking if one subsumes the other). Another option would be to allow the caller to pass an explicit principal and delegate this choice to the embedder, which would (naively) require making this an unsafe method.

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