mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
98491d0687
- Bug 382721 - Part 1: Fix spacing of simple 2px dotted border without radius. r=jrmuizel (8e83589f45)
- Bug 382721 - Part 2: Split constants for border rendering to BorderConsts.h. r=jrmuizel (88ae5aee7f)
- Bug 1237805 part 1 - [css-grid] Remove all empty 'auto-fit' tracks, not just those at the end. r=dholbert (1c0530b87b)
- Bug 1237805 part 2 - [css-grid] 'auto-fit' reftest removing empty start/middle tracks. (3bfc688e2b)
- Bug 1239036 - [css-grid] Deal with implicit tracks when computing grid-template-{columns,rows}. r=dholbert (cf36d9193a)
- Bug 1239036 - [css-grid] Tests. (4aaec0499f)
- Bug 1238294 part 1 - [css-grid] Make GridLineEdge() a method on the Tracks class rather than a static function (idempotent change). r=dholbert (ab81994ec6)
- Bug 1238294 part 2 - [css-grid] Treat any gaps at the grid edges as "line thickness" so they behave the same as gaps between tracks for positioning areas. r=dholbert (fafdc1ceef)
- Bug 1230695 - [css-grid] More abs.pos. grid alignment reftests. (330770cf1a)
- Bug 1238294 part 3 - [css-grid] Add/tweak reftests for new behavior of gaps at the grid edges. (58ff8670a1)
- Bug 1240795 - [css-grid] Refactor GetComputedTemplateColumns/Rows to return a self-contained value. r=dholbert (9c5e68418f)
- Bug 1229739 - Use the color of shadow if available for drawing emphasis marks in shadow. r=jfkthame (c19c3deb1c)
- Bug 1191597 part 3 - Convert fullscreen-api-keys to a browser chrome test. r=smaug (ad740d4c4c)
- Bug 1174575 - Part 1: Define CSSPseudoElement interface. r=birtles, r=smaug (1a304d59c4)
- Bug 1214536 - Part 1: Use unrestricted double for iterations. r=birtles (0dbb02e423)
- Bug 1214536 - Part 2: Replace mIterationCount in layers::Animation. r=birtles (8a573046f5)
- Bug 1214536 - Part 3: Store the original value of fill. r=birtles (df548c244a)
- Bug 1214536 - Part 4: Use OwingUnrestrictedDoubleOrString for duration. r=birtles (567cfd1555)
- Bug 1214536 - Part 5: Add AnimationEffectTimingReadOnly interface. r=birtles, r=smaug (47138ec7f0)
- Bug 1214536 - Part 6: Revise AnimationTiming::operator==. r=birtles (616fc2c711)
- Bug 1214536 - Part 7: Rename AnimationTiming as TimingParams. r=birtles, r=smaug (d7de0ec72b)
- Bug 1214536 - Part 8: Add an operator=() for TimingParams. r=birtles (bfe22c6501)
- Bug 1215406 - Part 6: Test. r=birtles (3f16796304)
- Bug 1214536 - Part 9: Test. r=birtles (526419cc1d)
- Bug 1147673 - Unadjust clip before intersecting it with the scroll clip. r=botond (85cd06d2d5)
- Bug 1147673 - Determine more accurately whether an async transform affects a layer's clip rect. r=kats (8ce7d1e887)
- Bug 1096773 part 1 - Make the frames argument to the KeyframeEffectReadOnly constructor NOT optional; r=bz (6e63b08671)
- Bug 1096773 part 2 - Add a KeyframeEffectReadOnly constructor that takes a TimingParams argument; r=boris (24971306e6)
- Bug 1096773 part 3 - Implement Animatable.animate(); r=bz (9d95ea800e)
- Bug 1096773 part 4 - Add tests for Animatable.animate(); r=bz (03b866b2d8)
- Bug 1179627 - Part 1: Implement Animation.id. r=smaug, r=birtles (51bbed6e9d)
- Bug 1096774 - Part 1: Implement Animation Constructor. r=birtles, r=smaug (e09d7fbd7c)
- Bug 1179627 - Part 2: Add animation.id for CSS animations test files. r=bbirtles, r=hiikezoe (329ea31f33)
- Bug 1096774 - Part 2: Fix crash if animation has no timeline. r=birtles (d989b44866)
- Bug 1096774 - Part 3: Tests for Animation Contructor. r=birtles (23786774bc)
- Bug 1240265 - Annotate intentional switch fallthroughs in dom/. r=mrbkap (ffd9da3d5f)
- Bug 1227458. Make setAttributeNode be an alias for setAttributeNodeNS and setNamedItem on the attribute map be an alias for setNamedItemNS. r=smaug (f804d28b93)
- Bug 1226091 - Use MayHaveAnimations in Element::UnbindFromTree; r=smaug (1ec85f75b3)
158 lines
5.4 KiB
HTML
158 lines
5.4 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=545812
|
|
|
|
Test plugins with DOM full-screen API:
|
|
* Presence of plugins has no effect on request for full-screen on MacOS.
|
|
* Request for full-screen is denied when windowed plugin in current doc is present.
|
|
* Request for full-screen is denied when windowed plugin in subdocument is present.
|
|
* Request for full-screen is not denied when the only plugin present is windowless.
|
|
* Adding an existing (out-of-doc) windowed plugin to a full-screen document causes document to exit full-screen.
|
|
* Create windowed plugin and adding it to full-screen document caused exit from full-screen.
|
|
|
|
-->
|
|
<head>
|
|
<title>Test for Bug 545812</title>
|
|
<script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<script type="application/javascript" src="enableTestPlugin.js"></script>
|
|
<script type="application/javascript" src="file_fullscreen-utils.js"></script>
|
|
<style>
|
|
body:-moz-full-screen, div:-moz-full-screen {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<!-- Windowed plugin, focusing should revoke full-screen. -->
|
|
<embed id="windowed-plugin" type="application/x-test" style="width:200px;height:100px;" wmode="window"></embed>
|
|
|
|
<!-- Windowless plugin, focusing should not revoke full-screen. -->
|
|
<embed id="windowless-plugin" type="application/x-test" style="width:200px;height:100px;"></embed>
|
|
|
|
|
|
<!-- iframe contents:
|
|
|
|
<html><body><embed id='windowed-plugin' type='application/x-test' style='width:200px;height:100px;' wmode='window'></embed></body></html>
|
|
|
|
-->
|
|
|
|
<iframe id="subdoc-plugin" src="data:text/html;charset=utf-8,<html><body><embed id%3D'windowed-plugin' type%3D'application%2Fx-test' style%3D'width%3A200px%3Bheight%3A100px%3B' wmode%3D'window'><%2Fembed><%2Fbody><%2Fhtml>%0D%0A"></iframe>
|
|
|
|
<script type="application/javascript">
|
|
|
|
/** Test for Bug 545812 **/
|
|
|
|
function ok(condition, msg) {
|
|
opener.ok(condition, "[plugins] " + msg);
|
|
}
|
|
|
|
function is(a, b, msg) {
|
|
opener.is(a, b, "[plugins] " + msg);
|
|
}
|
|
|
|
function e(id) {
|
|
return document.getElementById(id);
|
|
}
|
|
|
|
function removeElement(e) {
|
|
e.parentNode.removeChild(e);
|
|
}
|
|
|
|
const isMacOs = navigator.appVersion.indexOf("Macintosh") != -1;
|
|
|
|
var windowedPlugin = null;
|
|
|
|
function begin() {
|
|
// Delay test startup long enough for the windowed plugin in the subframe to
|
|
// start up and create its window.
|
|
opener.SimpleTest.executeSoon(function() {
|
|
opener.SimpleTest.executeSoon(function() {
|
|
startTest();
|
|
})
|
|
});
|
|
}
|
|
|
|
function startTest() {
|
|
ok(!document.mozFullScreen, "Should not be in full-screen mode initially");
|
|
document.body.mozRequestFullScreen();
|
|
|
|
// Focus the windowed plugin. On MacOS we should still enter full-screen mode,
|
|
// on windows the pending request for full-screen should be denied.
|
|
e("windowed-plugin").focus();
|
|
|
|
if (isMacOs) {
|
|
// Running on MacOS, all plugins are effectively windowless, request for full-screen should be granted.
|
|
// Continue test in the (mac-specific) "mozfullscreenchange" handler.
|
|
addFullscreenChangeContinuation("enter", macFullScreenChange1);
|
|
} else {
|
|
// Non-MacOS, request should be denied, carry on the test after receiving error event.
|
|
addFullscreenErrorContinuation(nonMacTest);
|
|
}
|
|
}
|
|
|
|
function nonMacTest() {
|
|
ok(!document.mozFullScreen, "Request for full-screen with focused windowed plugin should be denied.");
|
|
|
|
// Focus a regular html element, and re-request full-screen, request should be granted.
|
|
e("windowless-plugin").focus();
|
|
addFullscreenChangeContinuation("enter", nonMacTest2);
|
|
document.body.mozRequestFullScreen();
|
|
}
|
|
|
|
function nonMacTest2() {
|
|
ok(document.mozFullScreen, "Request for full-screen with non-plugin focused should be granted.");
|
|
// Focus a windowed plugin, full-screen should be revoked.
|
|
addFullscreenChangeContinuation("exit", nonMacTest3);
|
|
e("windowed-plugin").focus();
|
|
}
|
|
|
|
function nonMacTest3() {
|
|
ok(!document.mozFullScreen, "Full-screen should have been revoked when windowed-plugin was focused.");
|
|
// Remove windowed plugins before closing the window
|
|
// to work around bug 1237853.
|
|
removeElement(e("windowed-plugin"));
|
|
removeElement(e("subdoc-plugin").contentDocument.getElementById("windowed-plugin"));
|
|
opener.nextTest();
|
|
}
|
|
|
|
var fullScreenChangeCount = 0;
|
|
|
|
function createWindowedPlugin() {
|
|
var p = document.createElement("embed");
|
|
p.setAttribute("type", "application/x-test");
|
|
p.setAttribute("wmode", "window");
|
|
return p;
|
|
}
|
|
|
|
function macFullScreenChange1(event) {
|
|
ok(document.mozFullScreen, "Requests for full-screen with focused windowed plugins should be granted on MacOS");
|
|
|
|
// Create a new windowed plugin, and add that to the document. Should *not* exit full-screen mode on MacOS.
|
|
windowedPlugin = createWindowedPlugin();
|
|
document.body.appendChild(windowedPlugin);
|
|
|
|
// Focus windowed plugin. Should not exit full-screen mode on MacOS.
|
|
windowedPlugin.focus();
|
|
|
|
setTimeout(
|
|
function() {
|
|
ok(document.mozFullScreen, "Adding & focusing a windowed plugin to document should not cause full-screen to exit on MacOS.");
|
|
addFullscreenChangeContinuation("exit", macFullScreenChange2);
|
|
document.mozCancelFullScreen();
|
|
}, 0);
|
|
}
|
|
|
|
function macFullScreenChange2(event) {
|
|
ok(!document.mozFullScreen, "Should have left full-screen mode after calling document.mozCancelFullScreen().");
|
|
opener.nextTest();
|
|
}
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|