Closed
Bug 562469
Opened 15 years ago
Closed 15 years ago
e10s HTTP: provide way to know if channel servicing a top-level load
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jduell.mcbugs, Assigned: jduell.mcbugs)
References
Details
Attachments
(1 file)
This should be just a matter of checking (mLoadFlags &nsIChannel::LOAD_DOCUMENT_URI) && (mURI == mDocumentURI) in the child, and passing a flag with the result in AsyncOpen.
Patch coming soon.
| Assignee | ||
Comment 1•15 years ago
|
||
I assume I should put this in nsIHttpChannelInternal. If we need something similar from FTP (it doesn't have an mDocumentURI, so I'm not sure how to dupe the logic), then we might want to have it in some common interface, but presently they don't share one that's a logical place for this.
I also assume it's ok to assign a bool to a PRBool, so long as my XPCOM interface doesn't mention bool. Correct?
Attachment #442349 -
Flags: superreview?(cbiesinger)
Attachment #442349 -
Flags: review?(bzbarsky)
Comment 2•15 years ago
|
||
So from our IRC discussion, it sounded like what you want is "may this trigger a download", and for that, you don't want top-level loads, you want all document loads. I.e., you want only LOAD_DOCUMENT_URI.
At that point however, you don't need a particular attribute, since the load flags are already passed to the parent (right?)
I'm not really sure that I like making HTTP channels know about download manager though...
(for the patch itself: the IDL would need a new IID, and in HttpBaseChannel::GetIsTopLevelLoad you want = instead of ==)
| Assignee | ||
Comment 3•15 years ago
|
||
Comment on attachment 442349 [details] [diff] [review]
Adds isTopLevelLoad attribute to nsIHttpChannelInternal
Canceling review, since it appear we don't need this after all. Simply checking the channel's load flags for LOAD_DOCUMENT_URI will suffice for the Download manager, since it needs to capture not just top-level loads but <iframe>'s.
Attachment #442349 -
Flags: superreview?(cbiesinger)
Attachment #442349 -
Flags: review?(bzbarsky)
| Assignee | ||
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•