Finding a workaround for the double load problem.

158 views
Skip to first unread message

John J Barton

unread,
Aug 11, 2008, 7:25:21 PM8/11/08
to Firebug
Numerous users here and on the issues list have reported Firebug
causes double POST or GET calls in some cases. See for example:
http://code.google.com/p/fbug/issues/list?can=2&q=label%3AdoubleLoad

I would like to create a possible workaround until Firefox helps us
fix this correctly. However I can't find an example test case that I
understand. The various bug reports all seem to have different things
going on and often say "its fixed" depending on the version of
Firebug. Can anyone help with a simple, clear test case ?

John

Pong

unread,
Aug 25, 2008, 7:33:12 AM8/25/08
to Firebug
a simple example already here, pls check firebug [HTML]-->[Net] a
double request upload.php when you usijng this scripts to upload a
file
http://www.openjs.com/articles/ajax/ajax_file_upload/

On 8月12日, 上午7時25分, John J Barton <johnjbar...@johnjbarton.com> wrote:
> Numerous users here and on the issues list have reported Firebug
> causesdoublePOSTor GET calls in some cases. See for example:http://code.google.com/p/fbug/issues/list?can=2&q=label%3AdoubleLoad

Pong

unread,
Aug 25, 2008, 7:01:30 AM8/25/08
to Firebug
I have a case seems like the problem you mention

my case is like this.
I submit a file to a hidden iframe. And it works, the file was
uploaded.

But in the firebug-->[Net], there are a post request without any post
data was submit again after my file uploaded.

is it a double post case? if yes, I can provide sample to you

On 8月12日, 上午7時25分, John J Barton <johnjbar...@johnjbarton.com> wrote:
> Numerous users here and on the issues list have reported Firebug
> causesdoublePOSTor GET calls in some cases. See for example:http://code.google.com/p/fbug/issues/list?can=2&q=label%3AdoubleLoad

John J Barton

unread,
Aug 25, 2008, 11:51:13 AM8/25/08
to Firebug
I think we will get a fix from Firefox soon. We decided to wait for
that. John.

chrissavery

unread,
Aug 26, 2008, 6:37:00 AM8/26/08
to Firebug
AFAIK this problem is directly connected with Firebug not being able
to show data without requesting it again. Hence, the double load. A
correct solution then should be that Firebug gets access to the
original data so that a second request is not ever needed. I'm not
familiar with Firefox internals so I don't know what the underlying
issue is but fiddling around with extra loads seems to be not the way
to fix it. A double GET request isn't really a problem requiring user
confirmation (unless the application is poorly designed and GETs are
having side effects), but a POST request should always have user
confirmation. Once the Firebug code can get the original data then
there is no need to resubmit in order to show the user the request
data. I await for the solution you mention from Firefox so that this
will work properly.

At least, this is my understanding of the issue and how it affects me.
I don't know what other issues people are having but I know this is
the one that causes me grief as it makes it very hard to debug POST
requests. The way I do that now is to have extra console.log calls
made in the response so that I can see the data returned without
clicking on the Firebug net tab to see the response data.

And in thanks to the Firebug team - I can only say that it makes one
realize that debugging modern ajax code without Firebug would be a
real hassle.

Chris :)

On Aug 25, 10:51 pm, John J Barton <johnjbar...@johnjbarton.com>

Rion

unread,
Aug 27, 2008, 12:52:59 AM8/27/08
to Firebug
seems bug, which blocked this issue already fixed in firefox trunk

John J Barton

unread,
Aug 27, 2008, 1:16:54 AM8/27/08
to Firebug
Yes, but it only counts when users can install the upgraded version...

chrissavery

unread,
Aug 27, 2008, 11:36:40 AM8/27/08
to Firebug
Any info on which version of Firefox we need to see this fixed?

On Aug 27, 12:16 pm, John J Barton <johnjbar...@johnjbarton.com>
wrote:

Mike

unread,
Oct 6, 2008, 11:56:14 AM10/6/08
to Firebug

Hello all. I just tested this out on 3.0.4pre and it works properly
now.

I got my version from
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2008-10-06-04-mozilla1.9.0/
(which is a GNU/Linux version, though
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2008-10-06-05-mozilla1.9.0/
looks like the windows version.)

Mike
Reply all
Reply to author
Forward
0 new messages