Files
firefox/devtools/client/storage/test/storage-cookies.html
T
Masatoshi Kimura 4f2e64ad3d Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg
2017-02-23 06:10:07 +09:00

25 lines
643 B
HTML

<!DOCTYPE HTML>
<html>
<!--
Bug 970517 - Storage inspector front end - tests
-->
<head>
<meta charset="utf-8">
<title>Storage inspector cookie test</title>
</head>
<body>
<script type="application/javascript">
"use strict";
let expiresIn24Hours = new Date(Date.now() + 60 * 60 * 24 * 1000).toUTCString();
for (let i = 1; i <= 5; i++) {
let cookieString = "test" + i + "=value" + i +
";expires=" + expiresIn24Hours + ";path=/browser";
if (i % 2) {
cookieString += ";domain=test1.example.org";
}
document.cookie = cookieString;
}
</script>
</body>
</html>