Skip to content

Should accessing location.href cross-origin throw a SecurityError? #1807

@cdumez

Description

@cdumez

Should accessing location.href cross-origin throw a SecurityError?

The issue is that based on the current specification, [[GetOwnProperty]] will return a descriptor that has a setter but no getter for Location's href property, instead of throwing a SecurityError.

I would expect that we throw a SecurityError (it is the current behavior of WebKit / Blink too). However, it is not clear to me from the specification that we should.

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