mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
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
25 lines
643 B
HTML
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>
|