Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox Webdriver: web extension fails to install #31326

Open
AtofStryker opened this issue Mar 19, 2025 · 4 comments
Open

Firefox Webdriver: web extension fails to install #31326

AtofStryker opened this issue Mar 19, 2025 · 4 comments
Labels
browser: firefox type: unexpected behavior User expected result, but got another

Comments

@AtofStryker
Copy link
Contributor

Current behavior

It looks like in certain cases the Cypress Web Extension fails to install through webdriver. A more thorough explanation is provided here

Desired behavior

The Cypress Extension should be installable in all Cypress supported execution contexts

Test code to reproduce

Needs Reproduction

Cypress Version

14.2.0

Node version

v20.18.1

Operating System

Linux

Debug Logs

Needs debug logs

Other

No response

@AtofStryker
Copy link
Contributor Author

@MikeMcC399 @willmsC here is the related issue to #31316. I am going to close #31316 as the provided solution is a non starter, but I would like to track the findings of the missing web extension install here.

@willmsC are you able to provide the details I asked for in #31316 (comment) on this issue instead?

@jennifer-shehane jennifer-shehane added browser: firefox type: unexpected behavior User expected result, but got another labels Mar 19, 2025
@willmsC
Copy link
Contributor

willmsC commented Mar 20, 2025

Hi,

please find the requested Logs attached.

======================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        14.2.0                                                                         │
  │ Browser:        Custom Firefox 133 (headless)                                                  │
  │ Node Version:   v22.14.0 (/Users/cwillms/.nvm/versions/node/v22.14.0/bin/node)                 │
  │ Specs:          20 found (1-getting-started/todo.cy.js, 2-advanced-examples/actions.cy.js, 2-a │
  │                 dvanced-examples/aliasing.cy.js, 2-advanced-examples/assertions.cy.js, 2-advan │
  │                 ced-examples/connectors.cy.js, 2-advanced-examples/cookies.cy.js, 2-advanced-e │
  │                 xamples/cypress_api.cy....)                                                    │
  │ Searched:       cypress/e2e/**/*.cy.{js,jsx,ts,tsx}                                            │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  1-getting-started/todo.cy.js                                                   (1 of 20)
Since Firefox 129, Chrome DevTools Protocol (CDP) has been deprecated in Firefox. In Firefox 135 and above, Cypress defaults to automating the Firefox browser with WebDriver BiDi. Cypress will no longer support CDP within Firefox in the future and is planned for removal in Cypress 15.
2025-03-20T08:49:42.927Z INFO webdriver: Initiate new session using the WebDriver protocol
2025-03-20T08:49:43.089Z INFO geckodriver: Starting Geckodriver at /var/folders/mv/68wjjsd501z1ts_c6cr8w6qh0000gn/T/geckodriver with params: --host=127.0.0.1 --marionette-host=127.0.0.1 --marionette-port=61592 --websocket-port=61593 --profile-root=/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654 --jsdebugger --log=debug --log-no-truncate --port=61598 --allow-hosts=localhost
2025-03-20T08:49:43.093Z INFO geckodriver: 1742460583092	geckodriver	INFO	Listening on 127.0.0.1:61598
2025-03-20T08:49:43.094Z INFO @wdio/utils: Started GeckoDriver in 14ms on port 61598
2025-03-20T08:49:43.111Z INFO webdriver: [POST] http://localhost:61598/session
2025-03-20T08:49:43.111Z INFO webdriver: DATA {
  capabilities: {
    alwaysMatch: {
      browserName: 'firefox',
      acceptInsecureCerts: true,
      webSocketUrl: true,
      'moz:firefoxOptions': [Object],
      'moz:debuggerAddress': true,
      'wdio:geckodriverOptions': [Object],
      unhandledPromptBehavior: 'ignore'
    },
    firstMatch: []
  }
}
2025-03-20T08:49:43.163Z INFO geckodriver: 1742460583122	webdriver::server	DEBUG	-> POST /session {"capabilities":{"alwaysMatch":{"browserName":"firefox","acceptInsecureCerts":true,"webSocketUrl":true,"moz:firefoxOptions":{"binary":"/Users/cwillms/Projects/../custom-ff","profile":"...","args":["-new-instance","-start-debugger-server","-no-remote","-headless"],"prefs":{""}},"jsdebugger":true,"log":"debug","logNoTruncate":true},"unhandledPromptBehavior":"ignore"},"firstMatch":[]}}
2025-03-20T08:49:43.165Z INFO geckodriver: 1742460583164	geckodriver::capabilities	DEBUG	Trying to read firefox version from ini files
2025-03-20T08:49:43.165Z INFO geckodriver: 1742460583164	geckodriver::capabilities	DEBUG	Trying to read firefox version from binary
2025-03-20T08:49:43.170Z INFO geckodriver: 1742460583170	geckodriver::capabilities	DEBUG	Found version 133.0
2025-03-20T08:49:43.170Z INFO geckodriver: 1742460583170	geckodriver::capabilities	DEBUG	Creating profile directory tree /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/chrome/
2025-03-20T08:49:43.170Z INFO geckodriver: 1742460583170	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/chrome/userChrome.css
2025-03-20T08:49:43.170Z INFO geckodriver: 1742460583170	geckodriver::capabilities	DEBUG	Creating profile directory tree /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressCache/
2025-03-20T08:49:43.171Z INFO geckodriver: 1742460583170	geckodriver::capabilities	DEBUG	Creating profile directory tree /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/
2025-03-20T08:49:43.171Z INFO geckodriver: 1742460583170	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/background.js
2025-03-20T08:49:43.179Z INFO geckodriver: 1742460583179	geckodriver::capabilities	DEBUG	Creating profile directory tree /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/icons/
2025-03-20T08:49:43.179Z INFO geckodriver: 1742460583179	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/icons/icon_128x128.png
2025-03-20T08:49:43.179Z INFO geckodriver: 1742460583179	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/icons/icon_16x16.png
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583179	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/icons/icon_19x19.png
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/icons/icon_38x38.png
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/icons/icon_48x48.png
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Creating profile directory tree /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/logos/
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/logos/cypress-bw.png
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/manifest.json
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/newtab.css
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/newtab.html
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/popup.css
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/CypressExtension/popup.html
2025-03-20T08:49:43.180Z INFO geckodriver: 1742460583180	geckodriver::capabilities	DEBUG	Extracting profile to /Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W/xulstore.json
2025-03-20T08:49:43.184Z INFO geckodriver: 1742460583184	mozrunner::runner	INFO	Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRASHREPORTER_SHUTDOWN="1" "/Users/cwillms/Projects/../custom-ff" "--marionette" "--jsdebugger" "-new-instance" "-start-debugger-server" "-no-remote" "-headless" "--remote-debugging-port" "61593" "--remote-allow-hosts" "localhost" "-foreground" "-profile" "/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/rust_mozprofileeXlB5W"
2025-03-20T08:49:43.185Z INFO geckodriver: 1742460583185	geckodriver::marionette	DEBUG	Waiting 60s to connect to browser on 127.0.0.1
2025-03-20T08:49:43.189Z INFO geckodriver: Duration custom-ff:  -1ns
2025-03-20T08:50:04.084Z INFO geckodriver: Sending Heartbeat
2025-03-20T08:50:06.358Z INFO geckodriver: Heartbeat sent succesfully ... 200 OK In pipeIn pipe1742460606358	geckodriver::marionette	DEBUG	Connection to Marionette established on 127.0.0.1:61592.
2025-03-20T08:50:06.392Z INFO geckodriver: 1742460606392	webdriver::server	DEBUG	<- 200 OK {"value":{"sessionId":"51ab642c-5b92-46a2-bea4-3032fedad3d5","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"133.0","moz:accessibilityChecks":false,"moz:buildID":"20241121140525","moz:debuggerAddress":"127.0.0.1:61593","moz:geckodriverVersion":"0.36.0","moz:headless":false,"moz:platformVersion":"10.0","moz:processID":9260,"moz:profile":"C:\\Users\\webmate\\AppData\\Local\\Temp\\ab5ruuwk.ek1-firefoxprofile","moz:shutdownTimeout":60000,"moz:webdriverClick":true,"moz:windowless":false,"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"ignore","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0","wdio:geckodriverOptions":{"host":"127.0.0.1","jsdebugger":true,"log":"debug","logNoTruncate":true,"marionetteHost":"127.0.0.1","marionettePort":61592,"profileRoot":"/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654","spawnOpts":{"env":{"CHEF_COOKBOOK_PATH":"/Users/cwillms/Projects/chef-repo/cookbooks","CHEF_REPO_PATH":"/Users/cwillms/Projects/chef-repo","COLOR":"0","COLORFGBG":"7;0","COLORTERM":"truecolor","COMMAND_MODE":"unix2003","CYPRESS":"true","CYPRESS_CONNECT_RETRY_THRESHOLD":"128","CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT":"120000","CYPRESS_INTERNAL_ENV":"production","DEBUG":"cypress:server:browsers:firefox,cypress-verbose:server:browsers:firefox,cypress-verbose:server:browsers:webdriver,cypress-verbose:server:browsers:geckodriver","DEBUG_COLORS":"0","EDITOR":"vi","FORCE_COLOR":"0","FORCE_STDERR_TTY":"1","FORCE_STDIN_TTY":"1","FORCE_STDOUT_TTY":"0","HOME":"/Users/cwillms","HOMEBREW_CELLAR":"/opt/homebrew/Cellar","HOMEBREW_PREFIX":"/opt/homebrew","HOMEBREW_REPOSITORY":"/opt/homebrew","INFOPATH":"/opt/homebrew/share/info:","INIT_CWD":"/Users/cwillms/Projects/custom-ff","ITERM_PROFILE":"Default","ITERM_SESSION_ID":"w0t0p3:972876E3-D331-460A-B370-F46F3FDA2AF2","JAVA_HOME":"/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home","KUBECONFIG":"/Users/cwillms/.kube/config-dev2","KUBE_EDITOR":"nano","LANG":"en_US.UTF-8","LC_TERMINAL":"iTerm2","LC_TERMINAL_VERSION":"3.5.11","LESS":"-R","LOGNAME":"cwillms","LSCOLORS":"Gxfxcxdxbxegedabagacad","LaunchInstanceID":"F2EEC5C1-AB57-42CC-9887-555013EF7059","MOZ_HEADLESS_HEIGHT":"720","MOZ_HEADLESS_WIDTH":"1280","MOZ_REMOTE_SETTINGS_DEVTOOLS":"1","NODE":"/Users/cwillms/.nvm/versions/node/v22.14.0/bin/node","NODE_TLS_REJECT_UNAUTHORIZED":"0","NVM_BIN":"/Users/cwillms/.nvm/versions/node/v22.14.0/bin","NVM_CD_FLAGS":"-q","NVM_DIR":"/Users/cwillms/.nvm","NVM_INC":"/Users/cwillms/.nvm/versions/node/v22.14.0/include/node","OP_SESSION_LAHFXYK7EJGYXIDNHIDGU775YM":"AXRaAR0NkprkiMmmtiwd6zjLKFVc8CS4l57yqwDWld0","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","P9K_SSH":"0","P9K_TTY":"old","PAGER":"less","PATH":"/Users/cwillms/Projects/node_modules/.bin:/Users/cwillms/Projects/custom-ff/node_modules/.bin:/Users/cwillms/Projects/node_modules/.bin:/Users/cwillms/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/Users/cwillms/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/Users/cwillms/.nvm/versions/node/v22.14.0/bin:/opt/homebrew/lib/ruby/gems/2.7.0/bin/:/opt/homebrew/opt/[email protected]/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/cwillms/.local/bin:/Users/cwillms/.orbstack/bin:/Users/cwillms/.local/bin","PROJECT_BASE_DIR":"/Users/cwillms/Library/Caches/Cypress/14.2.0/Cypress.app/Contents/Resources/app","PWD":"/Users/cwillms/projects/custom-ff","SECURITYSESSIONID":"186ad","SELENIUM_REMOTE_CAPABILITIES":"{ \"browserName\": \"chrome\", \"platformName\": \"WINDOWS_11_64\", \"browserVersion\": \"125\", \"wm:apikey\": \"SBU-kj7aDIQf7BZUlL4E3X1fMvrWpU3Puo763pFJa0w=\", \"wm:email\": \"[email protected]\", \"wm:project\": \"fcd08cca-3cd5-4ecd-a28e-eb8ec70060b9\"}","SELENIUM_REMOTE_URL":"https://selenium-releasecandidate.apps.dev.okd.testfabrik.intern/wd/hub","SHELL":"/bin/zsh","SHLVL":"2","SSH_AUTH_SOCK":"/private/tmp/com.apple.launchd.V8Ketemk7N/Listeners","TERM":"xterm-256color","TERMINFO_DIRS":"/Applications/iTerm.app/Contents/Resources/terminfo:/usr/share/terminfo","TERM_FEATURES":"T3LrMSc7UUw9Ts3BFGsSyHNoSxF","TERM_PROGRAM":"iTerm.app","TERM_PROGRAM_VERSION":"3.5.11","TERM_SESSION_ID":"w0t0p3:972876E3-D331-460A-B370-F46F3FDA2AF2","TF_TC_LABEL_NAME":"only-local-dev-cw","TF_TC_OPERATOR_CONFIG_NAME":"webmate-tc-operator-local","TF_TC_OPERATOR_CONFIG_NAMESPACE":"webmate-operator","TF_TC_OPERATOR_MODE":"development","TF_TC_OPERATOR_VERSION":"2.8.6","TMPDIR":"/var/folders/mv/68wjjsd501z1ts_c6cr8w6qh0000gn/T/","USER":"cwillms","UV_THREADPOOL_SIZE":"128","XPC_FLAGS":"0x0","XPC_SERVICE_NAME":"0","ZSH":"/Users/cwillms/.oh-my-zsh","_":"/Users/cwillms/Projects/node_modules/.bin/cypress","_P9K_TTY":"/dev/ttys006","__CFBundleIdentifier":"com.googlecode.iterm2","__CF_USER_TEXT_ENCODING":"0x1F5:0x0:0x0","npm_command":"exec","npm_config_cache":"/Users/cwillms/.npm","npm_config_global_prefix":"/Users/cwillms/.nvm/versions/node/v22.14.0","npm_config_globalconfig":"/Users/cwillms/.nvm/versions/node/v22.14.0/etc/npmrc","npm_config_init_module":"/Users/cwillms/.npm-init.js","npm_config_local_prefix":"/Users/cwillms/Projects","npm_config_node_gyp":"/Users/cwillms/.nvm/versions/node/v22.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js","npm_config_noproxy":"","npm_config_npm_version":"10.9.2","npm_config_prefix":"/Users/cwillms/.nvm/versions/node/v22.14.0","npm_config_strict_ssl":"","npm_config_user_agent":"npm/10.9.2 node/v22.14.0 darwin arm64 workspaces/false","npm_config_userconfig":"/Users/cwillms/.npmrc","npm_execpath":"/Users/cwillms/.nvm/versions/node/v22.14.0/lib/node_modules/npm/bin/npm-cli.js","npm_lifecycle_event":"npx","npm_lifecycle_script":"cypress","npm_node_execpath":"/Users/cwillms/.nvm/versions/node/v22.14.0/bin/node","npm_package_json":"/Users/cwillms/Projects/custom-ff/package.json"},"stdio":["ignore","pipe","pipe"]},"websocketPort":61593}}}}
2025-03-20T08:50:06.396Z INFO webdriver: COMMAND installAddOn("/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension", true)
2025-03-20T08:50:06.396Z INFO webdriver: [POST] http://localhost:61598/session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install
2025-03-20T08:50:06.396Z INFO webdriver: DATA {
  path: '/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension',
  temporary: true
}
2025-03-20T08:50:06.400Z INFO geckodriver: 1742460606400	webdriver::server	DEBUG	-> POST /session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install {"path":"/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension","temporary":true}
2025-03-20T08:50:06.425Z INFO geckodriver: 1742460606425	webdriver::server	DEBUG	<- 500 Internal Server Error {"value":{"error":"unknown error","message":"Expected absolute path: [Exception... \"Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]\"  nsresult: \"0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)\"  location: \"JS frame :: chrome://remote/content/marionette/addon.sys.mjs :: install :: line 72\"  data: no]","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5\nUnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:832:5\ninstall@chrome://remote/content/marionette/addon.sys.mjs:74:13\nGeckoDriver.prototype.installAddon@chrome://remote/content/marionette/driver.sys.mjs:3096:21\ndespatch@chrome://remote/content/marionette/server.sys.mjs:318:40\nexecute@chrome://remote/content/marionette/server.sys.mjs:289:16\nonPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20\nonPacket@chrome://remote/content/marionette/server.sys.mjs:263:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20\n"}}
2025-03-20T08:50:06.426Z INFO webdriver: Retrying 1/3
2025-03-20T08:50:06.426Z INFO webdriver: [POST] http://localhost:61598/session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install
2025-03-20T08:50:06.426Z INFO webdriver: DATA {
  path: '/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension',
  temporary: true
}
2025-03-20T08:50:06.427Z INFO geckodriver: 1742460606427	webdriver::server	DEBUG	-> POST /session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install {"path":"/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension","temporary":true}
2025-03-20T08:50:06.452Z INFO geckodriver: 1742460606451	webdriver::server	DEBUG	<- 500 Internal Server Error {"value":{"error":"unknown error","message":"Expected absolute path: [Exception... \"Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]\"  nsresult: \"0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)\"  location: \"JS frame :: chrome://remote/content/marionette/addon.sys.mjs :: install :: line 72\"  data: no]","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5\nUnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:832:5\ninstall@chrome://remote/content/marionette/addon.sys.mjs:74:13\nGeckoDriver.prototype.installAddon@chrome://remote/content/marionette/driver.sys.mjs:3096:21\ndespatch@chrome://remote/content/marionette/server.sys.mjs:318:40\nexecute@chrome://remote/content/marionette/server.sys.mjs:289:16\nonPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20\nonPacket@chrome://remote/content/marionette/server.sys.mjs:263:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20\n"}}
2025-03-20T08:50:06.607Z INFO geckodriver: In pipeIn pipeIn pipeIn pipein close
2025-03-20T08:50:06.958Z INFO webdriver: Retrying 2/3
2025-03-20T08:50:06.958Z INFO webdriver: [POST] http://localhost:61598/session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install
2025-03-20T08:50:06.958Z INFO webdriver: DATA {
  path: '/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension',
  temporary: true
}
2025-03-20T08:50:06.959Z INFO geckodriver: In pipeIn pipeIn pipeIn pipe1742460606959	webdriver::server	DEBUG	-> POST /session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install {"path":"/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension","temporary":true}
2025-03-20T08:50:06.994Z INFO geckodriver: 1742460606990	webdriver::server	DEBUG	<- 500 Internal Server Error {"value":{"error":"unknown error","message":"Expected absolute path: [Exception... \"Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]\"  nsresult: \"0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)\"  location: \"JS frame :: chrome://remote/content/marionette/addon.sys.mjs :: install :: line 72\"  data: no]","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5\nUnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:832:5\ninstall@chrome://remote/content/marionette/addon.sys.mjs:74:13\nGeckoDriver.prototype.installAddon@chrome://remote/content/marionette/driver.sys.mjs:3096:21\ndespatch@chrome://remote/content/marionette/server.sys.mjs:318:40\nexecute@chrome://remote/content/marionette/server.sys.mjs:289:16\nonPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20\nonPacket@chrome://remote/content/marionette/server.sys.mjs:263:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20\n"}}
2025-03-20T08:50:08.000Z INFO webdriver: Retrying 3/3
2025-03-20T08:50:08.000Z INFO webdriver: [POST] http://localhost:61598/session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install
2025-03-20T08:50:08.000Z INFO webdriver: DATA {
  path: '/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension',
  temporary: true
}
2025-03-20T08:50:08.002Z INFO geckodriver: 1742460608002	webdriver::server	DEBUG	-> POST /session/51ab642c-5b92-46a2-bea4-3032fedad3d5/moz/addon/install {"path":"/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension","temporary":true}
2025-03-20T08:50:08.031Z INFO geckodriver: 1742460608031	webdriver::server	DEBUG	<- 500 Internal Server Error {"value":{"error":"unknown error","message":"Expected absolute path: [Exception... \"Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]\"  nsresult: \"0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)\"  location: \"JS frame :: chrome://remote/content/marionette/addon.sys.mjs :: install :: line 72\"  data: no]","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5\nUnknownError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:832:5\ninstall@chrome://remote/content/marionette/addon.sys.mjs:74:13\nGeckoDriver.prototype.installAddon@chrome://remote/content/marionette/driver.sys.mjs:3096:21\ndespatch@chrome://remote/content/marionette/server.sys.mjs:318:40\nexecute@chrome://remote/content/marionette/server.sys.mjs:289:16\nonPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20\nonPacket@chrome://remote/content/marionette/server.sys.mjs:263:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20\n"}}
Cypress failed to make a connection to Firefox.

