adb shell
stop b2g
cd /data/b2g/mozilla/*.default/
echo 'user_pref("devtools.debugger.prompt-connection", false);' >> prefs.js
start b2g
#! /usr/bin/env python | |
"""\ | |
%prog [options] <last pull request number> | |
Helper script to generate release notes from github pull request titles. | |
""" | |
import json | |
import urllib2 |
find . -name "*.pdf" -exec sh -c "pdftk {} output - uncompress | grep -l 'searchString' --quiet && echo {}" \; |
::MessageBox( NULL, L"Attach debugger now", L"ATTACH", MB_OK ); |
#!/bin/sh | |
set -e | |
if [ "$#" -ne 4 ]; then | |
echo "Usage: $0 1_NAME 2_MESSAGE 3_BASELINE 4_CHERRY-PICK" >&2 | |
echo "Example: $0 annot-ap-beta \"Bug 890259 - Use text widget annotation appearance stream if it is available.\" 4e83123 feafb39" >&2 | |
echo "Run in your mozilla-<branch> directory." >&2 | |
exit 1 | |
fi | |
read -p "Did you 1) pop all hg patches, 2) update mozilla-<version>, 3) make sure pdf.js is clean?[y\n] " -n 1 |
Cc["@mozilla.org/appshell/appShellService;1"].getService(Ci.nsIAppShellService).hiddenDOMWindow |
#include <CoreFoundation/CoreFoundation.h> | |
#define IDOK 1 | |
#define IDCANCEL 2 | |
int MessageBox( char* header, char* message, unsigned long message_type ) | |
{ | |
//convert the strings from char* to CFStringRef | |
CFStringRef header_ref = CFStringCreateWithCString( NULL, header, strlen(header) ); | |
CFStringRef message_ref = CFStringCreateWithCString( NULL, message, strlen(message) ); | |
adb shell
stop b2g
cd /data/b2g/mozilla/*.default/
echo 'user_pref("devtools.debugger.prompt-connection", false);' >> prefs.js
start b2g
git checkout <BETA_VERSION>
node make dist
to generate the zip/** | |
* Searches the functions defined in the `fns` param and replaces any arguments | |
* that have the name 'callback' or 'cb' with a wrapped callback that will | |
* record how long it took for the callback to be invoked and how many times | |
* it was called. To view the information recorded call window.timeDump`name`(); | |
* | |
* | |
* @param {string} name Unique name for the stats. | |
* @param {Object} fns All the functions that will have callbacks wrapped. | |
* @return {Object} An object with the same keys as the `fns` object, but with |
var frames = $.ctx.frames; | |
var out = ""; | |
for (var i = 0; i < frames.length; i++) { | |
if (frames[i].methodInfo) { | |
out += frames[i].methodInfo.implKey + "\n"; | |
} else { | |
out += "marker\n"; | |
} | |
} | |
out; |