WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
91594
Form state restore: Classify form control sates by owners in internal and serialized representations
https://bugs.webkit.org/show_bug.cgi?id=91594
Summary
Form state restore: Classify form control sates by owners in internal and ser...
Kent Tamura
Reported
2012-07-18 00:16:52 PDT
Form state restore: Classify form control sates by owners in internal and serialized representations
Attachments
Patch
(23.40 KB, patch)
2012-07-18 00:39 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from gce-cr-linux-05
(316.85 KB, application/zip)
2012-07-18 01:14 PDT
,
WebKit Review Bot
no flags
Details
Patch 2
(27.20 KB, patch)
2012-07-18 01:57 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2012-07-18 00:39:25 PDT
Created
attachment 152954
[details]
Patch
WebKit Review Bot
Comment 2
2012-07-18 01:14:20 PDT
Comment on
attachment 152954
[details]
Patch
Attachment 152954
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/13282421
New failing tests: fast/forms/state-restore-skip-stateless.html fast/forms/state-restore-per-form.html
WebKit Review Bot
Comment 3
2012-07-18 01:14:23 PDT
Created
attachment 152958
[details]
Archive of layout-test-results from gce-cr-linux-05 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-05 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Kent Tamura
Comment 4
2012-07-18 01:32:20 PDT
(In reply to
comment #2
)
> New failing tests: > fast/forms/state-restore-skip-stateless.html > fast/forms/state-restore-per-form.html
Ah, the order of states depends on the iteration order of HashMap. We can't assume it's stable. I'll update the tests.
Kent Tamura
Comment 5
2012-07-18 01:57:53 PDT
Created
attachment 152963
[details]
Patch 2 Remove stateVector dump
Hajime Morrita
Comment 6
2012-07-18 19:07:44 PDT
Comment on
attachment 152963
[details]
Patch 2 View in context:
https://bugs.webkit.org/attachment.cgi?id=152963&action=review
Another possible approach might be to define a per-key values class and use Set instead if Map. The advantage of that serialization is more self-contained. This is just idea though.
> Source/WebCore/html/FormController.cpp:225 > + stateVector.append(String::number(m_controlStateCount));
We can just count this here instead of maintaining m_controlStateCount. It's just another loop after all...
Kent Tamura
Comment 7
2012-07-18 19:13:29 PDT
Comment on
attachment 152963
[details]
Patch 2 View in context:
https://bugs.webkit.org/attachment.cgi?id=152963&action=review
Thanks!
>> Source/WebCore/html/FormController.cpp:225 >> + stateVector.append(String::number(m_controlStateCount)); > > We can just count this here instead of maintaining m_controlStateCount. > It's just another loop after all...
Yes, we can. I had that idea and the m_controlStateCount idea, and applied m_controlStateCount because of simplicity.
WebKit Review Bot
Comment 8
2012-07-18 19:49:04 PDT
Comment on
attachment 152963
[details]
Patch 2 Clearing flags on attachment: 152963 Committed
r123066
: <
http://trac.webkit.org/changeset/123066
>
WebKit Review Bot
Comment 9
2012-07-18 19:49:09 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug