Skip to content

Instantly share code, notes, and snippets.

View daleharvey's full-sized avatar

Dale Harvey daleharvey

View GitHub Profile
~/src/riot-web (develop)$ yarn install
yarn install v1.21.1
[1/4] 🔍 Resolving packages...
success Already up-to-date.
$ yarn clean && yarn build:compile
yarn run v1.21.1
$ rimraf lib webapp electron_app/dist
✨ Done in 0.16s.
yarn run v1.21.1
$ yarn reskindex && babel --source-maps -d lib src
* SimpleMDE - https://simplemde.com/
Broken in various ways, abandoned and carried on in a fork by ...
* EasyMDE - https://easymde.tk/
Based on codemirror, works quite nicely (not sure about the link formatting yet) but
completely broken on mobile, codemirror is doing a big v6 that will hopefully fix
mobile support, but probably gonna be a while coming
* Slate / slate-md-editor - https://canner.github.io/canner-slate-editor/?selectedKind=slate-md-editor&selectedStory=Simple%20demo&full=0&addons=1&stories=1&panelRight=0
Looks pretty decent but would need to do a whole react setup to be able to use it
Test Code is:
dump("!!! CALLING Services.search.init(true)\n");
let initPromise = Services.search.init(true);
dump("!!! CALLED Services.search.init(true)\n");
SearchService code is:
// nsISearchService
async init(skipRegionCheck = false) {
0:01.83 /Users/dale/src/gecko/objdir/firefox-opt/dist/Nightly.app/Contents/MacOS/firefox -no-remote -foreground -profile /Users/dale/src/gecko/objdir/firefox-opt/tmp/profile-default
1568638089346 [email protected] WARN Loading extension '[email protected]': Reading manifest: Invalid extension permission: mozillaAddons
1568638089346 [email protected] WARN Loading extension '[email protected]': Reading manifest: Invalid extension permission: telemetry
1568638089346 [email protected] WARN Loading extension '[email protected]': Reading manifest: Invalid extension permission: resource://pdf.js/
1568638089346 [email protected] WARN Loading extension '[email protected]': Reading manifest: Invalid extension permission: about:reader*
JavaScript warning: resource://gre/modules/SearchService.jsm, line 143: unreachable code after return statement
*** Search: SearchService.init
*** Search: _init
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/taskgraph.cron.rst.
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/taskgraph.loader.rst.
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/taskgraph.optimize.rst.
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/taskgraph.test.rst.
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/taskgraph.transforms.rst.
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/taskgraph.transforms.job.rst.
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/taskgraph.util.rst.
Creating file /Users/dale/src/gecko/objdir/firefox-opt/docs/html/_staging/python/marionette_driver.rst.
WARNING: The config value `js_source_path' has type `list', defaults to `str'.
building [mo]: targets for 0 po files that are out of date
Exception: Process executed with non-0 exit code 1: [u'/Users/dale/src/gecko/obj-x86_64-apple-darwin18.6.0/_virtualenvs/init/bin/python', u'/Users/dale/src/gecko/obj-x86_64-apple-darwin18.6.0/config.status']
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/build_commands.py", line 84, in build
mach_context=self._mach_context)
File "/Users/dale/src/gecko/python/mozbuild/mozbuild/controller/building.py", line 1086, in build
self.run_process(args, cwd=self.topobjdir, pass_thru=True)
File "/Users/dale/src/gecko/python/mach/mach/mixin/process.py", line 162, in run_process
raise Exception('Process executed with non-0 exit code %d: %s' % (status, args))
~/src/gecko (1577452)$ ./mach build
/Users/dale/src/gecko/obj-x86_64-apple-darwin18.6.0/backend.RecursiveMakeBackend is out of date with respect to /Users/dale/src/gecko/toolkit/components/search/tests/xpcshell/xpcshell-common.ini
diff --git a/toolkit/components/search/moz.build b/toolkit/components/search/moz.build
index b45f72d106be..c7b60f5fd41a 100644
--- a/toolkit/components/search/moz.build
+++ b/toolkit/components/search/moz.build
@@ -11,6 +11,7 @@ XPCSHELL_TESTS_MANIFESTS += [
'tests/xpcshell/searchconfigs/xpcshell-2.ini',
'tests/xpcshell/searchconfigs/xpcshell-3.ini',
'tests/xpcshell/searchconfigs/xpcshell-4.ini',
+ 'tests/xpcshell/xpcshell-modernconfig.ini',
'tests/xpcshell/xpcshell.ini',
"use strict";
const fs = require("fs");
const glob = require("fast-glob");
const piexif = require("piexifjs");
const TEST_RUN = false;
const DATE_TIME_ORIGINAL = piexif.ExifIFD.DateTimeOriginal;
const META_DATA_FOLDER = "72157710213394221_30bc46431d95_part1";
'duckduckgo',
'yandex-en',
'ebay-gb',
'be-x-old.wikipedia.org',
'be.wikipedia.org',
'ru.wikipedia.org-be',
'tut.by',
'yandex.by',
'yandex-uk',
'meta-ua',
await AddonManager.installBuiltinAddon(path);
let policy = WebExtensionPolicy.getByID(id);