mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:18:48 +00:00
2ddfe368e1
- bug 1215748 - use llvm-dsymutil for mac builds. r=mshal (a217006d89) - warnings (31ea43d0d8) - Bug 1175154 - Unit tests for IAC on 3.0. r=ferjm (12c424bab3) - Bug 1219543 - Part 1: isRunningOnCompositor flag is now a member of AnimationProperty. r=bbirtles (85bc668501) - Bug 1219543 - Part 2: Avoid the period that mIsRunningOnCompositor is false between restyling and building display list. r=bbirtles (597e46d479) - Bug 1219543 - Part 3: MutationObserver should disconnect when the test is finished. r=bbirtles (70c26a266e) - Bug 1214148 - patch 1 - propagation from the nested iframe back to the toplevel iframe, r=alwu (b42002f43a) - Bug 1214148 - patch 2 - from toplevel iframe to the nested iframe, r=alwu (7b07fe5399) - Bug 1214148 - patch 3 - correct window for nested iframes, r=alwu (27ee08caf1) - Bug 1166910 - put referrer attribute behind pref in webidl, r=bz (93e421fa1b) - Bug 1187357 - rename referrer attribute to referrerpolicy. r=hsivonen (70c67f5def) - Bug 1187357 - Generated code for renaming referrer to referrerpolicy in html parser. r=hsivonen (738de3f278) - Bug 1221341. Snap box shadow clip rect to device pixels. r=mstange (b63b783714) - Bug 1228634 - Implement Element.getAttributeNames, r=peterv (4594d9c14c) - Bug 1216193. Implement webkitMatchesSelector. r=khuey (39742b7e0b) - Bug 1134648, handle dynamic changes to rel=dns-prefetch, r=bz (e27638080e) - Bug 1229962 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in parser/html/; r=hsivonen (75de6314f1) - Bug 1226437 - Speculative CSP should set speculative referrer policy instead of actual referrer policy. r=sicking (f7dfd3fd18) - Bug 1227554 - Default to NullPrincipal if doc is not available within expatdriver. r=bz (336a562965) - Bug 1215781 - Use MOZ_UTF16 to generate sTagUnicodeTable. r=mrbkap (eca371a36b) - Bug 1082598 - Part 5: Fix NPAPI for Skia update. r=jrmuizel (25c4d080ab) - Bug 1183828 - Remove 'nsWindow::GetNativeData not implemented for this type' warning. r=roc (0a60404b57) - Bug 1224445 - Add NS_NATIVE_OPENGL_CONTEXT handling to nsWindow::GetNativeData() r=mwu (ee35844be4) - Bug 1179632 part.1 native IME context should not be stored in InputContext but should be able to retrieve with nsIWidget::GetNativeData() r=smaug (5f1804bb72) - Bug 1179632 part.2 WidgetCompositionEvent should store NativeIMEContext which caused the event and PuppetWidget should store it for GetNativeIMEContext() r=smaug, sr=smaug (e00ca78e3f) - Bug 1179632 part.3 TabParent::RecvEndIMEComposition() shouldn't return true with aNoCompositionEvent when there is no widget r=smaug (ee065ed491) - Bug 1179632 part.4 Clean up the code to request IME to commit composition across process boundary r=smaug (9567c4dc57) - Bug 1179632 part.5 WidgetCompositionEvent::mNativeIMEContext should be used at looking for a TextComposition instance for a WidgetCompositionEvent r=smaug (f4e27ec28c) - Bug 1179632 part.6 KeyboardEvent.isComposing shouldn't expose IME state on different document r=smaug (ca8b8a6a02) - Bug 1227544 - Scaling on 720p devices is broken. r=timdream (cb89af839f)
80 lines
2.8 KiB
JavaScript
80 lines
2.8 KiB
JavaScript
/* Any copyright is dedicated to the public domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Bug 1113086 - tests for AudioChannel API into BrowserElement
|
|
|
|
"use strict";
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
browserElementTestHelpers.setEnabledPref(true);
|
|
browserElementTestHelpers.addPermission();
|
|
|
|
function runTests() {
|
|
var iframe = document.createElement('iframe');
|
|
iframe.setAttribute('mozbrowser', 'true');
|
|
iframe.setAttribute('mozapp', 'http://example.org/manifest.webapp');
|
|
|
|
var listener = function(e) {
|
|
var message = e.detail.message;
|
|
if (/^OK/.exec(message)) {
|
|
ok(true, "Message from app: " + message);
|
|
} else if (/^KO/.exec(message)) {
|
|
ok(false, "Message from app: " + message);
|
|
} else if (/DONE/.exec(message)) {
|
|
ok(true, "Messaging from app complete");
|
|
iframe.removeEventListener('mozbrowsershowmodalprompt', listener);
|
|
}
|
|
}
|
|
|
|
function audio_loadend() {
|
|
ok("mute" in iframe, "iframe.mute exists");
|
|
ok("unmute" in iframe, "iframe.unmute exists");
|
|
ok("getMuted" in iframe, "iframe.getMuted exists");
|
|
ok("getVolume" in iframe, "iframe.getVolume exists");
|
|
ok("setVolume" in iframe, "iframe.setVolume exists");
|
|
|
|
ok("allowedAudioChannels" in iframe, "allowedAudioChannels exist");
|
|
var channels = iframe.allowedAudioChannels;
|
|
is(channels.length, 1, "1 audio channel by default");
|
|
|
|
var ac = channels[0];
|
|
|
|
ok(ac instanceof BrowserElementAudioChannel, "Correct class");
|
|
ok("getVolume" in ac, "ac.getVolume exists");
|
|
ok("setVolume" in ac, "ac.setVolume exists");
|
|
ok("getMuted" in ac, "ac.getMuted exists");
|
|
ok("setMuted" in ac, "ac.setMuted exists");
|
|
ok("isActive" in ac, "ac.isActive exists");
|
|
|
|
info("Setting the volume...");
|
|
ac.setVolume(0.5);
|
|
|
|
ac.onactivestatechanged = function() {
|
|
ok(true, "activestatechanged event received.");
|
|
ac.onactivestatechanged = null;
|
|
SimpleTest.finish();
|
|
}
|
|
}
|
|
|
|
iframe.addEventListener('mozbrowserloadend', audio_loadend);
|
|
iframe.addEventListener('mozbrowsershowmodalprompt', listener, false);
|
|
document.body.appendChild(iframe);
|
|
|
|
var context = { 'url': 'http://example.org',
|
|
'appId': SpecialPowers.Ci.nsIScriptSecurityManager.NO_APP_ID,
|
|
'isInBrowserElement': true };
|
|
SpecialPowers.pushPermissions([
|
|
{'type': 'browser', 'allow': 1, 'context': context},
|
|
{'type': 'embed-apps', 'allow': 1, 'context': context}
|
|
], function() {
|
|
iframe.src = 'http://example.org/tests/dom/browser-element/mochitest/file_browserElement_AudioChannel_nested.html';
|
|
});
|
|
}
|
|
|
|
addEventListener('testready', function() {
|
|
SpecialPowers.pushPrefEnv({'set': [["b2g.system_manifest_url", "http://mochi.test:8888/manifest.webapp"]]},
|
|
function() {
|
|
SimpleTest.executeSoon(runTests);
|
|
});
|
|
});
|