[Webkit-unassigned] [Bug 76035] Add state attribute to history's dom interface.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 11 00:33:54 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=76035
Adam Barth <abarth at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #121987|review?, commit-queue? |review-
Flag| |
--- Comment #2 from Adam Barth <abarth at webkit.org> 2012-01-11 00:33:54 PST ---
(From update of attachment 121987)
View in context: https://bugs.webkit.org/attachment.cgi?id=121987&action=review
Thanks for working on this bug. One issue below:
> Source/WebCore/bindings/js/JSHistoryCustom.cpp:170
> + History* history = static_cast<History*>(impl());
> + return history->stateObject()->deserialize(exec, globalObject(), 0);
I think this isn't quite right. Every time we call this getter, we're going to deserialize the state object again. That means
history.state !== history.state
which doesn't seem to match the spec. If that's what other browsers do, then we can change the spec, but it's more likely that we should cache the result of deserializing the SerializedScriptValue and aways return the same value.
Would you be willing to test Firefox and/or IE to see whether they create a new deserialization every time you call the getter?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list