Yes, that is correct, if you manually reload the page. However, there is no programmatic way to do the same thing.
In Firefox/IE/Opera, window.location.reload() will do it, but Webkit based browsers do a GET instead of a POST. That's a Chrome/Webkit bug - http:// code.google.com/p/chromium/issues/detail?id=6429 has the details. On Sat, Nov 14, 2009 at 5:08 AM, Aaron Boodman <[email protected]> wrote: > I thought that if you reload a page that was requested via POST in > Chrome, you get a confirm dialog. Is that not the case? Or is it just > that you want to avoid the confirm dialog? > > - a > > On Thu, Nov 12, 2009 at 10:15 PM, NickLothian <[email protected]> > wrote: > > Given the lack of response I suspect this isn't possible. I've rasied > > http://code.google.com/p/chromium/issues/detail?id=27591 to request > > some kind of API to do it. > > > > Nick > > > > On Nov 12, 11:15 am, NickLothian <[email protected]> wrote: > >> Hi All, > >> > >> I'm doing a page reload extension, similar to the functionality in > >> Opera. > >> > >> I've got it all working nicely, except for POSTs. > >> > >> In Opera, if you auto-reload a page which was obtained via a POST it > >> will auto-post to the URL periodically. This is the behavior I'd like > >> to emulate. > >> > >> chrome.tabs.update(tab_id, {url: url}); doesn't work (that does a GET, > >> which I guess makes sense as a default) > >> > >> chrome.tabs.executeScript(tab_id, {code: 'window.location.reload()'}); > >> should probably work, buthttp:// > code.google.com/p/chromium/issues/detail?id=6429 > >> means this is actually done as a GET. > >> > >> Are there any good options I've missed? > >> > >> The only thing I can think of is that if the page comes from a POST > >> (how do I detect that anyway?) dynamically create a hidden HTML form > >> via a content script that contains all the postdata (not exactly sure > >> how I'd get that..) and repost it. > > > > -- > > > > You received this message because you are subscribed to the Google Groups > "Chromium-extensions" group. > > To post to this group, send email to > [email protected]. > > To unsubscribe from this group, send email to > [email protected]<chromium-extensions%[email protected]> > . > > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=. > > > > > > > -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=.
