зеркало из https://github.com/mozilla/gecko-dev.git
Backed out 2 changesets (bug 1561079) foe ES lint failure on browser-custom-element.js CLOSED TREE
Backed out changeset 74cd5c0338ee (bug 1561079) Backed out changeset adbc4ea67da9 (bug 1561079)
This commit is contained in:
Родитель
06d6ff95a8
Коммит
c230c12dae
|
@ -4405,6 +4405,11 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI* aURI,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test if the error should be displayed
|
||||||
|
if (!error) {
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
|
|
||||||
if (mLoadURIDelegate) {
|
if (mLoadURIDelegate) {
|
||||||
nsCOMPtr<nsIURI> errorPageURI;
|
nsCOMPtr<nsIURI> errorPageURI;
|
||||||
rv = mLoadURIDelegate->HandleLoadError(aURI, aError,
|
rv = mLoadURIDelegate->HandleLoadError(aURI, aError,
|
||||||
|
@ -4422,11 +4427,6 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI* aURI,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test if the error should be displayed
|
|
||||||
if (!error) {
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!errorDescriptionID) {
|
if (!errorDescriptionID) {
|
||||||
errorDescriptionID = error;
|
errorDescriptionID = error;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,6 @@ interface nsIContentSecurityPolicy;
|
||||||
interface nsIPrincipal;
|
interface nsIPrincipal;
|
||||||
interface nsIURI;
|
interface nsIURI;
|
||||||
interface nsIWebProgress;
|
interface nsIWebProgress;
|
||||||
interface nsIReferrerInfo;
|
|
||||||
|
|
||||||
webidl FrameLoader;
|
webidl FrameLoader;
|
||||||
|
|
||||||
|
@ -82,7 +81,6 @@ interface nsIBrowser : nsISupports
|
||||||
|
|
||||||
readonly attribute nsIPrincipal contentPrincipal;
|
readonly attribute nsIPrincipal contentPrincipal;
|
||||||
readonly attribute nsIContentSecurityPolicy csp;
|
readonly attribute nsIContentSecurityPolicy csp;
|
||||||
readonly attribute nsIReferrerInfo referrerInfo;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not the browser is in the process of an nsIWebNavigation
|
* Whether or not the browser is in the process of an nsIWebNavigation
|
||||||
|
@ -138,7 +136,6 @@ interface nsIBrowser : nsISupports
|
||||||
* @param aContentStoragePrincipal the security principal for the new
|
* @param aContentStoragePrincipal the security principal for the new
|
||||||
* document's storage
|
* document's storage
|
||||||
* @param aCSP the content security policy of the new document
|
* @param aCSP the content security policy of the new document
|
||||||
* @param aReferrerInfo the referrer info of the new document
|
|
||||||
* @param aIsSynthetic whether or not the document is synthetic
|
* @param aIsSynthetic whether or not the document is synthetic
|
||||||
* @param aInnerWindowID the inner window ID of the document
|
* @param aInnerWindowID the inner window ID of the document
|
||||||
* @param aHasRequestContextID whether or not the the request context has a
|
* @param aHasRequestContextID whether or not the the request context has a
|
||||||
|
@ -155,7 +152,6 @@ interface nsIBrowser : nsISupports
|
||||||
in nsIPrincipal aContentPrincipal,
|
in nsIPrincipal aContentPrincipal,
|
||||||
in nsIPrincipal aContentStoragePrincipal,
|
in nsIPrincipal aContentStoragePrincipal,
|
||||||
in nsIContentSecurityPolicy aCSP,
|
in nsIContentSecurityPolicy aCSP,
|
||||||
in nsIReferrerInfo aReferrerInfo,
|
|
||||||
in boolean aIsSynthetic,
|
in boolean aIsSynthetic,
|
||||||
in uint64_t aInnerWindowID,
|
in uint64_t aInnerWindowID,
|
||||||
in boolean aHasRequestContextID,
|
in boolean aHasRequestContextID,
|
||||||
|
|
|
@ -3616,7 +3616,6 @@ NS_IMETHODIMP BrowserChild::OnLocationChange(nsIWebProgress* aWebProgress,
|
||||||
MOZ_TRY(CSPToCSPInfo(csp, &locationChangeData->csp().ref()));
|
MOZ_TRY(CSPToCSPInfo(csp, &locationChangeData->csp().ref()));
|
||||||
}
|
}
|
||||||
|
|
||||||
locationChangeData->referrerInfo() = document->ReferrerInfo();
|
|
||||||
locationChangeData->isSyntheticDocument() = document->IsSyntheticDocument();
|
locationChangeData->isSyntheticDocument() = document->IsSyntheticDocument();
|
||||||
|
|
||||||
if (nsCOMPtr<nsILoadGroup> loadGroup = document->GetDocumentLoadGroup()) {
|
if (nsCOMPtr<nsILoadGroup> loadGroup = document->GetDocumentLoadGroup()) {
|
||||||
|
|
|
@ -2494,8 +2494,6 @@ mozilla::ipc::IPCResult BrowserParent::RecvOnLocationChange(
|
||||||
PrincipalInfoToPrincipal(aLocationChangeData->contentPrincipal());
|
PrincipalInfoToPrincipal(aLocationChangeData->contentPrincipal());
|
||||||
nsCOMPtr<nsIPrincipal> contentStoragePrincipal = PrincipalInfoToPrincipal(
|
nsCOMPtr<nsIPrincipal> contentStoragePrincipal = PrincipalInfoToPrincipal(
|
||||||
aLocationChangeData->contentStoragePrincipal());
|
aLocationChangeData->contentStoragePrincipal());
|
||||||
nsCOMPtr<nsIReferrerInfo> referrerInfo =
|
|
||||||
aLocationChangeData->referrerInfo();
|
|
||||||
|
|
||||||
Unused << browser->SetIsNavigating(aLocationChangeData->isNavigating());
|
Unused << browser->SetIsNavigating(aLocationChangeData->isNavigating());
|
||||||
Unused << browser->UpdateForLocationChange(
|
Unused << browser->UpdateForLocationChange(
|
||||||
|
@ -2503,7 +2501,7 @@ mozilla::ipc::IPCResult BrowserParent::RecvOnLocationChange(
|
||||||
aLocationChangeData->mayEnableCharacterEncodingMenu(),
|
aLocationChangeData->mayEnableCharacterEncodingMenu(),
|
||||||
aLocationChangeData->charsetAutodetected(),
|
aLocationChangeData->charsetAutodetected(),
|
||||||
aLocationChangeData->documentURI(), aLocationChangeData->title(),
|
aLocationChangeData->documentURI(), aLocationChangeData->title(),
|
||||||
contentPrincipal, contentStoragePrincipal, csp, referrerInfo,
|
contentPrincipal, contentStoragePrincipal, csp,
|
||||||
aLocationChangeData->isSyntheticDocument(),
|
aLocationChangeData->isSyntheticDocument(),
|
||||||
aWebProgressData->innerDOMWindowID(),
|
aWebProgressData->innerDOMWindowID(),
|
||||||
aLocationChangeData->requestContextID().isSome(),
|
aLocationChangeData->requestContextID().isSome(),
|
||||||
|
|
|
@ -153,7 +153,6 @@ struct WebProgressLocationChangeData
|
||||||
PrincipalInfo contentPrincipal;
|
PrincipalInfo contentPrincipal;
|
||||||
PrincipalInfo contentStoragePrincipal;
|
PrincipalInfo contentStoragePrincipal;
|
||||||
CSPInfo? csp;
|
CSPInfo? csp;
|
||||||
nsIReferrerInfo referrerInfo;
|
|
||||||
uint64_t? requestContextID;
|
uint64_t? requestContextID;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -306,8 +306,6 @@
|
||||||
|
|
||||||
this._csp = null;
|
this._csp = null;
|
||||||
|
|
||||||
this._referrerInfo = null;
|
|
||||||
|
|
||||||
this._contentRequestContextID = null;
|
this._contentRequestContextID = null;
|
||||||
|
|
||||||
this._fullZoom = 1;
|
this._fullZoom = 1;
|
||||||
|
@ -804,22 +802,6 @@
|
||||||
this.markupDocumentViewer.fullZoom = val;
|
this.markupDocumentViewer.fullZoom = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get referrerInfo() {
|
|
||||||
return this.isRemoteBrowser ? this._referrerInfo : this.contentDocument.referrerInfo;
|
|
||||||
}
|
|
||||||
|
|
||||||
get contentRequestContextID() {
|
|
||||||
if (this.isRemoteBrowser) {
|
|
||||||
return this._contentRequestContextID;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
return this.contentDocument.documentLoadGroup
|
|
||||||
.requestContextID;
|
|
||||||
} catch (e) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get fullZoom() {
|
get fullZoom() {
|
||||||
if (this.isRemoteBrowser) {
|
if (this.isRemoteBrowser) {
|
||||||
|
@ -1578,7 +1560,6 @@
|
||||||
aContentPrincipal,
|
aContentPrincipal,
|
||||||
aContentStoragePrincipal,
|
aContentStoragePrincipal,
|
||||||
aCSP,
|
aCSP,
|
||||||
aReferrerInfo,
|
|
||||||
aIsSynthetic,
|
aIsSynthetic,
|
||||||
aInnerWindowID,
|
aInnerWindowID,
|
||||||
aHaveRequestContextID,
|
aHaveRequestContextID,
|
||||||
|
@ -1603,7 +1584,6 @@
|
||||||
this._contentPrincipal = aContentPrincipal;
|
this._contentPrincipal = aContentPrincipal;
|
||||||
this._contentStoragePrincipal = aContentStoragePrincipal;
|
this._contentStoragePrincipal = aContentStoragePrincipal;
|
||||||
this._csp = aCSP;
|
this._csp = aCSP;
|
||||||
this._referrerInfo = aReferrerInfo;
|
|
||||||
this._isSyntheticDocument = aIsSynthetic;
|
this._isSyntheticDocument = aIsSynthetic;
|
||||||
this._innerWindowID = aInnerWindowID;
|
this._innerWindowID = aInnerWindowID;
|
||||||
this._contentRequestContextID = aHaveRequestContextID
|
this._contentRequestContextID = aHaveRequestContextID
|
||||||
|
|
Загрузка…
Ссылка в новой задаче