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

Can't run with the profile specified by name when it has a absolute path in profile.ini #1074

Open
PrsPrsBK opened this issue Sep 11, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@PrsPrsBK
Copy link

commented Sep 11, 2017

Is this a feature request or a bug?

Bug.

What is the current behavior?

This does not perform with specified profile. Command uses the temporal profile.

web-ext run --firefox="d:\bin\FirefoxDE\firefox.exe" --firefox-profile="cdrive" --verbose

This case works well.

web-ext run --firefox="d:\bin\FirefoxDE\firefox.exe" --firefox-profile="c:\testprofile" --verbose

The location of my profiles.ini is "C:/Users/username/AppData/Roaming/Mozilla/Firefox/profiles.ini", and profile.ini includes these specification:

[Profile4]
Name=dev-edition-default
IsRelative=1
Path=Profiles/tz62s61v.dev-edition-default

[Profile6]
Name=cdrive
IsRelative=0
Path=C:\testprofile

And as for [Profile4], web-ext can run with the profile with --firefox-profile="dev-edition-default".
But when profile.ini modified to absolute path manually, web-ext can not run with the profile.

What is the expected or desired behavior?

The command reaches to profile by name, or documented as the case needs to be specified by absolute path string.
In my experience, the latter may be enough.

Version information (for bug reports)

  • Firefox version:54.0a2 and 56.0b9
  • Your OS and version:Windows 10
  • Paste the output of these commands:
node --version && npm --version && web-ext --version

v6.11.3
3.10.10
2.0.0

@kumar303

This comment has been minimized.

Copy link
Member

commented Oct 24, 2017

Thanks for the bug.

This does not perform with specified profile. Command uses the temporal profile.
web-ext run --firefox="d:\bin\FirefoxDE\firefox.exe" --firefox-profile="cdrive" --verbose

Can you attach the verbose log for that? This might be Windows related. I'd like to see what error caused it to fall back to a temporary profile.

@PrsPrsBK

This comment has been minimized.

Copy link
Author

commented Oct 25, 2017

Here. web-ext's version has advanced, and thanks, but the same thing happens.

web-ext run --firefox="d:\bin\FirefoxDE\firefox.exe" --firefox-profile="cdrive" --verbose
[src\program.js][debug] Getting version from the git revision
[src\program.js][info] Version: master-134b7951b268af06361d2b4db887c946d228573b
[src\cmd\run.js][info] Running web extension from d:\user_name\code\webextensions-examples\borderify
[src\util\manifest.js][debug] Validating manifest at d:\user_name\code\webextensions-examples\borderify\manifest.json
[src\extension-runners\firefox-desktop.js][debug] Copying Firefox profile from cdrive
[src\firefox\index.js][debug] Assuming cdrive is a named profile
[src\firefox\index.js][debug] Running Firefox with profile at C:\Users\user_name\AppData\Local\Temp\8919d896-108e-42e5-98c0-a775c7c980c3
[src\firefox\index.js][debug] Checking if remote Firefox port 6005 is available
[src\firefox\remote.js][debug] Connecting to Firefox on port 6005
[src\firefox\index.js][debug] Executing Firefox binary: d:\bin\FirefoxDE\firefox.exe
[src\firefox\index.js][debug] Firefox args: -start-debugger-server 6005 -foreground -no-remote -profile C:\Users\user_name\AppData\Local\Temp\8919d896-108e-42e5-98c0-a775c7c980c3
[src\firefox\index.js][info] Use --verbose or open Tools > Web Developer > Browser Console to see logging
[src\firefox\remote.js][debug] Connecting to the remote Firefox debugger
[src\firefox\remote.js][debug] Connecting to Firefox on port 6005
[src\firefox\remote.js][debug] Retrying Firefox (0); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[src\firefox\remote.js][debug] Connecting to Firefox on port 6005
[src\firefox\remote.js][debug] Retrying Firefox (1); connection error: Error: connect ECONNREFUSED 127.0.0.1:6005
[src\firefox\remote.js][debug] Connecting to Firefox on port 6005
[src\firefox\index.js][debug] Firefox stdout: Started debugger server on 6005
[src\firefox\remote.js][debug] Connected to the remote Firefox debugger on port 6005
[src\firefox\index.js][debug] Firefox stderr: JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/security/socket.js, line 781: ReferenceError: reference to undefined property "_handshakeTimeout"
[src\firefox\remote.js][debug] installTemporaryAddon: {"addon":{"id":"620a0a1a673f65cc3d7986fb9768c5e8913ba2b8@temporary-addon","actor":false},"from":"server1.conn0.addonsActor3"}
[src\firefox\remote.js][info] Installed d:\user_name\code\webextensions-examples\borderify as a temporary add-on
[src\cmd\run.js][info] The extension will reload if any source file changes
[src\util\file-filter.js][debug] Resolved path **/*.xpi with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\**\*.xpi
[src\util\file-filter.js][debug] Resolved path **/*.zip with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\**\*.zip
[src\util\file-filter.js][debug] Resolved path **/.* with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\**\.*
[src\util\file-filter.js][debug] Resolved path **/.*/**/* with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\**\.*\**\*
[src\util\file-filter.js][debug] Resolved path **/node_modules with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\**\node_modules
[src\util\file-filter.js][debug] Resolved path **/node_modules/**/* with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\**\node_modules\**\*
[src\util\file-filter.js][debug] Ignoring artifacts directory "d:\user_name\code\webextensions-examples\borderify\web-ext-artifacts" and all its subdirectories
[src\util\file-filter.js][debug] Resolved path d:\user_name\code\webextensions-examples\borderify\web-ext-artifacts with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\web-ext-artifacts
[src\util\file-filter.js][debug] Resolved path d:\user_name\code\webextensions-examples\borderify\web-ext-artifacts\**\* with sourceDir d:\user_name\code\webextensions-examples\borderify to d:\user_name\code\webextensions-examples\borderify\web-ext-artifacts\**\*
[src\watcher.js][debug] Watching for file changes in d:\user_name\code\webextensions-examples\borderify
[src\extension-runners\index.js][info] Press R to reload (and Ctrl-C to quit)
[src\firefox\index.js][debug] Firefox stderr: JavaScript strict warning: chrome://browser/content/tabbrowser.xml, line 662: ReferenceError: reference to undefined property "initialPageLoadedFromURLBar"
[src\firefox\index.js][debug] Firefox stderr: JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/node-properties/node-properties.js, line 134: ReferenceError: reference to undefined property "resume"
[src\firefox\index.js][debug] Firefox stderr: JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/node-properties/node-properties.js, line 124: ReferenceError: reference to undefined property "o"
JavaScript strict warning: resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/node-properties/node-properties.js, line 130: ReferenceError: reference to undefined property "o"
[src\firefox\index.js][debug] Firefox stderr: [GPU 6956] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-aurora-w32-ntly-000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[src\firefox\index.js][debug] Firefox stderr: [Child 7588] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-aurora-w32-ntly-000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[src\firefox\index.js][debug] Firefox stderr: JavaScript strict warning: resource://gre/modules/ProfileAge.jsm, line 205: ReferenceError: reference to undefined property "reset"
[src\firefox\index.js][debug] Firefox stderr: [GPU 6956] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-aurora-w32-ntly-000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[src\firefox\remote.js][debug] Received "end" from Firefox client
[src\firefox\index.js][debug] Firefox stderr: [Child 15804] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-aurora-w32-ntly-000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[src\firefox\index.js][debug] Firefox stderr: ###!!! [Child][MessageChannel::SendAndWait] Error: Channel error: cannot send/recv
[src\firefox\index.js][debug] Firefox closed
@kumar303

This comment has been minimized.

Copy link
Member

commented Oct 30, 2017

Thanks for the verbose log. I guess we don't have enough logging to tell me that it's not using the right profile -- are you sure that the temp profile is the wrong one? What web-ext does is copy the profile into a temp profile. If it's still wrong, it would be a bug with https://github.com/saadtazi/firefox-profile-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.