mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 23:06:52 +00:00
ac670cae66
- various bits missing (02d8225a63)
- Bug 1263227 - Include head.js in support-files in toolkit/mozapps/extensions/test/browser/browser.ini to avoid failures when running individual tests locally. r=mossop (df33f9c3c7)
- Bug 1261522 - Support reloading an add-on. r=Mossop (db7d4ce295)
- Bug 1258496 - Fire message-manager-flush-caches to update message manager cached scripts. r=mossop (f3b97bae49)
- Bug 1245956 - Don't distinguish preliminary signing for add-ons. r=mossop (55a198185b)
- Bug 1255590 - Allow unsigned addons in /usr/{lib,share}/mozilla/extensions. r=mossop (6214e51a50)
- Bug 1229769 - Expose Promise interface to WorkerDebugger #ifdef SPIDERMONKEY_PROMISE;r=bz (da9e838c23)
- Bug 1155969 - Make xpt.py flake8 compliant. r=ted (84f8eab5a3)
- Bug 977464 - Always relink XPT files for all changed XPIDL interfaces without requiring the IID to be revved; r=khuey (9b22512c41)
- Bug 977464 follow-up: Fix the indentation to use 4 spaces (bd68a8ebc3)
- Bug 1240053 - Consider the order of methods, their params, and constant important when comparing XPT interfaces to decide whether to relink XPT files; r=khuey (b9253dd183)
- Bug 1264377. Get rid of some unnecessary custom JSClass hook functions in xpconnect sandboxes and DOM simple globals. r=bholley (60950b416b)
- Bug 1258496 - Purge message manager cached scripts on 'message-manager-flush-caches' notification. r=smaug (028b229d02)
- Bug 1251298 - Null out |*idp| when necessary in DoInterfaceDescriptor. r=khuey. (dbdd15dae8)
- Bug 659625 - part1: implement Console::clear in dom/base/Console.cpp;r=baku (17c4b33789)
- Bug 659625 - part2: implement console.clear in devtools webconsole;r=bgrins (b72c6173ee)
- Bug 1257246: Update toolkit/mozapps/extensions for eslint 2. r=aswan (142c3567e0)
- Bug 1245571: Add a window.navigator.mozAddonManager object that can only be accessed by AMO. r=bz (4445f09307)
- Bug 1248507 - p5. DecoderDoctorDiagnostics implementation - r=jya,bz (22f68130af)
- Bug 1248507 - p6. Minimal notification definition - r=bz (02f3eeb2f9)
- Bug 1248507 - p7. Notify decoder-doctor-notification listeners - r=jya,bz (2c2eb33388)
- Bug 1248507 - p8. FFMpeg checks: Console message - r=bz (50a993c143)
- Bug 1248507 - p9. FFMpeg checks: Notification definition - r=bz (0bcdcc090c)
- Bug 1248507 - p10. Detect and report when FFMpeg/Linux fails to load - r=jya (28137efda0)
- Bug 1190939: Decode VP9 4:4:4 properly. r=jya (98508bb48b)
- Bug 1232911 - [1.2] Allow to test for specific VPX MIME type version. r=cpearce (1b53e02981)
- Bug 1251887 - Add break to unintentional switch fallthrough in GfxInfoBase.cpp to fix -Wimplicit-fallthrough warning. r=milan (9969a7bec7)
- Bug 1232911 - [2.2] Add VPX decoding blocking support. r=snorp (fa860a9d4d)
- Bug 1249777: Added support for 10.11 in the blocklisting code as well. r=mstange (479f629083)
- Bug 1242084 - Fix GfxInfoBase nsStringBuffer leak. r=dvander (87b38ee72d)
- Bug 1222201: Only use container calculated dimensions. r=cpearce (693ebdf450)
- Bug 1190240 - Cannot compile WMFVideoMFTManager.cpp using Windows 10 SDK. r=cpearce (8ee2e315f5)
- Bug 1248496 - Enable D3D11 DXVA. r=ajones (a79df0baf2)
- Bug 1248496 - Show which DXVA API is being used in about:support. r=jya (1f6b1f0c8e)
- Bug 1257028 - Fallback to d3d9 decoding if d3d11 fails. r=cpearce (5ad7c159f1)
- Bug 1232045 - WebMDemuxer handles resolution changes. r=jya (18bdc79b1c)
- Bug 1243538: P1. Make MediaInfo::mImage an nsIntSize again and introduce a mImageRect member. r=mattwoodrow (a446cca01e)
- Bug 1243538: P2. Add convenience VideoInfo::ScaledImageRect. r=mattwoodrow (657e675b72)
- Bug 1243538: P3. Adjust libvpx decoder to allow different decoding size from metadata. r=mattwoodrow (50949ce02d)
- Bug 1243538: P4. Adjust ffvpx decoder to allow different decoding size from metadata. r=mattwoodrow (392c8939f5)
- Bug 1243538: P5. Adjust wmf decoder to allow different decoding size from metadata. r=cpearce (f50940564f)
- Bug 1239611 - Remove GonkNativeWindowClient r=nical (2c7ccb54a4)
- Bug 1170589 - Force decoder to use all allocated buffers. r=bwu (7e5c02e48a)
- Bug 1222923 - Enable MOZ_FMP4 on gonk L r=jolin (c04ad6ff55)
- Bug 1178214 - Return INIT_ERROR when video resolution exceeds hw codec capability. r=sotaro (bf3c45cde1)
- Bug 1147304 - Send codec specific data for MPEG4 codec type only. r=jya (ca48d110f4)
- Bug 1243538: P6. Adjust gonk decoder to allow different decoding size from metadata. r=alfredo (257e017762)
- Bug 1243538: [webm] P7. Let the decoder handle picture resizing. r=SingingTree (32dc4a5aac)
- Bug 1262727: [webm] Ensure first frame returned after seek is a keyframe. r=kinetik (f16140852a)
- Bug 1246536: [webm] Only use discard padding information on last packet. r=kinetik (0bac4f8855)
- Bug 1266013: Fix Firefox OS compile errors. r=gerald (f021717287)
- cleanup (390cdec6ee)
- Bug 1250639: Remove the nsIPrincipal shim for the older API style. r=rhelmer (e8d4cae932)
- Bug 1245571: Allow AMO to be able to query details about an add-on. r=rhelmer (37c1816b8b)
- Bug 1255040 Add webidl for install/uninstall via AddonManager r=bz (fa19c97065)
- Bug 1255040 - Implement mozAddonManager.createInstall(). r=rhelmer (05d1499437)
- Bug 1255041 - Implement uninstall() on DOM Addon objects. r=rhelmer (df265e8c44)
- Bug 1264991: Don't construct invalid channel configuration. r=gerald (661828e8b8)
- Bug 1265093: Fix CID 1358648. r=gerald (55468c1261)
- Bug 1262659 - Report HTTP Live Streaming playback requests. r=cpearce,bsmedberg (96b8cd2810)
- Bug 1257211: Exit early if already shutting down. r=gerald (ce5cafae7e)
- Bug 1265400 - Use unsigned long for AudioBuffer length and numberOfChannels; r=smaug (f74f27ea4e)
- As suggested in PR 101, use OpenBSD assembler files. Update the NetBSD on them and use .S instead of .s, to indicate files to process (or preprocessor would fail on comments). (6a17dbacc3)
132 lines
4.8 KiB
JavaScript
132 lines
4.8 KiB
JavaScript
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
|
/* vim: set ft=javascript ts=2 et sw=2 tw=80: */
|
|
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
// Check that calls to console.clear from a script delete the messages
|
|
// previously logged.
|
|
|
|
"use strict";
|
|
|
|
add_task(function* () {
|
|
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
|
|
"test/test-console-clear.html";
|
|
|
|
yield loadTab(TEST_URI);
|
|
let hud = yield openConsole();
|
|
ok(hud, "Web Console opened");
|
|
|
|
info("Check the console.clear() done on page load has been processed.");
|
|
yield waitForLog("Console was cleared", hud);
|
|
ok(hud.outputNode.textContent.includes("Console was cleared"),
|
|
"console.clear() message is displayed");
|
|
ok(!hud.outputNode.textContent.includes("log1"), "log1 not displayed");
|
|
ok(!hud.outputNode.textContent.includes("log2"), "log2 not displayed");
|
|
|
|
info("Logging two messages log3, log4");
|
|
ContentTask.spawn(gBrowser.selectedBrowser, {}, function* () {
|
|
content.wrappedJSObject.console.log("log3");
|
|
content.wrappedJSObject.console.log("log4");
|
|
});
|
|
|
|
yield waitForLog("log3", hud);
|
|
yield waitForLog("log4", hud);
|
|
|
|
ok(hud.outputNode.textContent.includes("Console was cleared"),
|
|
"console.clear() message is still displayed");
|
|
ok(hud.outputNode.textContent.includes("log3"), "log3 is displayed");
|
|
ok(hud.outputNode.textContent.includes("log4"), "log4 is displayed");
|
|
|
|
info("Open the variables view sidebar for 'objFromPage'");
|
|
yield openSidebar("objFromPage", { a: 1 }, hud);
|
|
let sidebarClosed = hud.jsterm.once("sidebar-closed");
|
|
|
|
info("Call console.clear from the page");
|
|
ContentTask.spawn(gBrowser.selectedBrowser, {}, function* () {
|
|
content.wrappedJSObject.console.clear();
|
|
});
|
|
|
|
// Cannot wait for "Console was cleared" here because such a message is
|
|
// already present and would yield immediately.
|
|
info("Wait for variables view sidebar to be closed after console.clear()");
|
|
yield sidebarClosed;
|
|
|
|
ok(!hud.outputNode.textContent.includes("log3"), "log3 not displayed");
|
|
ok(!hud.outputNode.textContent.includes("log4"), "log4 not displayed");
|
|
ok(hud.outputNode.textContent.includes("Console was cleared"),
|
|
"console.clear() message is still displayed");
|
|
is(hud.outputNode.textContent.split("Console was cleared").length, 2,
|
|
"console.clear() message is only displayed once");
|
|
|
|
info("Logging one messages log5");
|
|
ContentTask.spawn(gBrowser.selectedBrowser, {}, function* () {
|
|
content.wrappedJSObject.console.log("log5");
|
|
});
|
|
yield waitForLog("log5", hud);
|
|
|
|
info("Close and reopen the webconsole.");
|
|
yield closeConsole(gBrowser.selectedTab);
|
|
hud = yield openConsole();
|
|
yield waitForLog("Console was cleared", hud);
|
|
|
|
ok(hud.outputNode.textContent.includes("Console was cleared"),
|
|
"console.clear() message is still displayed");
|
|
ok(!hud.outputNode.textContent.includes("log1"), "log1 not displayed");
|
|
ok(!hud.outputNode.textContent.includes("log2"), "log1 not displayed");
|
|
ok(!hud.outputNode.textContent.includes("log3"), "log3 not displayed");
|
|
ok(!hud.outputNode.textContent.includes("log4"), "log4 not displayed");
|
|
ok(hud.outputNode.textContent.includes("log5"), "log5 still displayed");
|
|
});
|
|
|
|
/**
|
|
* Wait for a single message to be logged in the provided webconsole instance
|
|
* with the category CATEGORY_WEBDEV and the SEVERITY_LOG severity.
|
|
*
|
|
* @param {String} message
|
|
* The expected messaged.
|
|
* @param {WebConsole} webconsole
|
|
* WebConsole instance in which the message should be logged.
|
|
*/
|
|
function* waitForLog(message, webconsole, options) {
|
|
yield waitForMessages({
|
|
webconsole: webconsole,
|
|
messages: [{
|
|
text: message,
|
|
category: CATEGORY_WEBDEV,
|
|
severity: SEVERITY_LOG,
|
|
}],
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Open the variables view sidebar for the object with the provided name objName
|
|
* and wait for the expected object is displayed in the variables view.
|
|
*
|
|
* @param {String} objName
|
|
* The name of the object to open in the sidebar.
|
|
* @param {Object} expectedObj
|
|
* The properties that should be displayed in the variables view.
|
|
* @param {WebConsole} webconsole
|
|
* WebConsole instance in which the message should be logged.
|
|
*
|
|
*/
|
|
function* openSidebar(objName, expectedObj, webconsole) {
|
|
let msg = yield webconsole.jsterm.execute(objName);
|
|
ok(msg, "output message found");
|
|
|
|
let anchor = msg.querySelector("a");
|
|
let body = msg.querySelector(".message-body");
|
|
ok(anchor, "object anchor");
|
|
ok(body, "message body");
|
|
|
|
yield EventUtils.synthesizeMouse(anchor, 2, 2, {}, webconsole.iframeWindow);
|
|
|
|
let vviewVar = yield webconsole.jsterm.once("variablesview-fetched");
|
|
let vview = vviewVar._variablesView;
|
|
ok(vview, "variables view object exists");
|
|
|
|
yield findVariableViewProperties(vviewVar, [
|
|
expectedObj,
|
|
], { webconsole: webconsole });
|
|
}
|