зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1733356 - Fix non-unified build errors in netwerk/cookie/ r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D127401
This commit is contained in:
Родитель
c22e2b2df9
Коммит
cb0ac72ed7
|
@ -11,6 +11,7 @@
|
|||
#include "mozilla/ConsoleReportCollector.h"
|
||||
#include "mozilla/ContentBlockingNotifier.h"
|
||||
#include "mozilla/ScopeExit.h"
|
||||
#include "mozilla/StaticPrefs_network.h"
|
||||
#include "mozilla/dom/Document.h"
|
||||
#include "mozilla/dom/nsMixedContentBlocker.h"
|
||||
#include "mozilla/net/CookieJarSettings.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "prtime.h"
|
||||
#include "nsString.h"
|
||||
#include "nsICookie.h"
|
||||
#include "mozilla/net/NeckoChannelParams.h"
|
||||
|
||||
class nsIChannel;
|
||||
class nsIConsoleReportCollector;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "mozilla/AntiTrackingUtils.h"
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/ContentBlockingAllowList.h"
|
||||
#include "mozilla/dom/BrowsingContext.h"
|
||||
|
@ -21,6 +22,7 @@
|
|||
# include "nsIProtocolHandler.h"
|
||||
#endif
|
||||
#include "nsIClassInfoImpl.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsICookieManager.h"
|
||||
#include "nsICookieService.h"
|
||||
#include "nsIObjectInputStream.h"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include "CookieLogging.h"
|
||||
#include "Cookie.h"
|
||||
#include "nsIConsoleReportCollector.h"
|
||||
|
||||
constexpr auto TIME_STRING_LENGTH = 40;
|
||||
|
||||
|
|
|
@ -7,9 +7,11 @@
|
|||
#include "CookieCommons.h"
|
||||
#include "CookieLogging.h"
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/ContentBlockingNotifier.h"
|
||||
#include "mozilla/dom/Document.h"
|
||||
#include "mozilla/dom/nsMixedContentBlocker.h"
|
||||
#include "mozilla/dom/Promise.h"
|
||||
#include "mozilla/net/CookieJarSettings.h"
|
||||
#include "mozilla/net/CookiePersistentStorage.h"
|
||||
#include "mozilla/net/CookiePrivateStorage.h"
|
||||
#include "mozilla/net/CookieService.h"
|
||||
|
@ -20,6 +22,7 @@
|
|||
#include "mozilla/StoragePrincipalHelper.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozIThirdPartyUtil.h"
|
||||
#include "nsICookiePermission.h"
|
||||
#include "nsIConsoleReportCollector.h"
|
||||
#include "nsIEffectiveTLDService.h"
|
||||
#include "nsIIDNService.h"
|
||||
|
|
|
@ -20,16 +20,19 @@
|
|||
#include "mozilla/StoragePrincipalHelper.h"
|
||||
#include "nsNetCID.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsICookieJarSettings.h"
|
||||
#include "nsIChannel.h"
|
||||
#include "nsIClassifiedChannel.h"
|
||||
#include "nsIHttpChannel.h"
|
||||
#include "nsIEffectiveTLDService.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsIPrefBranch.h"
|
||||
#include "nsIWebProgressListener.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "ThirdPartyUtil.h"
|
||||
#include "nsIConsoleReportCollector.h"
|
||||
|
||||
using namespace mozilla::ipc;
|
||||
|
||||
|
@ -329,7 +332,7 @@ CookieServiceChild::Observe(nsISupports* aSubject, const char* aTopic,
|
|||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
CookieServiceChild::GetCookieStringFromDocument(Document* aDocument,
|
||||
CookieServiceChild::GetCookieStringFromDocument(dom::Document* aDocument,
|
||||
nsACString& aCookieString) {
|
||||
NS_ENSURE_ARG(aDocument);
|
||||
|
||||
|
@ -448,7 +451,7 @@ CookieServiceChild::GetCookieStringFromHttp(nsIURI* /*aHostURI*/,
|
|||
|
||||
NS_IMETHODIMP
|
||||
CookieServiceChild::SetCookieStringFromDocument(
|
||||
Document* aDocument, const nsACString& aCookieString) {
|
||||
dom::Document* aDocument, const nsACString& aCookieString) {
|
||||
NS_ENSURE_ARG(aDocument);
|
||||
|
||||
nsCOMPtr<nsIURI> documentURI;
|
||||
|
@ -608,6 +611,7 @@ CookieServiceChild::SetCookieStringFromHttp(nsIURI* aHostURI,
|
|||
if (!CookieCommons::CheckCookiePermission(aChannel, cookieData)) {
|
||||
COOKIE_LOGFAILURE(SET_COOKIE, aHostURI, aCookieString,
|
||||
"cookie rejected by permission manager");
|
||||
constexpr auto CONSOLE_REJECTION_CATEGORY = "cookiesRejection"_ns;
|
||||
CookieLogging::LogMessageToConsole(
|
||||
crc, aHostURI, nsIScriptError::warningFlag,
|
||||
CONSOLE_REJECTION_CATEGORY, "CookieRejectedByPermissionManager"_ns,
|
||||
|
|
|
@ -10,7 +10,11 @@
|
|||
#include "mozilla/dom/nsMixedContentBlocker.h"
|
||||
#include "nsIMutableArray.h"
|
||||
#include "nsTPriorityQueue.h"
|
||||
#include "nsIScriptError.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "nsComponentManagerUtils.h"
|
||||
#include "prprf.h"
|
||||
#include "nsIPrefService.h"
|
||||
|
||||
#undef ADD_TEN_PERCENT
|
||||
#define ADD_TEN_PERCENT(i) static_cast<uint32_t>((i) + (i) / 10)
|
||||
|
@ -402,6 +406,7 @@ void CookieStorage::AddCookie(nsIConsoleReportCollector* aCRC,
|
|||
potentiallyTrustworthy =
|
||||
nsMixedContentBlocker::IsPotentiallyTrustworthyOrigin(aHostURI);
|
||||
}
|
||||
constexpr auto CONSOLE_REJECTION_CATEGORY = "cookiesRejection"_ns;
|
||||
bool oldCookieIsSession = false;
|
||||
// Step1, call FindSecureCookie(). FindSecureCookie() would
|
||||
// find the existing cookie with the security flag and has
|
||||
|
|
|
@ -74,5 +74,3 @@ FINAL_LIBRARY = "xul"
|
|||
|
||||
if CONFIG["CC_TYPE"] in ("clang", "gcc"):
|
||||
CXXFLAGS += ["-Wno-error=shadow"]
|
||||
|
||||
REQUIRES_UNIFIED_BUILD = True
|
||||
|
|
Загрузка…
Ссылка в новой задаче