Skip to content

Instantly share code, notes, and snippets.

View fetch_test_info.py
#!/usr/bin/env python
# vim:se sts=4 sw=4 et fenc=utf-8 ft=python:
import json
import sys
import requests
headers = {
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0',
}
View generateQI-strings.jsm.js
"use strict";
var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
const { ProcessorBase } = ChromeUtils.import("resource://rewrites/Processor.jsm");
const { Replacer } = ChromeUtils.import("resource://rewrites/Replacer.jsm");
const { Parser, NodeWalker } = ChromeUtils.import("resource://rewrites/Parser.jsm");
var EXPORTED_SYMBOLS = ["Processor"];
View fission.py
#!/usr/bin/env python
# vim:se sts=4 sw=4 et fenc=utf-8 ft=python:
import os.path
import pickle
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
View annotate.sh
#!/bin/sh
while read test_name
do
dir=${test_name%/*}
test=${test_name##*/}
for f in ${dir}/*.ini
do
awk <$f "//; \$1 == \"[${test}]\" { print \"fail-if = fission\" }" |
View annotate_crashes.sh
#!/bin/sh
while read line
do
set -- $line
pattern="fission"
if [ $1 = D: ]
then pattern="fission && debug"
fi
View check-push.py
#!/usr/bin/env python
# vim:se sts=4 sw=4 et fenc=utf-8 ft=python:
import json
import os
import re
import sys
import urllib.parse
from urllib.parse import parse_qs, urlparse
import requests
View contenttask-spawn.jsm.js
"use strict";
var {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
const nsFile = Components.Constructor("@mozilla.org/file/local;1", "nsIFile", "initWithPath");
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { ProcessorBase } = ChromeUtils.import("resource://rewrites/Processor.jsm");
const { Replacer } = ChromeUtils.import("resource://rewrites/Replacer.jsm");
View check_logs.py
#!/usr/bin/env python
# vim:se sts=4 sw=4 et fenc=utf-8 ft=python:
import json
import re
import sys
class Test(object):
def __init__(self, name, is_debug):
View stdin
12:26:36
<agi> copying from #fission:
12:26:36
<agi> Hi Everyone! I have a question about Actors, hopefully this is the right place.
12:26:36
<agi> Background: I'm on the GeckoView team and I'm looking into moving our modules to Actors.
12:26:36
<agi> Question: In some of our modules we need to do some initialization work, in particular we need to set some properties on docShell at startup, e.g. webBrowserChrome here: https://searchfox.org/mozilla-central/rev/38c88cbf4be87dfa0636d15a5d3599a8ea0d1a72/mobile/android/chrome/geckoview/GeckoViewNavigationChild.js#33-36 . Where would initialization code that
12:26:36
<agi> uses docShell go in an Actor? From what I can see on Desktop this property is set on a script that's loaded using loadFrameScript, but my understanding is that loadFrameScript is going away, correct?
View localized.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script src="localized.js"></script>
</head>
<body>
</body>
</html>
You can’t perform that action at this time.