Closed
Bug 305959
Opened 20 years ago
Closed 20 years ago
View Source Displays a Cached Page After Post Submit Instead of New Page
Categories
(Toolkit :: View Source, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8final
People
(Reporter: kintner, Assigned: mrbkap)
References
()
Details
(Keywords: fixed1.8, regression)
Attachments
(1 file)
|
1.46 KB,
patch
|
brendan
:
review+
brendan
:
approval1.8b4+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050821 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050821 Firefox/1.0+
When submiting a form using post, the view source page displays a cached version
of the page instead of the new version. This doesn't not happen when submiting a
form using get. Firefox 1.06 does not suffer from this problem but DPA2 does
Reproducible: Always
Steps to Reproduce:
1. Go to http://hwwenterprises.com/firefoxbug/
2. Fill in the textbox in the post section
3. Submit the form
4. Open View Source
5. Notice that the source does not reflect the new page
Actual Results:
The source that was shown was a cached version of the page
Expected Results:
The source should display the correct version of the page
Comment 1•20 years ago
|
||
Confirming on branch and trunk:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050827
Firefox/1.0+ ID:2005082707
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050827
Firefox/1.6a1 ID:2005082706
This is pretty nasty and should be fixed for 1.5.
Severity: normal → critical
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.8b4?
Keywords: regression
Target Milestone: --- → Firefox1.5
Comment 2•20 years ago
|
||
can any of you help us with a regression window on this?
I know we've had problems with this in the past and we want to make sure that we
don't submit the form a second time but we do need the current content. Who can
look into this?
Severity: critical → major
Flags: blocking1.8b4? → blocking1.8b4+
Comment 3•20 years ago
|
||
I'll go through some nightlies and try to narrow it down to a day this evening.
Comment 4•20 years ago
|
||
Confirming here on the mac. OS X 10.4.2 Branch Mozilla/5.0 (Macintosh; U; PPC
Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050829 Firefox/1.0+
Comment 5•20 years ago
|
||
Narrowed this down to between 2005081607 and 2005081713 on trunk and 2008081613
and 2005081703 on branch. This latter suggests the checkins:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=AviarySuiteBranchTinderbox&branch=MOZILLA_1_8_BRANCH&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2005-08-16+13%3A30&maxdate=2005-08-17+03%3A30&cvsroot=%2Fcvsroot
Though I can't spot anything that I might expect to cause this.
Comment 6•20 years ago
|
||
I can confirm the regression window is indeed between 08/16 and 08/17 on the
branch by comparing the two nightly builds. Although none of the changes in
that window look at all suspicious.
Comment 7•20 years ago
|
||
*grumble grumble* I've backed out all of the supicious changes on the trunk
between the 16th and the 17th that also made their way onto the branch but still
see the problem. Weird.
Comment 8•20 years ago
|
||
I wouldn't have guessed it, but it looks like Bug 289933 caused this regression.
Backing that change out makes view source work correctly for this test case.
Assignee: nobody → mrbkap
Blocks: 289933
| Assignee | ||
Comment 9•20 years ago
|
||
Brendan, unless you have a better idea of how to fix this, I think we should
just limit typeof obj = function for functions, regexps, and scripts (in the
new Script() sense) for total compat with Firefox 1.0. I suspect that some code
somewhere is testing for |typeof obj == "object"| (probably as opposed to
getting "undefined") or so.
Attachment #194401 -
Flags: review?(brendan)
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment 10•20 years ago
|
||
Comment on attachment 194401 [details] [diff] [review]
safe, suboptimal fix
Argh. We can't change much here, can we?
> if ((ops == &js_ObjectOps)
>- ? clasp == &js_FunctionClass || clasp->call
>+ ? (clasp->call
>+ ? (clasp == &js_RegExpClass || clasp == &js_ScriptClass)
>+ : clasp == &js_FunctionClass)
Indentation is all wacky here. Fix that so extra lines underhang the
condition, same way the the outer ?: does, and r=me.
For the trunk, we should add JSCLASS_TYPE_IS_FUNCTION or some such.
> : ops->call != NULL) {
While you are here, the != NULL is contrary to surrounding and prevailing
style.
/be
Attachment #194401 -
Flags: review?(brendan)
Attachment #194401 -
Flags: review+
Attachment #194401 -
Flags: approval1.8b4+
Comment 11•20 years ago
|
||
thanks for the quick turn around on the fix guys.
Comment 12•20 years ago
|
||
(In reply to comment #10)
> While you are here, the != NULL is contrary to surrounding and prevailing
> style.
Blake reminded me why I (!) wrote that that way (C ain't JS).
/be
| Assignee | ||
Comment 13•20 years ago
|
||
Fix checked in by bz on MOZILLA_1_8_BRANCH and trunk, without tabs, but I didn't
remove the != NULL since it was quieting a compiler warning.
| Reporter | ||
Comment 14•20 years ago
|
||
The testcase now works correctly in the latest hourly builds on the branch.
Thanks for the quick response.
~Chris
Comment 15•20 years ago
|
||
FYI, this patch introduced a crash when refreshing view source. see Bug 306580
for details. Maybe this change would have benefited from some baking time on the
trunk for a few days.
Comment 16•20 years ago
|
||
*** Bug 305966 has been marked as a duplicate of this bug. ***
Updated•17 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•