More details here: https://developer.mozilla.org/en/docs/Simple_Firefox_build
Get Firefox' source code:
git clone https://github.com/mozilla/gecko-dev.git
git checkout fx-team
Install dependencies:
| ({ | |
| baseUrl: 'node_modules/', | |
| name: '../main', | |
| out: 'main-built.js', | |
| optimize: 'none', // uglify doesn't work with ES6 | |
| paths: { | |
| browser: '../src/browser', | |
| browser2: '../src/browser2', | |
| common: '../src/common', | |
| lang: '../src/lang', |
| /* this source code form is subject to the terms of the mozilla public | |
| * license, v. 2.0. if a copy of the mpl was not distributed with this | |
| * file, you can obtain one at http://mozilla.org/mpl/2.0/. */ | |
| define((require, exports, module) => { | |
| 'use strict'; | |
| const {getOrigin} = require('common/url-helper'); |
| { | |
| "navigationStart": 1433916772428, | |
| "unloadEventStart": 1433916773695, | |
| "unloadEventEnd": 1433916773721, | |
| "redirectStart": 0, | |
| "redirectEnd": 0, | |
| "fetchStart": 1433916772429, | |
| "domainLookupStart": 1433916772433, | |
| "domainLookupEnd": 1433916772448, | |
| "connectStart": 1433916772448, |
| { | |
| "navigationStart": 1433916678816, | |
| "unloadEventStart": 1433916678818, | |
| "unloadEventEnd": 1433916678820, | |
| "redirectStart": 0, | |
| "redirectEnd": 0, | |
| "fetchStart": 1433916678816, | |
| "domainLookupStart": 1433916678816, | |
| "domainLookupEnd": 1433916678816, | |
| "connectStart": 1433916678816, |
| diff --git a/dom/browser-element/BrowserElementChildPreload.js b/dom/browser-element/BrowserElementChildPreload.js | |
| index b25240e..bce1bde 100644 | |
| --- a/dom/browser-element/BrowserElementChildPreload.js | |
| +++ b/dom/browser-element/BrowserElementChildPreload.js | |
| @@ -205,6 +205,7 @@ BrowserElementChild.prototype = { | |
| "reload": this._recvReload, | |
| "stop": this._recvStop, | |
| "zoom": this._recvZoom, | |
| + "content-scroll-by": this._recvContentScrollBy, | |
| "unblock-modal-prompt": this._recvStopWaiting, |
| /* This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this | |
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| /** | |
| * layout.css | |
| * | |
| * Layout related rules. | |
| * | |
| */ |
| (function() { | |
| const REPO_URL = "file:///home/paul/github/CSS-Triggers/"; | |
| let tab = gBrowser.selectedTab = gBrowser.addTab(); | |
| let contentWindow = tab.linkedBrowser.contentWindow; | |
| let docshell = contentWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation); | |
| docshell.recordTimelineMarkers = true; | |
| let req = new XMLHttpRequest(); | |
| req.overrideMimeType('text/plain'); | |
| let tests = []; |
| {"align-content-initial":{"paint":false,"layout":false},"align-items-initial":{"paint":true,"layout":true},"align-self-initial":{"paint":true,"layout":true},"backface-visibility-change":{"paint":false,"layout":false},"backface-visibility-initial":{"paint":false,"layout":false},"background-attachment-change":{"paint":true,"layout":false},"background-attachment-initial":{"paint":true,"layout":false},"background-blend-mode-change":{"paint":true,"layout":false},"background-blend-mode-initial":{"paint":true,"layout":false},"background-clip-initial":{"paint":true,"layout":false},"background-color-change":{"paint":true,"layout":false},"background-color-initial":{"paint":true,"layout":false},"background-image-change":{"paint":true,"layout":false},"background-image-initial":{"paint":true,"layout":false},"background-origin-initial":{"paint":true,"layout":false},"background-position-change":{"paint":true,"layout":false},"background-position-initial":{"paint":true,"layout":false},"background-repeat-change":{"paint":true, |
| Cu.import("resource://gre/modules/Task.jsm"); | |
| GetUSS("self").then(s => alert(s +"kB")) | |
| // Works with any PID. "self" is an alias to current process. | |
| function GetUSS(PID) { | |
| const BUF_SIZE = 32 * 1024; | |
| let path = "/proc/" + PID + "/smaps"; | |
| let decoder = new TextDecoder(); |
More details here: https://developer.mozilla.org/en/docs/Simple_Firefox_build
Get Firefox' source code:
git clone https://github.com/mozilla/gecko-dev.git
git checkout fx-team
Install dependencies: