Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp

Issue 2483703002: Replicate feature policy headers to remote frames (Closed)
Patch Set: Addressing review comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
index d6863f52fba665f389a35fa3f039e86372eeb389..e64189576fa3eeb481d3cf5bd0c3e0913697790a 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicyFuzzer.cpp
@@ -19,7 +19,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
blink::SecurityOrigin::createFromString("https://example.com/");
std::unique_ptr<blink::FeaturePolicy> policy =
blink::FeaturePolicy::createFromParentPolicy(nullptr, origin);
- policy->setHeaderPolicy(WTF::String(data, size), messages);
+ policy->setHeaderPolicy(WTF::String(data, size), &messages);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698