[webkit-reviews] review denied: [Bug 80024] Web Inspector: [Styles] [CRASH] Handle rule addition and inline style editing failure due to Content-Security-Policy in the page : [Attachment 129893] [PATCH] Fixed CSP violation reporting for inline styles
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 2 07:55:56 PST 2012
Pavel Feldman <pfeldman at chromium.org> has denied Alexander Pavlov (apavlov)
<apavlov at chromium.org>'s request for review:
Bug 80024: Web Inspector: [Styles] [CRASH] Handle rule addition and inline
style editing failure due to Content-Security-Policy in the page
https://bugs.webkit.org/show_bug.cgi?id=80024
Attachment 129893: [PATCH] Fixed CSP violation reporting for inline styles
https://bugs.webkit.org/attachment.cgi?id=129893&action=review
------- Additional Comments from Pavel Feldman <pfeldman at chromium.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=129893&action=review
> Source/WebCore/dom/Document.cpp:2579
> +void Document::setAllowInlineStyle(bool value)
You should override content security policy in ContentSecurityPolicy.cpp.
> Source/WebCore/dom/StyledElement.cpp:-101
> - else if (document()->contentSecurityPolicy()->allowInlineStyle())
Please do not change call sites.
> Source/WebCore/inspector/InspectorCSSAgent.cpp:900
> + bool inlineStyleEnabled = document->allowInlineStyle(false);
Should be:
ContentSecurityPolicy* policy = document->contentSecurityPolicy();
policy->setOverrideAllowInlineStyle(true);
targetNode->...
policy->setOverrideAllowInlineStyle(false);
> Source/WebCore/page/ContentSecurityPolicy.cpp:525
> + CSPDirective* styleSrcDirective = operativeDirective(m_styleSrc.get());
drop this
> LayoutTests/inspector/styles/add-new-rule-inline-style-csp.html:13
> + InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
These are not 3 steps, these are 3 tests.
More information about the webkit-reviews
mailing list