Skip to content

window.location.hash get or set error -- firefox 9, 10 version #1622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Feb 11, 2012 · 7 comments
Closed

window.location.hash get or set error -- firefox 9, 10 version #1622

DartBot opened this issue Feb 11, 2012 · 7 comments
Assignees
Labels
closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Feb 11, 2012

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. dart code:
    print(window.location.hash);
    compile to js
  2. get (or set) window.location.hash
  3. firebug console show error: raw.get$dartObjectLocalStorage is not a function

What is the expected output? What do you see instead?
firebug console output hash string

What version of the product are you using? On what operating system?
ubuntu 11.04 amd64, firefox 9 and 10 version

Please provide any additional information below.
used dart linux sdk integration, revision 3934

@anders-sandholm
Copy link
Contributor

Added Area-UI, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Mar 2, 2012

This comment was originally written by [email protected]


similar issue with FF 10.0.2 in OSX Lion

raw.get$dartObjectLocalStorage is not a function

@dgrove
Copy link
Contributor

dgrove commented Mar 2, 2012

Set owner to @rakudrama.

@vsmenon
Copy link
Member

vsmenon commented Apr 13, 2012

Removed Area-UI label.
Added Area-DOM label.

@DartBot
Copy link
Author

DartBot commented Jun 4, 2012

This comment was originally written by [email protected]


Issue #3372 has been merged into this issue.

@rakudrama
Copy link
Member

The FireFox Location object does not derive from JavaScript Object:

window.location.quux
undefined
document.body.quux
undefined
Object.prototype.quux = function(){return 123}
function()
document.body.quux
function()
document.body.quux()
123
window.location.quux
undefined

It is not possible to modify a Location's prototype either:

Object.getPrototypeOf(window.location)['peach'] = function(){return 'fuzz'}
Error: Illegal operation on WrappedNative prototype object
[Break On This Error]

I think we have no choice but to have a wrapper class for Location.

@rakudrama
Copy link
Member

Added Duplicate label.
Marked as being merged into #3152.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

5 participants