Closed
Bug 39381
Opened 26 years ago
Closed 26 years ago
nested flag_stop notification not being sent
Categories
(Core :: Networking, defect, P3)
Core
Networking
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: jgmyers, Assigned: rpotts)
References
Details
(Keywords: embed, Whiteboard: [nsbeta3+])
There doesn't appear to be any code for sending
nsIWebProgress::flag_net_transferring notifications.
| Assignee | ||
Comment 1•26 years ago
|
||
I've been looking at the nsIWebPRogress interfaces and I'm coming to the
following conclusion:
nsIWebProgress::flag_net_transferring is a state which can be queried on the
nsIWebProgress instance, but the "notification" is really just
OnProgressChange().
It seems wasteful to send out duplicate OnStatusChange(flag_net_transferring)
notifications along with each OnProgressChange(...) notification.
Does this sound reasonable?
| Reporter | ||
Comment 2•26 years ago
|
||
Would the nsIWebProgress listener be guaranteed to get an OnProgressChange()
notification before any data is served?
For bug 31982, I need a notification between the time the security negotiation
phase completes and the time necko serves data. If a connection is reused for
another document, I need the notification before any data are served.
I don't otherwise need progress information. It would make sense for me to
explicitly request flag_net_transferring notifications when I register the
nsIWebProgress listener.
| Assignee | ||
Comment 3•26 years ago
|
||
So, after my last comment, I did a bit more thinking and decided that when a
channel moves into the flag_net_transferring state, it should fire a single
status notification.
So, any channel that transfers data will fire a flag_net_transferring
status or childstatus notification before it fires any OnProgress notifications.
Will this work for you?
The only problem may be that the flag_net_transferring notification is
asyncronous... By this, I mean that by the time you receive the notification,
necko has already started reading data from the server.
Is this sufficient for you? Or do you need a synchronous notification (that you
can perhaps use to cancel the connection) ?
-- rick
| Reporter | ||
Comment 4•26 years ago
|
||
I believe this is exactly what I want.
It is OK for Necko to read data from the server before the flag_net_transferring
notification is sent, but I want to make sure the notification completes before
any of that data are displayed. I'm hoping the "before it fires any OnProgress
notifications" semantic guarantees this.
Sometime we need to figure out how to do the equivalent thing for HTTP POST.
I'd want a flag_net_transferring notification which can cancel the sending of
the POST command.
| Reporter | ||
Comment 5•26 years ago
|
||
I'm now getting flag_transferring notifications to my
nsIWebProgressListener::OnStatusChange() handler.
I'm not getting matched flag_stop notifications, though. Loading
http://www.mozilla.org I'm not getting a flag_stop notification for the banner gif.
I'm also not clear why I'm not getting a 70001 at the start and why I'm getting
a 30004 instead of a 70004. What is flag_is_network supposed to signify?
1024[8063d60]: SecureUI:85a81a0: OnStateChange: 30004 :http://www.mozilla.org/
1024[8063d60]: WARNING: not calling OnDataAvailable, file
nsAsyncStreamListener.cpp, line 404
WARNING: not calling OnDataAvailable, file nsAsyncStreamListener.cpp, line 404
Enabling Quirk StyleSheet
1024[8063d60]: SecureUI:85a81a0: OnStateChange: 10001
:http://www.mozilla.org/images/mozilla-banner.gif
1024[8063d60]: SecureUI:85a81a0: OnStateChange: 10010 :http://www.mozilla.org/
1024[8063d60]: SecureUI:85a81a0: OnStateChange: 10004
:http://www.mozilla.org/images/mozilla-banner.gif
1024[8063d60]: SecureUI:85a81a0: OnStateChange: 70010 :http://www.mozilla.org/
| Reporter | ||
Comment 6•26 years ago
|
||
To get that log, you have to setenv NSPR_LOG_MODULES nsSecureBroswerUI:9
Note that you have to misspell nsSecureBrowserUI as shown above.
| Reporter | ||
Updated•26 years ago
|
Summary: nsIWebProgress::flag_net_transferring not being sent → nested flag_stop notification not being sent
Updated•26 years ago
|
Whiteboard: [nsbeta3+]
Updated•26 years ago
|
Target Milestone: --- → M18
| Assignee | ||
Comment 7•26 years ago
|
||
I've just checked in a fix for this...
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 8•26 years ago
|
||
development issues - closing based on engineers comments
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•