RESOLVED DUPLICATE of bug 13400 14147
REGRESSION: No history item created when viewing "All Sizes" on Flickr
https://bugs.webkit.org/show_bug.cgi?id=14147
Summary REGRESSION: No history item created when viewing "All Sizes" on Flickr
Matt Lilek
Reported 2007-06-14 13:52:29 PDT
Going back from the 'All Sizes' page of a photo on Flickr no longer works. 1. In Safari, open a new tab and load http://www.flickr.com/photos/n1c0star/538230787/ 2. Click the "All Sizes" button above the photo. 3. The back button is disabled and no history item created. Bug is present in Safari 3 Beta and r23521. Note that this is not an issue with Safari.app as Safari.app v2.0.4 with current ToT displays this bug.
Attachments
proposed patch (1.28 KB, patch)
2007-06-20 05:17 PDT, Maxime BRITTO
no flags
patch with layout test (5.94 KB, patch)
2007-06-21 05:17 PDT, Maxime BRITTO
andrew: review-
patch with correct layout test (6.02 KB, patch)
2007-06-22 07:00 PDT, Maxime BRITTO
mrowe: review-
proposed patch (5.26 KB, patch)
2007-06-26 03:05 PDT, Maxime BRITTO
ggaren: review-
proposed patch (5.12 KB, patch)
2007-06-27 08:06 PDT, Maxime BRITTO
mrowe: review-
Mark Rowe (bdash)
Comment 1 2007-06-14 14:09:54 PDT
Maxime BRITTO
Comment 2 2007-06-20 05:17:29 PDT
Created attachment 15137 [details] proposed patch The call for scheduleLocationChange() in JSHTMLDocument::setLocation() (JSHTMLDocumentCustom.cpp) was missing an argument (userGesture) and the default behavior in scheduleLocationChange() was to consider it false. As this JS event was not considered as userGesture initiated, his load type was internal and it wasn't added to the history. With this modification I can no longer reproduce the bug
Maxime BRITTO
Comment 3 2007-06-20 07:44:12 PDT
Layout test is on his way. I'll send it within the next hours.
Maxime BRITTO
Comment 4 2007-06-21 05:17:18 PDT
Created attachment 15159 [details] patch with layout test Here is the patch with the layout test included. I noticed that this patch is also fixing the Bug 13849.
Geoffrey Garen
Comment 5 2007-06-21 16:13:14 PDT
Comment on attachment 15159 [details] patch with layout test r=me
Andrew Wellington
Comment 6 2007-06-22 05:21:21 PDT
*** Bug 13849 has been marked as a duplicate of this bug. ***
Maxime BRITTO
Comment 7 2007-06-22 07:00:34 PDT
Created attachment 15184 [details] patch with correct layout test The layout test wasn't correctly working due to a race condition. Now it's works as it should.
Andrew Wellington
Comment 8 2007-06-22 07:11:01 PDT
Comment on attachment 15159 [details] patch with layout test Setting r- so it doesn't show up in commit queue.
Mark Rowe (bdash)
Comment 9 2007-06-25 06:30:23 PDT
Comment on attachment 15184 [details] patch with correct layout test I went to land this patch but noticed that the test case it adds causes an assertion failure to be hit. $ run-webkit-tests LayoutTests/http/tests/navigation/javascript-document-location-changed.html LayoutTests/http/tests/navigation/javascript-document-location-changed.html [...] http/tests/navigation ..Assertion failed: ([bfList currentItem] != prevTestBFItem), function dumpBackForwardListForWebView, file /Volumes/Data/Home/Documents/Work/OpenSource/WebKitTools/DumpRenderTree/DumpRenderTree.m, line 768. I hit this while regenerating the test results after removing the tab characters, fixing spelling, and changing the test to dump as text.
Maxime BRITTO
Comment 10 2007-06-26 03:05:09 PDT
Created attachment 15243 [details] proposed patch I can't reproduce the assertion failure you hitted, so I made some changes without being able to test the final result. I hope this will be good. And I'm sorry for the bad spelling : I'm french and I'm trying very hard to create correct sentences, I hope I will improve my writing within the next 4 months.
Matt Lilek
Comment 11 2007-06-26 11:49:04 PDT
(In reply to comment #10) > Created an attachment (id=15243) [edit] > proposed patch > > I can't reproduce the assertion failure you hitted, so I made some changes > without being able to test the final result. > I hope this will be good. > And I'm sorry for the bad spelling : I'm french and I'm trying very hard to > create correct sentences, I hope I will improve my writing within the next 4 > months. > I'm hitting the same assertion failure in your latest patch. Are you sure you're using a debug build?
Geoffrey Garen
Comment 12 2007-06-26 14:02:09 PDT
Comment on attachment 15243 [details] proposed patch r- due to assertion failures.
Maxime BRITTO
Comment 13 2007-06-27 08:06:13 PDT
Created attachment 15271 [details] proposed patch I changed the whole test to be sure to avoid the assertion failure. I think it's for the best because the test is now faster and more simple.
Mark Rowe (bdash)
Comment 14 2007-06-28 07:16:52 PDT
I no longer see the assertion failure. The question I have is why was the assertion failing, and why does it not fail with your new test?
Maxime BRITTO
Comment 15 2007-06-28 07:46:45 PDT
(In reply to comment #14) > I no longer see the assertion failure. The question I have is why was the > assertion failing, and why does it not fail with your new test? > I think it's because the test was based on a simulated clic to go to the next page instead of LayoutTestController.queueLoad(). So when I came back to the first page, the LayoutTestController.dumpBackForwardList() was called again. In the new test I clear the backForwardList on the first page and, when I'm on the second page, instead of going back to the first page, I'm analysing the history to see if it's there.
Maciej Stachowiak
Comment 16 2007-07-04 03:35:00 PDT
Comment on attachment 15271 [details] proposed patch r=me
Mark Rowe (bdash)
Comment 17 2007-07-06 03:27:06 PDT
Comment on attachment 15271 [details] proposed patch It seems that JSHTMLDocument::setLocation has been changed since you created the patch, so the patch no longer applies cleanly. It's not obvious to me how to reconcile the changes so it would be great if you could do so and submit an updated patch.
Maxime BRITTO
Comment 18 2007-07-06 04:49:05 PDT
This bug is now fixed by the patch of Bug 13400 which is a duplicate of this one
Maxime BRITTO
Comment 19 2007-07-06 04:56:55 PDT
*** This bug has been marked as a duplicate of 13400 ***
Note You need to log in before you can comment on or make changes to this bug.