Get source code:
git clone https://github.com/mozilla/gecko-dev.git
Install dependencies:
./mach bootstrap
Create a mozconfig file in the source directory, with the following:
| /* | |
| Expecting: | |
| "http://news.ycombinator.com": | |
| 0: mozbrowserloadstart: {"msg_name":"loadstart"} | |
| 1: mozbrowserloadend: {"backgroundColor":"transparent","msg_name":"loadend"} | |
| 2: mozbrowserloadstart: {"msg_name":"loadstart"} | |
| 3: mozbrowsersecuritychange: {"state":"secure","extendedValidation":false,"trackingContent":false,"mixedContent":false,"msg_name":"securitychange"} | |
| 4: mozbrowserlocationchange: "https://news.ycombinator.com/" |
Get source code:
git clone https://github.com/mozilla/gecko-dev.git
Install dependencies:
./mach bootstrap
Create a mozconfig file in the source directory, with the following:
| diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs | |
| index 1b8b99d..2812a89 100644 | |
| --- a/components/script/dom/document.rs | |
| +++ b/components/script/dom/document.rs | |
| @@ -107,6 +107,7 @@ use style::stylesheets::Stylesheet; | |
| use time; | |
| use url::Url; | |
| use util::str::{DOMString, split_html_space_chars, str_join}; | |
| +use hyper::status::StatusCode; | |
Document moved to: https://github.com/servo/servo/blob/master/HACKING_QUICKSTART.md
| Oct 05 11:51:56 DEBUG:compositing::constellation: constellation got init load URL message | |
| Oct 05 11:51:56 DEBUG:compositing::constellation: constellation got window resize message | |
| Oct 05 11:51:56 DEBUG:compositing::constellation: handle_resized_window_msg: 800×600 800×600 | |
| Oct 05 11:51:56 INFO:style::parser: 51:3 Unsupported property declaration: 'width: fit-content;' | |
| Oct 05 11:51:56 INFO:style::parser: 52:3 Unsupported property declaration: 'height: fit-content;' | |
| Oct 05 11:51:56 INFO:style::parser: 60:1 Invalid rule: 'dialog::backdrop {' | |
| Oct 05 11:51:56 INFO:style::parser: 69:3 Unsupported rule: 'dialog:modal {' | |
| Oct 05 11:51:56 INFO:style::parser: 87:8 Unsupported property declaration: 'display: ruby;' | |
| Oct 05 11:51:56 INFO:style::parser: 88:6 Unsupported property declaration: 'display: ruby-text;' | |
| Oct 05 11:51:56 INFO:style::parser: 100:31 Unsupported property declaration: 'text-decoration: dotted underline;' |
| // Sent when the browser <iframe> starts to load a new page. | |
| // This is usually when the embedder wants to start spinning | |
| // a loading indicator. | |
| "loadstart"; | |
| // Sent when the browser <iframe> has finished loading all its assets, | |
| // or failed to load. | |
| // This is usually when the embedder wants to stop spinning | |
| // a loading indicator. | |
| "loadend"; |
| var app = require('app'); | |
| var dockMenu = [ | |
| { label: 'New Window', click: () => newWindow() }, | |
| { label: 'New Private Window', click: () => newWindow({isPrivate:true}) }, | |
| ]; | |
| app.dock.setMenu(dockMenu); | |
| var BrowserWindow = require('browser-window'); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: 0; | |
| } |
| ERROR:js::rust: Error at http://localhost:6060/dist/browser/index.js:151: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create | |
| Compatible session was not found, loading default | |
| thread 'LayoutTask PipelineId(0)' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:363 | |
| stack backtrace: | |
| 1: 0x1115873b5 - sys::backtrace::write::h2513b694e23623efOvs | |
| 2: 0x11158a9f0 - panicking::on_panic::h399650fb5f386215wWw | |
| 3: 0x1115777f2 - rt::unwind::begin_unwind_inner::h208861166cac0468HEw | |
| 4: 0x111577e6c - rt::unwind::begin_unwind_fmt::h2b843ddd6c3f7d25NDw | |
| 5: 0x11158a3bc - rust_begin_unwind |
| DEBUG:compositing::constellation: constellation got init load URL message | |
| DEBUG:net::resource_task: resource_task: loading url: file:///Users/paul/github/servo/resources/rippy.jpg | |
| DEBUG:compositing::constellation: constellation got window resize message | |
| DEBUG:compositing::constellation: handle_resized_window_msg: 800×600 800×600 | |
| INFO:style::parser: 51:3 Unsupported property declaration: 'width: fit-content;' | |
| INFO:style::parser: 52:3 Unsupported property declaration: 'height: fit-content;' | |
| INFO:style::parser: 60:1 Invalid rule: 'dialog::backdrop {' | |
| INFO:style::parser: 69:3 Unsupported rule: 'dialog:modal {' | |
| INFO:style::parser: 87:8 Unsupported property declaration: 'display: ruby;' | |
| INFO:style::parser: 88:6 Unsupported property declaration: 'display: ruby-text;' |