You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another question for @smaug---- and @majido. The HTML Standard hints at some point that history session entries store whether the URL was retrieved using GET or POST.
This information is also used when a document is reloaded (a prompt shows up to ask the user if they're sure they want to submit the data again). Would we then get it from the session history's current entry or is it also stored elsewhere?
I was just curious if I missed something. I suspect this can probably all live on the session history entry as "form data" (as it's called now). That's probably good enough although maybe not as there's also the correct Content-Type header to set, Referer might have to be reused, etc.
Activity
smaug---- commentedon Jul 8, 2016
"also stored"? Is there a thing stored elsewhere?
Anyhow, Gecko stores the post data in session history entry
http://searchfox.org/mozilla-central/rev/f43c9e0ffa92e72dbdbcbf57eecf04a43d46da63/docshell/shistory/nsSHEntry.h#56
and that is used when reloading
http://searchfox.org/mozilla-central/rev/f43c9e0ffa92e72dbdbcbf57eecf04a43d46da63/docshell/base/nsDocShell.cpp#12361
Necko then uses "POST" method if such post data is used.
annevk commentedon Jul 8, 2016
I was just curious if I missed something. I suspect this can probably all live on the session history entry as "form data" (as it's called now). That's probably good enough although maybe not as there's also the correct
Content-Typeheader to set,Referermight have to be reused, etc.