mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1174982 - Add the new nsContentPolicyType values to the DBSchema.cpp static_assert; r=bkelly
Added a comment to nsIContentPolicyBase.idl since even I forgot to do this.
This commit is contained in:
parent
c4478c4756
commit
d9c3cc1f26
@ -259,8 +259,9 @@ interface nsIContentPolicyBase : nsISupports
|
||||
|
||||
/* When adding new content types, please update nsContentBlocker,
|
||||
* NS_CP_ContentTypeName, nsCSPContext, all nsIContentPolicy
|
||||
* implementations, and other things that are not listed here that are
|
||||
* related to nsIContentPolicy. */
|
||||
* implementations, the static_assert in dom/cache/DBSchema.cpp,
|
||||
* and other things that are not listed here that are related to
|
||||
* nsIContentPolicy. */
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
13
dom/cache/DBSchema.cpp
vendored
13
dom/cache/DBSchema.cpp
vendored
@ -128,7 +128,18 @@ static_assert(nsIContentPolicy::TYPE_INVALID == 0 &&
|
||||
nsIContentPolicy::TYPE_XSLT == 18 &&
|
||||
nsIContentPolicy::TYPE_BEACON == 19 &&
|
||||
nsIContentPolicy::TYPE_FETCH == 20 &&
|
||||
nsIContentPolicy::TYPE_IMAGESET == 21,
|
||||
nsIContentPolicy::TYPE_IMAGESET == 21 &&
|
||||
nsIContentPolicy::TYPE_WEB_MANIFEST == 22 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_SCRIPT == 23 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_WORKER == 24 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_SHARED_WORKER == 25 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_EMBED == 26 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_OBJECT == 27 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_FRAME == 28 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_IFRAME == 29 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_AUDIO == 30 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_VIDEO == 31 &&
|
||||
nsIContentPolicy::TYPE_INTERNAL_TRACK == 32,
|
||||
"nsContentPolicytType values are as expected");
|
||||
|
||||
namespace {
|
||||
|
Loading…
Reference in New Issue
Block a user