mozilla / remote-newtab

Remotely-hosted New Tab Page
https://mozilla.github.io/remote-newtab/src/
Mozilla Public License 2.0
15 stars 7 forks source link

New tab

This is a remote implementation of the "new tab" page for Firefox. It can be run inside the browser, or on its own with a "platform" shim.

Developer Setup

Web assets

git clone https://github.com/mozilla/remote-newtab.git
cd remote-newtab
npm install && npm start

This will start a dev server and build all necessary files in developer mode

Firefox

First, clone the Firefox code currently in development for this repo in at mozilla/newtab-dev.

git clone https://github.com/mozilla/newtab-dev.git

Edit the file at browser/components/newtab/RemoteNewTabLocation.jsm to point to http://localhost:1944:

-const DEFAULT_PAGE_LOCATION = "http://localhost:8000/" +
-                              "v%VERSION%/%CHANNEL%/%LOCALE%/index.html";
+const DEFAULT_PAGE_LOCATION = "http://localhost:1944";

Finally, build and run with mach:

./mach build
./mach run