Skip to content

Assigning a string to location has no effect #20485

Closed

Description

@gterzian
location.assign("http://www.mozilla.org"); // or
location = "http://www.mozilla.org";

It seems that currently, using location.assign works, however assigning a string to the location global variable doesn't.

Example in tests: tests/wpt/web-platform-tests/html/browsers/browsing-the-web/unloading-documents/unload/006-1.html, where I was able to make the test pass by changing it to using location.assign.

I would assume both would be forwarded to Location.Assign, however that doesn't seem to be the case.

I guess this is a binding issue? Could you please point me out how to fix this?

Activity

  1. jdm commented on Mar 31, 2018

    @jdm
    Member

    The PutForwards annotation on the location member in Window.webidl (and Document.webidl is commented out. #9990 was filed for using it after we implemented it, but it never got done.

  2. added
    A-content/dom
    on Mar 31, 2018
  3. added 4 commits that reference this issue on Apr 18, 2018
    10a3418
    172d4eb
    acccc13
    4629070
  4. added 3 commits that reference this issue on May 1, 2018
    884851b
    ae80a01
    1d8283e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/dom

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions