adb shell
stop b2g
cd /data/b2g/mozilla/*.default/
echo 'user_pref("devtools.debugger.prompt-connection", false);' >> prefs.js
start b2g
#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; |
#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()); | |
} |
LOAD_NORMAL: 1 | |
LOAD_NORMAL_REPLACE: 800001 | |
LOAD_NORMAL_EXTERNAL: 10000001 | |
LOAD_HISTORY: 4 | |
LOAD_NORMAL_BYPASS_CACHE: 1000001 | |
LOAD_NORMAL_BYPASS_PROXY: 2000001 | |
LOAD_NORMAL_BYPASS_PROXY_AND_CACHE: 3000001 | |
LOAD_NORMAL_ALLOW_MIXED_CONTENT: 21000001 | |
LOAD_RELOAD_NORMAL: 2 | |
LOAD_RELOAD_BYPASS_CACHE: 1000002 |
Version: 29-Feb-2012
Author: Julian Viereck <jviereck (dot) dev (at) googlemail (dot) com>
tl;dr: Printing on the web is very limited. There is CSS3 Paged Media "Last Call" spec, that improves things, but has not been adopted by browsers yet. How about creating a new "WebPrintAPI" that does not use the DOM but is more like a simple canvas API? Would such a simple API be helpful for your printing needs on the web, or is it just suitable for very special use cases like PDF.JS?
This document is intended to sum up the current state of printing using the open web platform. It should serve as a foundation for discussion on how to get proper printing support added to the PDF.JS project (adding printing support is tracked here).
data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIGMPZ3YAAACcAAACVk9TLzJD0CsGAAAC9AAAAGBjbWFw4ObhHQAAA1QAAABCaGVhZKsnT1UAAAOYAAAANmhoZWEC/wHkAAAD0AAAACRobXR4AAAAAAAAA/QAAAAQbWF4cAAEUAAAAAQEAAAABm5hbWXnhlCzAAAEDAAAAoJwb3N0AAMAAAAABpAAAAAgAQAEAgABAQEjTU1YUURRK1VuaXZlcnNhbFN0ZC1OZXdzd2l0aENvbW1QaQABAQE3+B0B+BcEhPt3+nH5kAUdAAACKA8dAAABnRH4HgwV+Bv4HIsMHu8MIh0AAAIvDCQdAAACUQwlAAUCAAEABgAOAP8BDAEnQWRvYmVJZGVudGl0eUNvcHlyaWdodCAxOTg4LCAxOTk1LCAyMDAyICwgMjAwM0Fkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiBBbGwgUmlnaHRzIFJlc2VydmVkLiBVbml2ZXJzYWwgaXMgYSB0cmFkZW1hcmsgb2YgSGVpZGVsYmVyZ2VyIERydWNrbWFzY2hpbmVuIEFHLCBleGNsdXNpdmVseSBsaWNlbnNlZCB0aHJvdWdoIExpbm90eXBlIExpYnJhcnkgR21iSCwgYW5kIG1heSBiZSByZWdpc3RlcmVkIGluIGNlcnRhaW4ganVyaXNkaWN0aW9ucy4vRlNUeXBlIDQgZGVmVW5pdmVyc2FsU3RkLU5ld3N3aXRoQ29tbVBpAAAABAEBTlFqhPiIi7347L0Bi734JL0DiwT4iPlQ/IgG9477xRX7PveTBffoBvsg+8AV9z73kwX8kgf8Bl4V9z73k/c++5MF/Ab4vxX3PvuT+z77kwUO96wO+nz7cvpkAZf6ZAP6cPeeFf5k+HwF/mQHDvp8+2j6ZAGX+mQD+nD7aBX8fPpk/Hz+ZAUOAAABAGEAYwABAQEQHQAAAA4dAAACQxL4Hwwmi4v5iYsG+3eLB7sKuw |
[ | |
{ | |
"browser": "firefox", | |
"page": 1, | |
"pdf": "tracemonkey-eq", | |
"round": 0, | |
"stats": [ | |
{ | |
"end": 1331675927704, | |
"name": "Page Request", |