forked from mirrors/gecko-dev
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
--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
25 lines
531 B
HTML
25 lines
531 B
HTML
<html>
|
|
<body>
|
|
file_browserElement_CookiesNotThirdParty.html
|
|
|
|
<script type='text/javascript'>
|
|
if (location.search != '?step=2') {
|
|
// Step 1: Set a cookie.
|
|
document.cookie = 'file_browserElement_CookiesNotThirdParty';
|
|
alert('next');
|
|
}
|
|
else {
|
|
// Step 2: Read the cookie.
|
|
if (document.cookie == 'file_browserElement_CookiesNotThirdParty') {
|
|
alert('success: got the correct cookie');
|
|
}
|
|
else {
|
|
alert('failure: got unexpected cookie: "' + document.cookie + '"');
|
|
}
|
|
|
|
alert('finish');
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|