Coder Social home page Coder Social logo

gecko-dev's Introduction

This branch contains modifications to the mozilla:release branch for compiling the Record Replay gecko based browser.

Getting started:

macOS

  1. Make sure that you are using Python v2.7
  2. cp mozconfig.macsample mozconfig
  3. Download MacOSX11.1.sdk.tar.xz from https://github.com/phracker/MacOSX-SDKs/releases
  4. untar MacOSX11.1.sdk.tar.xz in the repo root to create a MacOSX11.1.sdk directory
  5. clone the latest mozilla-central and run ./mach bootstrap within it and select (2) Firefox Desktop. Come back to this repo.
  6. run node build
    • On Apple Silicon, you many need to run RUSTC_BOOTSTRAP=qcms node build to build successfully.
  7. run ./mach run

Linux

  1. cp mozconfig.linuxsample mozconfig
  2. run ./mach bootstrap and select (2) Firefox Desktop
  3. run node build
  4. run ./mach run

Troubleshooting Tips

  • If you change your PATH to point to a different version of say Python or Rust you need to rerun ./mach bootstrap to get the build system to pick up the change.

Merging from upstream

  1. Checkout the release branch, pull from upstream release branch:
git checkout release
git pull https://github.com/mozilla/gecko-dev.git release
  1. Switch to a new branch, merge from the release branch.
git checkout webreplay-release
git checkout -b replay-merge
git merge release
  1. Fix merge conflicts.
  2. Fix build breaks.
  3. Make sure the output binary is replay and not firefox.
  4. Get e2e tests etc. to pass.
  5. At this point it is reasonably safe to merge into the webreplay-release branch.
git checkout webreplay-release
git merge replay-merge
git push
  1. Update User Agent version reported by CurrentFirefoxVersion() in toolkit/recordreplay/ProcessRecordReplay.cpp
  2. Make sure automatic updates work with the new browser. Run the build/test action on the merge branch, delete the noupdate file for the build in S3, then launch the browser, open "About Replay" and see if it updates.

Tips for debugging:

  • Look at the update server logs to make sure requests are being processed correctly.
  • Set the app.update.log browser config when running, and then check console output.
  • If there is a line like *** AUS:SVC readStatusFile - status: failed: 23, path: /path/to/update.status, this is produced by the C++ updater which can be found in UpdateThreadFunc in updater.cpp. Building a local browser with instrumentation is likely needed to investigate.
  1. Run live test harness and make sure crash rate is acceptable.

Miscelleneous

Speeding up oh-my-zsh

git config --add oh-my-zsh.hide-status 1
git config --add oh-my-zsh.hide-dirty 1

gecko-dev's People

Contributors

rvandermeulen avatar bzbarsky avatar ehsan avatar bavariantomcat avatar emilio avatar glandium avatar staktrace avatar kwierso avatar archaeopteryx avatar moz-wptsync-bot avatar jandem avatar bakulf avatar masayuki-nakano avatar nnethercote avatar gijsk avatar bhackett1024 avatar bholley avatar daogottwald avatar philor avatar jfkthame avatar jswalden avatar mattwoodrow avatar dbaron avatar dholbert avatar kmaglione avatar ms2ger avatar jonco3 avatar mstange avatar rocallahan avatar arai-a avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.