Loading dom/base/nsContentPolicyUtils.h +1 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,7 @@ inline const char* NS_CP_ContentTypeName(nsContentPolicyType contentType) { CASE_RETURN(TYPE_INTERNAL_WORKER_STATIC_MODULE); CASE_RETURN(TYPE_PROXIED_WEBRTC_MEDIA); CASE_RETURN(TYPE_WEB_IDENTITY); CASE_RETURN(TYPE_WEB_TRANSPORT); CASE_RETURN(TYPE_END); case nsIContentPolicy::TYPE_INVALID: break; Loading dom/base/nsIContentPolicy.idl +6 −1 Original line number Diff line number Diff line Loading @@ -438,13 +438,18 @@ interface nsIContentPolicy : nsISupports */ TYPE_INTERNAL_WORKER_STATIC_MODULE = 58, /** * Indicates Webtransport request */ TYPE_WEB_TRANSPORT = 59, /** * Used to indicate the end of this list, not a content policy. If you want * to add a new content policy type, place it before this sentinel value * TYPE_END, have it use TYPE_END's current value, and increment TYPE_END by * one. (TYPE_END should always have the highest numerical value.) */ TYPE_END = 59, TYPE_END = 60, /* When adding new content types, please update Loading dom/cache/DBSchema.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -344,7 +344,8 @@ static_assert( nsIContentPolicy::TYPE_UA_FONT == 55 && nsIContentPolicy::TYPE_WEB_IDENTITY == 57 && nsIContentPolicy::TYPE_INTERNAL_WORKER_STATIC_MODULE == 58 && nsIContentPolicy::TYPE_END == 59, nsIContentPolicy::TYPE_WEB_TRANSPORT == 59 && nsIContentPolicy::TYPE_END == 60, "nsContentPolicyType values are as expected"); namespace { Loading dom/fetch/InternalRequest.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -347,6 +347,8 @@ RequestDestination InternalRequest::MapContentPolicyTypeToRequestDestination( return RequestDestination::_empty; case nsIContentPolicy::TYPE_WEB_IDENTITY: return RequestDestination::_empty; case nsIContentPolicy::TYPE_WEB_TRANSPORT: return RequestDestination::_empty; case nsIContentPolicy::TYPE_INVALID: case nsIContentPolicy::TYPE_END: break; Loading dom/security/SecFetch.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,8 @@ nsCString MapInternalContentPolicyTypeToDest(nsContentPolicyType aType) { return "empty"_ns; case nsIContentPolicy::TYPE_WEB_IDENTITY: return "webidentity"_ns; case nsIContentPolicy::TYPE_WEB_TRANSPORT: return "webtransport"_ns; case nsIContentPolicy::TYPE_END: case nsIContentPolicy::TYPE_INVALID: break; Loading Loading
dom/base/nsContentPolicyUtils.h +1 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,7 @@ inline const char* NS_CP_ContentTypeName(nsContentPolicyType contentType) { CASE_RETURN(TYPE_INTERNAL_WORKER_STATIC_MODULE); CASE_RETURN(TYPE_PROXIED_WEBRTC_MEDIA); CASE_RETURN(TYPE_WEB_IDENTITY); CASE_RETURN(TYPE_WEB_TRANSPORT); CASE_RETURN(TYPE_END); case nsIContentPolicy::TYPE_INVALID: break; Loading
dom/base/nsIContentPolicy.idl +6 −1 Original line number Diff line number Diff line Loading @@ -438,13 +438,18 @@ interface nsIContentPolicy : nsISupports */ TYPE_INTERNAL_WORKER_STATIC_MODULE = 58, /** * Indicates Webtransport request */ TYPE_WEB_TRANSPORT = 59, /** * Used to indicate the end of this list, not a content policy. If you want * to add a new content policy type, place it before this sentinel value * TYPE_END, have it use TYPE_END's current value, and increment TYPE_END by * one. (TYPE_END should always have the highest numerical value.) */ TYPE_END = 59, TYPE_END = 60, /* When adding new content types, please update Loading
dom/cache/DBSchema.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -344,7 +344,8 @@ static_assert( nsIContentPolicy::TYPE_UA_FONT == 55 && nsIContentPolicy::TYPE_WEB_IDENTITY == 57 && nsIContentPolicy::TYPE_INTERNAL_WORKER_STATIC_MODULE == 58 && nsIContentPolicy::TYPE_END == 59, nsIContentPolicy::TYPE_WEB_TRANSPORT == 59 && nsIContentPolicy::TYPE_END == 60, "nsContentPolicyType values are as expected"); namespace { Loading
dom/fetch/InternalRequest.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -347,6 +347,8 @@ RequestDestination InternalRequest::MapContentPolicyTypeToRequestDestination( return RequestDestination::_empty; case nsIContentPolicy::TYPE_WEB_IDENTITY: return RequestDestination::_empty; case nsIContentPolicy::TYPE_WEB_TRANSPORT: return RequestDestination::_empty; case nsIContentPolicy::TYPE_INVALID: case nsIContentPolicy::TYPE_END: break; Loading
dom/security/SecFetch.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -109,6 +109,8 @@ nsCString MapInternalContentPolicyTypeToDest(nsContentPolicyType aType) { return "empty"_ns; case nsIContentPolicy::TYPE_WEB_IDENTITY: return "webidentity"_ns; case nsIContentPolicy::TYPE_WEB_TRANSPORT: return "webtransport"_ns; case nsIContentPolicy::TYPE_END: case nsIContentPolicy::TYPE_INVALID: break; Loading