mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value
Issue #357
This commit is contained in:
parent
bafa726b15
commit
eb80674e82
4 changed files with 44 additions and 5 deletions
32
docshell/test/navigation/file_bug1379762-1.html
Normal file
32
docshell/test/navigation/file_bug1379762-1.html
Normal file
|
|
@ -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>
|
||||
|
|
@ -59,6 +59,7 @@ skip-if = (toolkit == 'android') || (!debug && (os == 'mac' || os == 'win')) # B
|
|||
skip-if = (toolkit == 'android') || (debug && e10s) #too slow on Android 4.3 aws only; bug 1030403; bug 1263213 for debug e10s
|
||||
[test_sessionhistory.html]
|
||||
skip-if = toolkit == 'android' #RANDOM
|
||||
support-files = file_bug1379762-1.html
|
||||
[test_sibling-matching-parent.html]
|
||||
[test_sibling-off-domain.html]
|
||||
[test_triggeringprincipal_frame_nav.html]
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@ var testFiles =
|
|||
"file_nested_frames.html",
|
||||
"file_shiftReload_and_pushState.html",
|
||||
"file_scrollRestoration.html",
|
||||
"file_bug1300461.html"
|
||||
"file_bug1300461.html",
|
||||
"file_bug1379762-1.html",
|
||||
];
|
||||
var testCount = 0; // Used by the test files.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue