Skip to content

Cannot start firefox with a profile including large number of tabs #1133

@piroor

Description

@piroor

Is this a feature request or a bug?

Bug, due to a problem of depending library firefox-client. See also the issue reported to the library harthur/firefox-client#15 and a pull request harthur/firefox-client#16

What is the current behavior?

When I try to start Firefox 57 with a session including large number of tabs via the tool, I got "Unexpected packet from actor ..." and Firefox cannot be started. Steps to reproduce:

  1. Install web-ext, like npm install -g web-ext.
  2. Start Firefox 57, set to restore all tabs and windows on the next startup, and shutdown.
  3. Copy the Firefox's profile to another location.
  4. Start Firefox 57 via web-ext, like: web-ext run --firefox="C:\path\to\firefox" --keep-profile-changes --firefox-profile=C:\path\to\profile\with\large-number-tabs\copied\at\step3 --source-dir=C:\path\to\addon\repository

Then Firefox starts but suddenly shutdown. In the console, an error is reported:

WebExtError: Temporary add-on installation is not supported in this version of Firefox (you need Firefox 49 or higher). For older Firefox versions, use --pre-install
    at FirefoxDesktopExtensionRunner._callee6$ (C:\Users\piro\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\src\extension-runners\firefox-desktop.js:288:19)
    at tryCatch (C:\Users\piro\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:65:40)
    at Generator.invoke [as _invoke] (C:\Users\piro\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as throw] (C:\Users\piro\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:117:21)
    at step (C:\Users\piro\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:1)
    at C:\Users\piro\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:30:1
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

What is the expected or desired behavior?

Firefox starts and the specified addon is loaded as a temporary addon.

Version information (for bug reports)

  • Firefox version: Firefox 57
  • Your OS and version: Windows 10 Creators Update
  • Paste the output of these commands:
node --version && npm --version && web-ext --version
v8.9.1
5.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions