Skip to content

Instantly share code, notes, and snippets.

View stdin.json
{
"system1_1": {
"install.rdf": {
"id": "system1@tests.mozilla.org",
"version": "1.0",
"bootstrap": "true",
"name": "System Add-on 1",
"targetApplications": [
{
"id": "xpcshell@tests.mozilla.org",
View stdin.diff
changeset: 491683:d925c6ac67d2
user: Kris Maglione <maglione.k@gmail.com>
date: Mon Jul 02 15:01:25 2018 -0700
files: mozglue/android/APKOpen.cpp toolkit/xre/Bootstrap.cpp toolkit/xre/Bootstrap.h toolkit/xre/nsEmbedFunctions.cpp xpcom/build/nsXULAppAPI.h
description:
Bug 1471025: Part 3a - Refactor Android shared FD API to require fewer modifications per change. r?jld
Adding or removing an FD from this API currently requires changes in about a
half dozen places. Ignoring the Java side of things. This patch changes the
API to pass a struct, rather than additional arguments for each FD, so that
View localized.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="localized.js"></script>
</head>
<body>
</body>
</html>
View stdin.diff
# HG changeset patch
# User Kris Maglione <maglione.k@gmail.com>
# Date 1520105958 28800
# Sat Mar 03 11:39:18 2018 -0800
# Node ID 5e643c5b3543a7837f64d15df41a4bc3b28eff11
# Parent 8577732074db157b56798c455a381363a0f07351
Bug 1434076: Follow-up: Add test for conflict between browserAction and bundled experiment. a=test-only
diff --git a/browser/components/extensions/test/browser/browser-common.ini b/browser/components/extensions/test/browser/browser-common.ini
--- a/browser/components/extensions/test/browser/browser-common.ini
View stdin.js
function each(ary, fn) {
ary = Array.from(ary);
return (function next() {
if (ary.length) {
return Promise.resolve(fn(ary.shift())).then(next);
}
})();
}
each(category.channels, channel => {
return list(channel).then(items => {
View unmozlz4.py
#!/usr/bin/env python
import io
import sys
import lz4.block
MAGIC = b'mozLz40\0'
for path in sys.argv[1:]:
with io.open(path, 'rb') as f:
View asyncclient.py
from pyxp import client, fcall
from pyxp.client import *
from functools import wraps
def send(iter, val, default=None):
try:
return iter.send(val)
except StopIteration:
return default
View category-legacy.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View unmozlz4.py
#!/usr/bin/env python
import io
import sys
import lz4
MAGIC = b'mozLz40\0'
for path in sys.argv[1:]:
with io.open(path, 'rb') as f:
View unmozlz4.py
#!/usr/bin/env python
import io
import sys
import lz4
MAGIC = b'mozLz40\0'
for path in sys.argv[1:]:
with io.open(path, 'rb') as f:
You can’t perform that action at this time.