fix ContentSecurityPolicyParser target (#1773)

This commit is contained in:
pdknsk 2018-08-30 10:03:07 +02:00 committed by Oliver Chang
parent bfacf7c665
commit 68966db40a
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff --git a/dom/security/nsCSPContext.cpp b/dom/security/nsCSPContext.cpp
--- a/dom/security/nsCSPContext.cpp
+++ b/dom/security/nsCSPContext.cpp
@@ -756,6 +756,7 @@ nsCSPContext::logToConsole(const char* a
uint32_t aColumnNumber,
uint32_t aSeverityFlag)
{
+ return;
// we are passing aName as the category so we can link to the
// appropriate MDN docs depending on the specific error.
nsDependentCString category(aName);

View File

@ -21,3 +21,5 @@ RUN hg clone --uncompressed https://hg.mozilla.org/mozilla-central
RUN git clone --depth 1 https://github.com/mozillasecurity/fuzzdata
WORKDIR mozilla-central
COPY build.sh target.c *options $SRC/
COPY *diff $SRC/mozilla-central
RUN hg patch --no-commit ContentSecurityPolicyParser.diff