Skip to content

Instantly share code, notes, and snippets.

Brian Grinstead bgrins

Block or report user

Report or block bgrins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 25-top-repeated-structures.txt
Last:
8 xul:window
xul:hbox
xul:spacer
xul:resizer
[ '../../gecko/layout/reftests/xul/resizer-bottomstart-rtl.xul',
'../../gecko/layout/reftests/xul/resizer-bottomleft-rtl.xul',
'../../gecko/layout/reftests/xul/resizer-bottomend-rtl.xul',
'../../gecko/layout/reftests/xul/resizer-bottomright-rtl.xul',
View xul-grids-list.txt
XUL grids list:
browser/base/content/pageinfo/pageInfo.xul
browser/base/content/sanitize.xul
browser/components/preferences/languages.xul
browser/components/preferences/connection.xul
browser/components/preferences/sanitize.xul
browser/components/preferences/browserLanguages.xul
browser/components/preferences/fonts.xul
browser/components/preferences/in-content/main.xul
@bgrins
bgrins / chrome-failures.txt
Last active Nov 7, 2018
Created by visiting http://localhost:8000/html/dom/reflection-original.html with the patch in https://phabricator.services.mozilla.com/D3824 applied (and the expected failures in testing/web-platform/meta/html/dom/reflection-obsolete.html.ini commented out). Run `./mach wpt testing/web-platform/tests/html/dom/reflection-obsolete.html`
View chrome-failures.txt
marquee.loop: IDL get with DOM attribute unset (expected 0, got -1)
marquee.loop: setAttribute() to -36 followed by IDL get (expected -36, got -1)
marquee.loop: setAttribute() to 0 followed by IDL get (expected 0, got -1)
marquee.loop: setAttribute() to -2147483648 followed by IDL get (expected -2147483648, got -1)
marquee.loop: setAttribute() to 2147483648 followed by IDL get (expected 0, got -1)
marquee.loop: setAttribute() to -2147483649 followed by IDL get (expected 0, got -1)
marquee.loop: setAttribute() to 4294967295 followed by IDL get (expected 0, got -1)
marquee.loop: setAttribute() to 4294967296 followed by IDL get (expected 0, got -1)
marquee.loop: setAttribute() to "" followed by IDL get (expected 0, got -1)
marquee.loop: setAttribute() to "-0" followed by IDL get (expected 0, got -1)
View symbolicate-and-upload.sh
# https://github.com/mstange/analyze-tryserver-profiles/blob/master/symbolicate_profile.py
python symbolicate_profile.py profile.json
curl 'https://profile-store.appspot.com/compressed-store' --compressed --data-binary @profile.json.sym.gz | awk '{print "Hosted at: https://perf-html.io/public/"$1}'
View walker.js
var anonElements = [];
var walker = Cc["@mozilla.org/inspector/deep-tree-walker;1"].
createInstance(Ci.inIDeepTreeWalker);
walker.showAnonymousContent = true;
walker.showSubDocuments = false;
walker.showDocumentsAsNodes = false;
walker.init(document.documentElement, NodeFilter.SHOW_ELEMENT);
while (walker.nextNode()) {
View _.sh
./mach run --new-tab --url data:text/html, --new-tab --url data:text/html,
View draw-window-during-test.js
var el = window.document.createElementNS("http://www.w3.org/1999/xhtml", "canvas");
el.width = window.innerWidth;
el.height = window.innerHeight;
var ctx = el.getContext("2d");
SpecialPowers.wrap(ctx).drawWindow(window, 0, 0, window.innerWidth, window.innerHeight, "rgba(0,0,0,0)",
ctx.DRAWWINDOW_USE_WIDGET_LAYERS | ctx.DRAWWINDOW_DRAW_VIEW | ctx.DRAWWINDOW_DRAW_CARET);
dump("\n" + el.toDataURL() + "\n");
View xbl-data.js
2292200 lines and 133 unique binding+tagname combos
66 tagnames with xbl bindings attached: [
"arrowscrollbox",
"autorepeatbutton",
"browser",
"button",
"caption",
"checkbox",
"deck",
"description",
@bgrins
bgrins / app.html
Last active Mar 6, 2018
Lazy Custom Element registrations
View app.html
<script src="app.js"></script>
<element-1 />
<element-2 />
You can’t perform that action at this time.