Bug 13364 - REGRESSION: frame base URL is incorrect (some pages are not found)
Summary: REGRESSION: frame base URL is incorrect (some pages are not found)
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac (Intel) OS X 10.4
: P1 Normal
Assignee: Nobody
URL: http://www.peaceandlove.nu
Keywords: InRadar, Regression
: 13362 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-16 10:56 PDT by William Björklund
Modified: 2007-07-21 00:13 PDT (History)
1 user (show)

See Also:


Attachments
reduced test case (1.99 KB, application/zip)
2007-04-22 05:53 PDT, Alexey Proskuryakov
no flags Details
Proposed fix - don't overwrite the (base)url if it's non-empty (4.45 KB, patch)
2007-07-20 15:23 PDT, Brady Eidson
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Björklund 2007-04-16 10:56:18 PDT
Some linked pages return "not found" errors, though they are loaded without problem in other browsers. For example, the "English" button in the top right corner returns a 404 in Webkit but not in Firefox. Clicking on "Artister" in the menu and then on any artist name in the left column also returns a 404.
Comment 1 Alexey Proskuryakov 2007-04-16 11:54:38 PDT
URL in TOT WebKit: http://www.peaceandlove.nu/index.php?page=english
Correct URL: http://www.peaceandlove.nu/2007/index.php?page=english

Looks like this is caused by an incorrect calculation of frame base URL: 

<FRAME SRC="2007/index.php" NAME="contents" NORESIZE FRAMEBORDER="no">
Comment 2 Alexey Proskuryakov 2007-04-16 11:57:13 PDT
*** Bug 13362 has been marked as a duplicate of this bug. ***
Comment 3 Brady Eidson 2007-04-16 18:29:34 PDT
Turns out this bug is not related to 13362.  I regressed that bug to between 16068 and 16085.

Turns out this one works fine on 16085 but I can confirm its broken in current ToT.  I'm going to regress this one, and reopen 16085.
Comment 4 Brady Eidson 2007-04-16 19:24:54 PDT
Nevermind, I lied, I got confused with my multiple copies of webkit lying around.  I think the original diagnosis was correct
Comment 5 Brady Eidson 2007-04-16 19:38:24 PDT
I'd wager real money this was caused by http://trac.webkit.org/projects/webkit/changeset/16081
Comment 6 Alexey Proskuryakov 2007-04-22 05:53:36 PDT
Created attachment 14135 [details]
reduced test case
Comment 7 Darin Adler 2007-04-23 08:38:33 PDT
<rdar://problem/5153021>
Comment 8 Brady Eidson 2007-07-20 15:23:53 PDT
Created attachment 15609 [details]
Proposed fix - don't overwrite the (base)url if it's non-empty
Comment 9 Darin Adler 2007-07-20 15:34:49 PDT
Comment on attachment 15609 [details]
Proposed fix - don't overwrite the (base)url if it's non-empty

Nonexistent has an "e" in it, not an "a".

+        (WebCore::Document::open): Only set the url and baseURL in document.open if the are still empty or about:blank

"they are"

r=me
Comment 10 Alexey Proskuryakov 2007-07-21 00:13:41 PDT
Landed by Brady in r24491.