- Update moz central
- Move BETA_VERSION to STABLE_VERSION in make.js
- Use version number from moz central for BETA_VERSION
- Create a PR with above changes
git checkout <BETA_VERSION>
- Run
node make dist
to generate the zip - Create github release 2. add release notes 2. attach zip generated from above
- mark as pre-release
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "nsIConsoleService.h" | |
void someFunction() { | |
uint32_t loadType = 25; | |
nsCOMPtr<nsIConsoleService> consoleService = do_GetService(NS_CONSOLESERVICE_CONTRACTID); | |
if (consoleService) { | |
nsAutoCString message(nsPrintfCString("!!!!!!!!!!!!!!!!!!! LOAD TYPE %X", loadType)); | |
consoleService->LogStringMessage(NS_ConvertUTF8toUTF16(message).get()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
adb shell
stop b2g
cd /data/b2g/mozilla/*.default/
echo 'user_pref("devtools.debugger.prompt-connection", false);' >> prefs.js
start b2g
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cc["@mozilla.org/appshell/appShellService;1"].getService(Ci.nsIAppShellService).hiddenDOMWindow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::MessageBox( NULL, L"Attach debugger now", L"ATTACH", MB_OK ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "*.pdf" -exec sh -c "pdftk {} output - uncompress | grep -l 'searchString' --quiet && echo {}" \; |