Skip to content
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

frog fails on local storage demo #822

Closed
dgrove opened this issue Dec 12, 2011 · 10 comments
Closed

frog fails on local storage demo #822

dgrove opened this issue Dec 12, 2011 · 10 comments
Assignees
Milestone

Comments

@dgrove
Copy link
Contributor

dgrove commented Dec 12, 2011

Revision: r2354

This application runs fine on dartc, but fails on frog.

I've attached the failing code when compiled by frog.

After discussion with sra@, I am betting this is a problem with DOM libs rather than an issue with frog itself


Attachments:
LocalStorage.html (209 Bytes)
LocalStorage.dart (1.02 KB)
LocalStorage.dart.app.js (137.83 KB)

@vsmenon
Copy link
Member

vsmenon commented Dec 12, 2011

Can you add some info on where this is failing? Do you see any errors on the JS console?

@dgrove
Copy link
Contributor Author

dgrove commented Dec 12, 2011

There are exceptions in the JS console. I don't have them handy now, but
they should reproduce trivially with the attachments.

@vsmenon
Copy link
Member

vsmenon commented Dec 15, 2011

Hmm, the problem is that the Storage.dartObjectLocalStorage "field" is broken for this type. On every other DOM type, we create an expando. Here, we actually define something in LocalStorage with "dartObjectLocalStorage" as a key.

The dart:html layer relies on this field working correctly. Still investigating how to workaround this.

@vsmenon
Copy link
Member

vsmenon commented Dec 15, 2011

Issue #842 has been merged into this issue.

@vsmenon
Copy link
Member

vsmenon commented Dec 15, 2011

Issue #828 has been merged into this issue.

@vsmenon
Copy link
Member

vsmenon commented Dec 15, 2011

Note, the same bug occurs with sessionStorage (bug 828, merged in).

@vsmenon
Copy link
Member

vsmenon commented Dec 15, 2011

Note, we can workaround this quickly in dart:html by avoiding the Storage.dartObjectLocalStorage "field". But, I'd prefer to make this field work properly. Running into some frog issues there.

@dgrove
Copy link
Contributor Author

dgrove commented Jan 6, 2012

Vijay, can we get an update on this?

@vsmenon
Copy link
Member

vsmenon commented Jan 9, 2012

Getting back to this now.


Added Accepted label.

@vsmenon
Copy link
Member

vsmenon commented Jan 12, 2012

Fixed in 3204.


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants