Closed
Bug 1182066
Opened 10 years ago
Closed 10 years ago
DefaultLoadFlags are not set for the first and some other requests
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla42
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | fixed |
People
(Reporter: dragana, Assigned: dragana)
References
Details
Attachments
(1 file, 1 obsolete file)
|
5.69 KB,
patch
|
dragana
:
review+
|
Details | Diff | Splinter Review |
As described in nsIDocShell:
"
/*
* Default load flags (as defined in nsIRequest) that will be set on all
* requests made by this docShell and propagated to all child docShells and
* to nsILoadGroup::defaultLoadFlags for the docShell's loadGroup.
* Default is no flags. Once set, only future requests initiated by the
* docShell are affected, so in general, these flags should be set before
* the docShell loads any content.
*/
attribute nsLoadFlags defaultLoadFlags;
"
and LoadGroup
"
/**
* The set of load flags that will be added to all new requests added to
* this group. Any existing requests in the load group are not modified,
* so it is expected these flags will be added before requests are added
* to the group - typically via nsIDocShell::defaultLoadFlags on a new
* docShell.
* Note that these flags are *not* added to the default request for the
* load group; it is expected the default request will already have these
* flags (again, courtesy of setting nsIDocShell::defaultLoadFlags before
* the docShell has created the default request.)
*/
attribute nsLoadFlags defaultLoadFlags;
"
It is expected that the first request, that will become the default request, already has this flags -
It is expected but not guaranteed.
The default request is sometime deleted if docLoader is not busy
http://mxr.mozilla.org/mozilla-central/source/uriloader/base/nsDocLoader.cpp#707
and for the next coming request default flags will not be enforced as well.
I am not sure of the design here, adding a patch to enforce defaultLoadFlags for each request
| Assignee | ||
Comment 1•10 years ago
|
||
Reading the description of this parameter, this fix looks logical.
Attachment #8631581 -
Flags: review?(honzab.moz)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dd.mozilla
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
Comment on attachment 8631581 [details] [diff] [review]
defaultLoadFlags_v1.patch
Review of attachment 8631581 [details] [diff] [review]:
-----------------------------------------------------------------
bingo! nicely done.
Attachment #8631581 -
Flags: review?(honzab.moz) → review+
| Assignee | ||
Comment 3•10 years ago
|
||
just fixed some tests.
Attachment #8631581 -
Attachment is obsolete: true
Attachment #8636632 -
Flags: review+
| Assignee | ||
Comment 4•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 6•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•