Skip to content

Instantly share code, notes, and snippets.

// Copyright (c) 2008-2014 by Kris Maglione <maglione.k@gmail.com>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE file included with this file.
var EXPORTED_SYMBOLS = ["adb"];
const OPTIONS_DIALOG = "adbify://content/options.xul";
var { Overlay, overlay } = require("overlay");
changeset: 379613:8de9e957ada2
user: Kris Maglione <maglione.k@gmail.com>
date: Tue Jan 31 11:55:43 2017 -0800
summary: Bug 1260548: Part 9 - Make sure Android mochitests do not leave extra tabs open.
diff --git a/mobile/android/components/extensions/test/mochitest/head.js b/mobile/android/components/extensions/test/mochitest/head.js
--- a/mobile/android/components/extensions/test/mochitest/head.js
+++ b/mobile/android/components/extensions/test/mochitest/head.js
@@ -1,15 +1,31 @@
"use strict";
vimdiff.executable = nvim
vimdiff.args = -f -d $output -M $local $base $other -c "wincmd J" -c "set modifiable write"
vimdiff.premerge = keep
vimdiff.priority = 100
18:12 <@John-Galt> rhelmer: One fires synchronously, the other does not.
18:14 <@John-Galt> rhelmer: Also, EventManager clones arguments into the correct scope, and catches exceptions, but SingletonEventManager doesn't.
18:15 <@John-Galt> rhelmer: And there can be more than one listener at the same time, but you're setting extension.upgrade to null in your unregister function, which seems not ideal in the case of SingletonEventManager.
18:15 <@John-Galt> Or in the case of other event managers when multiple contexts are active.
18:17 <@John-Galt> So you should probably store it for the current context and not use SingletonEventManager.
18:34 <@John-Galt> Or just not set it to null.
1469835255204 addons.manager WARN Exception calling callback: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isDirectory]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: getURIForResourceInFile :: line 1448" data: no] Stack trace: getURIForResourceInFile()@resource://gre/modules/addons/XPIProvider.jsm:1448 < XPI_callBootstrapMethod()@resource://gre/modules/addons/XPIProvider.jsm:4443 < XPI_uninstallAddon()@resource://gre/modules/addons/XPIProvider.jsm:4686 < AddonWrapper_uninstall()@resource://gre/modules/addons/XPIProvider.jsm:6991 < uninstallHotfix/<()@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///Users/redacted/projects/opensource/firefox/obj-x86_64-apple-darwin15.4.0/tmp/scratch_user/extensions/firefox-hotfix@mozilla.org.xpi!/bootstrap.js:78 < safeCall()@resource://gre/modules/AddonManager.jsm:173 < makeSafe/<()@resource://gre/modules/AddonManag
12:08 <John-Galt> Gijs_away: Heh... Did you know that when you open the menu panel so that its bottom is very near the bottom of the screen, and then open a view that makes it grow, it flips to the top of the menu button, but the arrow stays on the top of the panel?
12:29 <Gijs_away> John-Galt: I'm not very surprised, that's a XUL/arrowpanel bug, I think, not specific to the menupanel...
12:30 <Gijs_away> John-Galt: I'd expect you to be able to reproduce that with e.g. the bookmarks panel and its expanding folder tree as well, or with the downloads panel and adding a download, etc.
12:30 <Gijs_away> John-Galt: anyway... I have a separate question - what is this "debouncing" interval and the 100ms you keep referring to?
12:30 <John-Galt> Yeah, I'd expect that too
error occurred while processing 'listAddons: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isDirectory]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: getURIForResourceInFile :: line 1536" data: no]
Stack: getURIForResourceInFile@resource://gre/modules/addons/XPIProvider.jsm:1536:7
AddonWrapper.prototype.getResourceURI@resource://gre/modules/addons/XPIProvider.jsm:7527:12
get icons@resource://gre/modules/addons/XPIProvider.jsm:7172:23
AddonManagerInternal.getPreferredIconURL@resource://gre/modules/AddonManager.jsm:2372:9
this.AddonManager.getPreferredIconURL@resource://gre/modules/AddonManager.jsm:3602:12
get iconURL@resource://gre/modules/addons/XPIProvider.jsm:7153:12
BAA_form@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/addon.js:86:7
RootActor.prototype.onListAddons/</<.addons<@resource://gre/modules/commonjs/toolkit/
# HG changeset patch
# User Kris Maglione <maglione.k@gmail.com>
# Date 1461303360 25200
# Thu Apr 21 22:36:00 2016 -0700
# Node ID c3829f5820af4842fbb4f3fc0ed8fb55f3716bd7
# Parent fed6d478bf3d7cc80fbcf975361a2e2bc8e4ed30
[WIP] Add new subprocess IPC module.
diff --git a/dom/system/OSFileConstants.cpp b/dom/system/OSFileConstants.cpp
--- a/dom/system/OSFileConstants.cpp
function backgroundScript() {
let unsortedId, ourId;
const nonExistentId = "000000000000";
function checkOurBookmark(bookmark) {
browser.test.assertEq(ourId, bookmark.id, "Bookmark has the expected Id");
browser.test.assertTrue("parentId" in bookmark, "Bookmark has a parentId");
browser.test.assertEq(0, bookmark.index, "Bookmark has the expected index"); // We assume there are no other bookmarks.
browser.test.assertEq("http://example.org/", bookmark.url, "Bookmark has the expected url");
browser.test.assertEq("test bookmark", bookmark.title, "Bookmark has the expected title");
Date: Thu, 25 Feb 2016 07:28:11 +0900
From: Mike Hommey <mh@glandium.org>
To: dev-builds@lists.mozilla.org, dev-platform@lists.mozilla.org
Subject: Moving away from autoconf
User-Agent: Mutt/1.5.24 (2015-08-30)
Hi,
We are, officially, and starting today with the landing of bug 1250294,
moving away from autoconf. This is not going to happen overnight, and it