Skip to content

Instantly share code, notes, and snippets.

@mixedpuppy
mixedpuppy / gist:fa6c839620501c504ee6
Created November 14, 2014 01:14
testing onename
Verifying that +mixedpuppy is my openname (Bitcoin username). https://onename.io/mixedpuppy
@mixedpuppy
mixedpuppy / sidebar.html
Created March 29, 2017 20:50
Drag/Drop and File picker example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css" type="text/css"/>
<script src="sidebar.js"></script>
</head>
<body> <!--body is drop target-->
<a href="http://mozilla.org">Mozilla</a>
<div>Drop directory</div>
@mixedpuppy
mixedpuppy / README.md
Created January 16, 2018 19:35 — forked from rpl/README.md
A fiction example webextension (used to design a new userScripts WE API)

TBD

--- background.js 2018-03-30 10:19:07.000000000 -0500
+++ background.js.fixed 2018-03-30 10:19:39.000000000 -0500
@@ -13,6 +13,8 @@
const timeouts = {};
let closeUI = null;
let isEditorReady = false;
+let editorConnectedDeferred;
+let isEditorConnected = new Promise(resolve => { editorConnectedDeferred = {resolve}; });
// Kinto sync and encryption
tochtli:m-c shanec$ ./mach marionette-test browser/components/search/test/marionette/test_engines_on_restart.py --gecko-log -
0:00.00 INFO Using workspace for temporary data: "/Users/shanec/moz/m-c"
0:00.00 mozversion INFO application_buildid: 20190320124902
0:00.00 mozversion INFO application_changeset: 25398e555020fef80c7b2a06a0d4c667e861cd6f
0:00.00 mozversion INFO application_display_name: Nightly
0:00.00 mozversion INFO application_id: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
0:00.00 mozversion INFO application_name: Firefox
0:00.00 mozversion INFO application_remotingname: firefox
0:00.00 mozversion INFO application_vendor: Mozilla
0:00.00 mozversion INFO application_version: 68.0a1
tochtli:m-c shanec$ ./mach xpcshell-test --log-mach-verbose toolkit/components/search/tests/xpcshell/test_restarting.js
0:00.20 WARNING MOZ_NODE_PATH environment variable not set. Tests requiring http/2 will fail.
0:00.40 INFO Running tests sequentially.
0:00.40 SUITE_START: xpcshell - running 1 tests
0:00.41 INFO profile dir is /var/folders/kt/cj70x7x15jx7kfj1tjncp_yr0000gn/T/firefox/xpcshellprofile
0:00.41 TEST_START: toolkit/components/search/tests/xpcshell/test_restarting.js
0:00.41 INFO toolkit/components/search/tests/xpcshell/test_restarting.js | full command: ['/Users/shanec/moz/m-c/obj-x86_64-apple-darwin18.2.0/dist/Nightly.app/Contents/MacOS/xpcshell', '-g', '/Users/shanec/moz/m-c/obj-x86_64-apple-darwin18.2.0/dist/Nightly.app/Contents/Resources', '-a', '/Users/shanec/moz/m-c/obj-x86_64-apple-darwin18.2.0/dist/Nightly.app/Contents/Resources/browser', '-r', '/Users/shanec/moz/m-c/obj-x86_64-apple-darwin18.2.0/dist/Nightly.app/Contents/Resources/components/httpd.manifest', '-m', '-s', '-e', 'con
./mach doc
Processing ./third_party/python/certifi
Requirement already satisfied (use --upgrade to upgrade): certifi==2018.4.16 from file:///Users/shanec/moz/m-c/third_party/python/certifi in ./testing/web-platform/tests/tools/third_party/certifi
Processing ./third_party/python/pipenv
Installing collected packages: pipenv
Running setup.py install for pipenv ... done
Successfully installed pipenv-2018.5.18
Processing ./third_party/python/six
Installing collected packages: six
Running setup.py install for six ... done
diff --git a/toolkit/components/extensions/test/mochitest/mergecsp.sjs b/toolkit/components/extensions/test/mochitest/mergecsp.sjs
--- a/toolkit/components/extensions/test/mochitest/mergecsp.sjs
+++ b/toolkit/components/extensions/test/mochitest/mergecsp.sjs
@@ -1,15 +1,22 @@
+"use strict";
+
+// eslint-disable-next-line no-unused-vars
function handleRequest(request, response) {
let page = `
<!DOCTYPE html>
Ignoring unrecognized chrome manifest directive 'interfaces'. httpd.manifest:1
OpenGL compositor Initialized Succesfully.
Version: 2.1 INTEL-12.10.16
Vendor: Intel Inc.
Renderer: Intel(R) UHD Graphics 630
FBO Texture Target: TEXTURE_2D
browser.startup.average_time - Truncating float/double number.
Unknown category for SetEventRecordingEnabled: fxmonitor
Unknown Collection "main/message-groups" RemoteSettingsClient.jsm:137
// Check <all_urls> used as an optional API permission allows explicit urls to be requested.
add_task(async function test_optional_url_with_optional_all_urls() {
let extension = ExtensionTestUtils.loadExtension({
manifest: {
optional_permissions: ["<all_urls>"],
},
background() {
browser.test.onMessage.addListener(async () => {