mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 916985 - nsDSURIContentListener::DoContent does not handle CreateContentViewer failures correctly. r=bz
This commit is contained in:
parent
2a2f2cdc3b
commit
f133dd799f
@ -123,12 +123,14 @@ nsDSURIContentListener::DoContent(const char* aContentType,
|
||||
|
||||
if (rv == NS_ERROR_REMOTE_XUL) {
|
||||
request->Cancel(rv);
|
||||
*aAbortProcess = true;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
// it's okay if we don't know how to handle the content
|
||||
return NS_OK;
|
||||
if (NS_FAILED(rv)) {
|
||||
// we don't know how to handle the content
|
||||
*aContentHandler = nullptr;
|
||||
return rv;
|
||||
}
|
||||
|
||||
if (loadFlags & nsIChannel::LOAD_RETARGETED_DOCUMENT_URI) {
|
||||
|
@ -41,9 +41,11 @@ interface nsIURIContentListener : nsISupports
|
||||
* @param aContentHandler nsIStreamListener that will consume the data.
|
||||
* This should be set to <code>nullptr</code> if
|
||||
* this content listener can't handle the content
|
||||
* type.
|
||||
* type; in this case, doContent should also fail
|
||||
* (i.e., return failure nsresult).
|
||||
*
|
||||
* @return <code>true</code> if the consumer wants to
|
||||
* @return <code>true</code> if the load should
|
||||
* be aborted and consumer wants to
|
||||
* handle the load completely by itself. This
|
||||
* causes the URI Loader do nothing else...
|
||||
* <code>false</code> if the URI Loader should
|
||||
|
Loading…
Reference in New Issue
Block a user