diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-05-15 21:14:18 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-05-15 21:14:18 +0200 |
commit | e968422d299e49d1906e6f4c7746cfd9a677e72b (patch) | |
tree | 53539b4056d934c3886fc77f1b728d78482d199c /docshell/test/navigation/file_bug1379762-1.html | |
parent | 9c075dc4cdaeef79bc570ed2219bb757cb325c47 (diff) | |
download | UXP-e968422d299e49d1906e6f4c7746cfd9a677e72b.tar UXP-e968422d299e49d1906e6f4c7746cfd9a677e72b.tar.gz UXP-e968422d299e49d1906e6f4c7746cfd9a677e72b.tar.lz UXP-e968422d299e49d1906e6f4c7746cfd9a677e72b.tar.xz UXP-e968422d299e49d1906e6f4c7746cfd9a677e72b.zip |
Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value
Issue #357
Diffstat (limited to 'docshell/test/navigation/file_bug1379762-1.html')
-rw-r--r-- | docshell/test/navigation/file_bug1379762-1.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docshell/test/navigation/file_bug1379762-1.html b/docshell/test/navigation/file_bug1379762-1.html new file mode 100644 index 000000000..e8cd8b30b --- /dev/null +++ b/docshell/test/navigation/file_bug1379762-1.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Bug 1379762</title> + </head> + <img srcset> <!-- This tries to add load blockers during bfcache restoration --> + <script> + onunload = null; // enable bfcache + opener.is(opener.testCount, 0, + "We should only run once; otherwise the loadCount variable makes no sense"); + var loadCount = 0; + onpageshow = function() { + ++opener.testCount; + if (opener.testCount == 1) { + // Navigate forward and then back. + setTimeout(function() { location = "goback.html"; }, 0); + } else if (opener.testCount == 2) { + // Do this async so our load event gets a chance to fire if it plans to + // do it. + setTimeout(function() { + opener.nextTest(); + window.close(); + }); + } + }; + onload = function() { + ++loadCount; + opener.is(loadCount, 1, "Should only get one onload"); + } + </script> +</html> |