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

Unified Diff: content/test/data/browsing_data/worker.js

Issue 2929593002: Align `clear-site-data` syntax with the spec. (Closed)
Patch Set: Feedback. Created 3 years, 6 months 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: content/test/data/browsing_data/worker.js
diff --git a/content/test/data/browsing_data/worker.js b/content/test/data/browsing_data/worker.js
index 27c17bd41cde6e515c3e5c6abb0df63a60e19ab0..71c3ee194626bb760fb9c1119a6e6cf1b7f6a2f8 100644
--- a/content/test/data/browsing_data/worker.js
+++ b/content/test/data/browsing_data/worker.js
@@ -13,7 +13,7 @@ self.addEventListener('fetch', function(event) {
if (url.pathname.match('resource_from_sw')) {
event.respondWith(new Response(
'Response content is not important, only the header is.', {
- 'headers': { 'Clear-Site-Data': '{ "types" : [ "cookies" ] }' }
+ 'headers': { 'Clear-Site-Data': '"cookies"' }
}));
return;
}
@@ -44,7 +44,7 @@ self.addEventListener('fetch', function(event) {
origins[3] + 'resource_from_sw',
origins[4] + 'another_resource_so_that_the_previous_one_isnt_reused',
];
- var header = encodeURIComponent('{ "types": [ "cookies" ] }');
+ var header = encodeURIComponent('"cookies"');
// Fetch all resources and report back to the C++ side by setting
// the document title.

Powered by Google App Engine
This is Rietveld 408576698