-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart2js produces code for window.location.hash that doesn't work in recent Firefox #3152
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
Comments
Added Area-Dart2JS, Triaged labels. |
This comment was originally written by [email protected] Thanks Akrennmair for the bug report! @stephen: I have investigated a bit, and it looks like the Location object in firefox does not get the properties patched on Object. Other objects like window do. cc @rakudrama. |
Set owner to [email protected]. |
Removed Area-DOM label. |
This comment was originally written by [email protected] Assigning to Stephen, because the generator for the dom/html libraries must be updated. Set owner to @rakudrama. |
The Dromaeo benchmarks in samples/third_party/dromaeo also don't run because of this dart2js bug. Hope we can fix this soon. |
Issue #1622 has been merged into this issue. |
The FireFox Location object does not derive from JavaScript Object:
It is not possible to modify a Location's prototype either:
I think we have no choice but to have a wrapper class for Location. |
This comment was originally written by [email protected] Issue #3443 has been merged into this issue. |
Added this to the M1 milestone. |
Fixed r8635 Added Fixed label. |
This issue was originally filed by [email protected]
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Recent Chrome (19.0.1084.46 on OSX here) produces the correct output:
"hash = #foo"
"hash = #bar"
What version of the product are you using? On what operating system?
Firefox 12.0 (doesn't work), Chrome 19.0.1084.46 (works). Compiler is dart2js from latest unstable dart-macos.zip, downloaded May 18 14:43 MD5 sum db6e69f26ea92e9be5b709161f1b5556.
I attached both the dart source code and the compiled .dart.js file.
Attachments:
locationhash.html (231 Bytes)
locationhash.dart (142 Bytes)
locationhash.dart.js (104.62 KB)
The text was updated successfully, but these errors were encountered: