[Webkit-unassigned] [Bug 24175] URL Redirect Loses Fragment

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 24 06:16:07 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=24175

David Kilzer (:ddkilzer) <ddkilzer at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #240405|0                           |1
        is obsolete|                            |

--- Comment #14 from Horky <chenhao at ucweb.com> ---
Created attachment 240405
  --> https://bugs.webkit.org/attachment.cgi?id=240405&action=review
Fixing patch

Unfortunately, this issue is still open but more and more H5 pages expect it has correct behavior. 

For more details, please refer to the discussion on StackOverflow:
http://stackoverflow.com/questions/2286402/url-fragment-and-302-redirects

I summit this patch for review without testing html, I am unfamiliar with Layout Test, anyone could help me to create it?

Below are my testing pages:

<a href="test302Redirect.php#123456">Fragment ID for 3xx redirection</a><br/> <br/>

test302Redirect.php
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
    <?php
        header('Cache-Control:no-cache');
        header('Location:test302Redirect_after.html');
        echo "<h2>";
        print gmdate("Y-m-d\TH:i:s\Z"); 
        echo "</h2>";
    ?>
</body>
</html>

test302Redirect_after.html
<html>
<head>
</head>
<body>
    <p>Welcome here! Please check below url information:</p>
    <p>This page was redirected from test302Redirect.php#123456.</p>
    <strong><div id="url">BLANK</div></strong>
    <script>
        document.getElementById("url").innerHTML=location.href;
    </script>
</body>
</html>

--- Comment #15 from Horky <chenhao at ucweb.com> ---
Created attachment 240409
  --> https://bugs.webkit.org/attachment.cgi?id=240409&action=review
Fixing patch

Corrected coding style.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141024/a0457213/attachment-0002.html>


More information about the webkit-unassigned mailing list