Changes between Version 2 and Version 3 of I2P_Browser_develop_n_hacks


Ignore:
Timestamp:
Jun 10, 2019 4:34:16 PM (3 months ago)
Author:
Meeh
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • I2P_Browser_develop_n_hacks

    v2 v3  
    1010== Howto get started with firefox ==
    1111
     12=== Privileged Javascript, wtf? ===
     13
     14The fact is that most of Firefox's source is probably Javascript, without me fact checking now. Yes, Firefox contains quite a lot of C++ and some Rust etc.
     15
     16However the glue to make all those different components together to a usable browser is privileged Javascript. It's about the same as regular, but totally
     17different environment and APIs. You can launch firefox/i2pbrowser with the --jsconsole argument to spawn the browser console at launch. If not, ctrl+shift+J and cmd+shift+J for OSX users.
     18
     19{{{
     20let console = (Cu.import("resource://gre/modules/Console.jsm", {})).console;
     21console.log("Hello from Firefox code");
     22}}}
     23
     24
     25
    1226=== Recommended development preferences ===
    1327
     
    1529
    1630{{{
     31devtools.chrome.enabled = true
     32  - This is quite awesome, enable this and you get a REPL for the high privileged Javascript code that makes firefox.
     33
    1734browser.dom.window.dump.enabled = true
    1835  - Enables the use of the dump() statement to print to the standard console. See window.dump for more info.