Bug 79492 - [test case] document.location.reload() does not repost
Summary: [test case] document.location.reload() does not repost
Status: CONFIRMED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml ecma (show other bugs)
Version: 4.5.4
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-12 14:39 UTC by George Norton
Modified: 2012-12-14 15:37 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Norton 2004-04-12 14:39:11 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Mandrake RPMs
Compiler:          GCC 3.3.2 
OS:          Linux

Using the document.location.reload(); javascript method does not have the same effect as pressing the reload button on the browser, calling it doesn't repost any form data but pressing reload prompts the user to repost.

Mozilla does prompt the user to repost upon calling document.location.reload();

-George
Comment 1 J Appel 2006-09-11 23:43:24 UTC
is this still valid for kde 3.5.4?
Comment 2 illogic-al 2007-01-06 15:13:41 UTC
Could you provide a testcase with the reload button a js function in question. This would make it much easier for us to see if this bug is still valid.
Comment 3 Martin Fitzpatrick 2007-01-06 18:51:02 UTC
A testcase HTML file would be:

<html>
<body>
<form method="post" action="">
<input value="test">
<input type="button" onClick="document.location.reload();" value="R2">
<input type="submit">
</form>
</body>
</html>

Once loaded press submit to get to a page considered to be the result of submitted content. Then hit "Refresh" button on the toolbar - Konqueror pops up a warning dialog about re-submitting content.  Press R2 however and the page will refresh without asking.  Hope that helps.
Comment 4 Martin Fitzpatrick 2007-01-06 18:53:07 UTC
NB: Confirms this behaviour on Kubuntu 6.10 / KDE 3.5.5.
Comment 5 Martin Fitzpatrick 2007-01-06 19:15:26 UTC
Online test case at http://www.mutube.com/x/kde/kde79492.php
Comment 6 Jonathan Marten 2008-07-28 08:42:17 UTC
Confirmed with both KDE 3.5.9 and current trunk.

There doesn't have to be a form involved - even the simple test case of

<HTML>
<BODY>
<A HREF="javascript:window.location.reload(true)">Reload this page</A>
</BODY>
</HTML>

doesn't reload the page from the web server when the link is clicked, the "Stop" button just flashes on and off briefly.  Firefox and IE unconditionally reload the page from the web server when the link is clicked.
Comment 7 David Heijkamp 2011-01-01 19:41:17 UTC
Using Konqueror 4.5.4 / Qt 4.7.1 / Fedora 14 you still don't get prompted for reposting submitted data when using the javascript method. (Tested with the online example.) This is the case with both KHTML and Webkit.
Comment 8 Samuel Brack 2011-01-08 16:48:33 UTC
Updating version due to comment 7 to version 4.5.4.
Comment 9 Raúl 2012-12-14 15:37:50 UTC
Also confirmed on Konqueror 4.8.4 and KHTML