summaryrefslogtreecommitdiffstats
path: root/ios
diff options
context:
space:
mode:
authorestark <estark@chromium.org>2015-10-16 23:42:07 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-17 06:43:10 +0000
commit467a098174e062d4380eb0ad8f7b2f0b0b7ed5fa (patch)
treeebb9b150d8b482127e8ec33803500a7e61114acd /ios
parent79b646f146c5d89aab1efc3fcd974b5ec710314e (diff)
downloadchromium_src-467a098174e062d4380eb0ad8f7b2f0b0b7ed5fa.zip
chromium_src-467a098174e062d4380eb0ad8f7b2f0b0b7ed5fa.tar.gz
chromium_src-467a098174e062d4380eb0ad8f7b2f0b0b7ed5fa.tar.bz2
Implement $Secure- cookie prefix
This CL implements the rule that cookies whose names start with $Secure- can only be set if the Secure attribute is enabled. The implementation is a runtime-enabled web platform feature for now. Intent to Implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/IU5t6eLuS2Y/Uq-7Kat9BwAJ BUG=541511 TBR=droger@chromium.org Review URL: https://codereview.chromium.org/1393193005 Cr-Commit-Position: refs/heads/master@{#354676}
Diffstat (limited to 'ios')
-rw-r--r--ios/net/cookies/cookie_store_ios_unittest.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/ios/net/cookies/cookie_store_ios_unittest.mm b/ios/net/cookies/cookie_store_ios_unittest.mm
index 39e30db..7db6f40 100644
--- a/ios/net/cookies/cookie_store_ios_unittest.mm
+++ b/ios/net/cookies/cookie_store_ios_unittest.mm
@@ -42,6 +42,7 @@ struct CookieStoreIOSTestTraits {
static const bool filters_schemes = false;
static const bool has_path_prefix_bug = true;
static const int creation_time_granularity_in_ms = 1000;
+ static const int enforces_prefixes = true;
base::MessageLoop loop_;
};
@@ -58,6 +59,7 @@ struct InactiveCookieStoreIOSTestTraits {
static const bool filters_schemes = false;
static const bool has_path_prefix_bug = false;
static const int creation_time_granularity_in_ms = 0;
+ static const int enforces_prefixes = true;
base::MessageLoop loop_;
};
@@ -168,6 +170,7 @@ struct RoundTripTestCookieStoreTraits {
static const bool filters_schemes = false;
static const bool has_path_prefix_bug = true;
static const int creation_time_granularity_in_ms = 1000;
+ static const int enforces_prefixes = true;
};
} // namespace net