anchor.diff:      machine.wait_for_x()
   
       url = "file://${startupHTML}"
  -    machine.succeed(ru(f'ulimit -c unlimited; chromium "{url}" & disown'))
  +    machine.succeed(ru(f'ulimit -c unlimited; "{get_browser_binary()}" "{url}" & disown'))
  +
  +    if get_browser_binary().startswith("google-chrome"):
  +        # Need to click away the first window:
  +        machine.wait_for_text("Make Google Chrome the default browser")
  +        machine.screenshot("google_chrome_default_browser_prompt")
  +        machine.send_key("ret")
  +
       machine.wait_for_text("startup done")
       machine.wait_until_succeeds(
           ru(
  
positive.code: mapAttrs (channel: chromiumPkg: makeTest rec {
    name = "chromium-${channel}";
    meta = {
      maintainers = with maintainers; [ aszlig ];
      # https://github.com/NixOS/hydra/issues/591#issuecomment-435125621
      inherit (chromiumPkg.meta) timeout;
    };
  
negative.code:         return "su - ${user} -c " + shlex.quote(cmd)
  
  
      def get_browser_binary():
          """Returns the name of the browser binary."""
          pname = "${getName chromiumPkg.name}"
          if pname.find("chromium") != -1:
              return "chromium"  # Same name for all channels and ungoogled-chromium
          if pname == "google-chrome":
              return "google-chrome-stable"
          if pname == "google-chrome-dev":
              return "google-chrome-unstable"
          # For google-chrome-beta and as fallback:
          return pname
  
  
      def create_new_win():
          with machine.nested("Creating a new Chromium window"):
              machine.execute(
  