This usually indicates there was a problem opening the Firefox browser.

unknown error: WebDriverError: Expected absolute path: [Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: chrome://remote/content/marionette/addon.sys.mjs :: install :: line 72"  data: no] when running "moz/addon/install" with method "POST" and args "{"path":"/Users/cwillms/Library/Application Support/Cypress/cy/production/browsers/firefox-stable/run-84654/CypressExtension","temporary":true}"
    at FetchRequest._request (file:///Users/cwillms/Library/Caches/Cypress/14.2.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/webdriver/build/node.js:1700:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async <embedded>:2770:14517
    at async Promise.all (index 0)
    at async Object.Y (<embedded>:2770:14409)
    at async Object.open (<embedded>:2770:30476)
    at async v.relaunchBrowser (<embedded>:2879:38794)

I took the liberty to cleanup the profile and prefs in the session Json to make the log more readable.

I also want to apologize for not being able to share more details about our test environment setup. However, if needed, I’m happy to check internally to see what additional information I can provide.

I could also imagine that it would help with my specific problem if one could set the path to the extension via environment. See also my last comment in #31316

@MikeMcC399
Copy link
Contributor

@willmsC

This may not make any difference for troubleshooting, however Cypress officially supports only the latest 3 browser versions, which for Firefox would currently be

134, 135 and 136

See https://docs.cypress.io/app/references/migration-guide#Updated-Browser-Support

@AtofStryker
Copy link
Contributor Author

@willmsC do you have the cypress firefox logs as well printed from DEBUG=cypress:server:browsers:firefox,cypress-verbose:server:browsers:firefox? I'm curious what install path we are giving the extension. Are you unable to provide that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser: firefox type: unexpected behavior User expected result, but got another
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants