RESOLVED FIXED 58072
URLs accessed as a result of pushState/replaceState should count as "visited" and be in the global history
https://bugs.webkit.org/show_bug.cgi?id=58072
Summary URLs accessed as a result of pushState/replaceState should count as "visited"...
Brady Eidson
Reported 2011-04-07 13:16:13 PDT
URLs accessed as a result of pushState/replaceState should count as "visited" and be in the global history See attached example, which works fine in Firefox 4 and Chrome. Chrome is likely managing it themselves, but this should be something WebKit handles internally.
Attachments
Example showing bug (links should get visited, and should show up in Safari's history menu) (1.11 KB, text/html)
2011-04-07 13:16 PDT, Brady Eidson
no flags
Patch v1 (5.20 KB, patch)
2011-04-11 17:29 PDT, Brady Eidson
mjs: review+
beidson: commit-queue-
Brady Eidson
Comment 1 2011-04-07 13:16:50 PDT
Created attachment 88678 [details] Example showing bug (links should get visited, and should show up in Safari's history menu)
Brady Eidson
Comment 2 2011-04-07 13:19:00 PDT
Brady Eidson
Comment 3 2011-04-11 17:29:05 PDT
Created attachment 89131 [details] Patch v1
Maciej Stachowiak
Comment 4 2011-04-11 18:11:54 PDT
Comment on attachment 89131 [details] Patch v1 r=me
Brady Eidson
Comment 5 2011-04-11 18:28:24 PDT
Csaba Osztrogonác
Comment 6 2011-04-12 01:17:16 PDT
Brady Eidson
Comment 7 2011-04-12 08:39:43 PDT
(In reply to comment #6) > The new fast/loader/stateobjects/state-url-sets-links-visited.html fails on WK2 bot: > http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20%28WebKit2%20Tests%29/r83558%20%2810595%29/fast/loader/stateobjects/state-url-sets-links-visited-pretty-diff.html Interesting. Seems possible/likely that WK2 DRT doesn't do history tracking properly yet.
Brady Eidson
Comment 8 2011-04-12 09:02:58 PDT
(In reply to comment #7) > (In reply to comment #6) > > The new fast/loader/stateobjects/state-url-sets-links-visited.html fails on WK2 bot: > > http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20%28WebKit2%20Tests%29/r83558%20%2810595%29/fast/loader/stateobjects/state-url-sets-links-visited-pretty-diff.html > > Interesting. Seems possible/likely that WK2 DRT doesn't do history tracking properly yet. WKTR does implement all of the related APIs, but it's returning the green unvisited link style, if I throw some alerts in. I tested the patch and test manually in WK2, so I know there's nothing fundamentally wrong here. I wonder if visited links round trip through the UI process and therefore we're getting hurt by IPC? I don't know yet, still exploring.
Brady Eidson
Comment 9 2011-04-12 09:23:33 PDT
(In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #6) > > > The new fast/loader/stateobjects/state-url-sets-links-visited.html fails on WK2 bot: > > > http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20%28WebKit2%20Tests%29/r83558%20%2810595%29/fast/loader/stateobjects/state-url-sets-links-visited-pretty-diff.html > > > > Interesting. Seems possible/likely that WK2 DRT doesn't do history tracking properly yet. > > WKTR does implement all of the related APIs, but it's returning the green unvisited link style, if I throw some alerts in. > > I tested the patch and test manually in WK2, so I know there's nothing fundamentally wrong here. I wonder if visited links round trip through the UI process and therefore we're getting hurt by IPC? I don't know yet, still exploring. Found 3 other tests that rely on the same layout test controller APIs that were already skipped. FIled https://bugs.webkit.org/show_bug.cgi?id=58334 and added this test to the skipped list.
Note You need to log in before you can comment on or make changes to this bug.