New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 815060 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

extention is not loadable from the command line

Reported by d...@pinterest.com, Feb 23 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36

Steps to reproduce the problem:
1. /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --load-extension="~/Library/Application\ Support/Google/Chrome/Default/Extensions/cflchafndefoljnhhholeekfpgmbphaf/1.51_0/" --profile-directory="Profile 0" nytimes.com
2. error: Failed to load extension from .
Manifst file is missing or unreadable.

What is the expected behavior?

What went wrong?
I don't know why it tries to locate the extension from '.'. when I go to that extension directory. the msg is gone but a new error msg saying I cant load some js in that extension dir.

WebStore page: 

Did this work before? N/A 

Chrome version: 64.0.3282.167  Channel: n/a
OS Version: OS X 10.13.3
Flash Version:
 
Labels: Needs-Triage-M64

Comment 2 by woxxom@gmail.com, Feb 25 2018

If you use quotes there's no need to escape the space character in the extension path.

Comment 3 by d...@pinterest.com, Feb 26 2018

I don't think that matters as without quote, I got the same error
Cc: sindhu.chelamcherla@chromium.org
Components: Platform>Extensions
Labels: Triaged-ET M-66 FoundIn-66 Target-66
Able to reproduce this issue by following steps in comment#0 on 64.0.3282.167 using Mac 10.13.3. i.e; On pasting /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --load-extension="~/Library/Application\ Support/Google/Chrome/Default/Extensions/cflchafndefoljnhhholeekfpgmbphaf/1.51_0/" --profile-directory="Profile 0" nytimes.com in terminal seeing "Failed to load extension from: . Manifest file is missing or unreadable." error.

This issue is seen from M-60. Hence considering this issue as Non-Regression and marking as Untriaged.

Thanks!
815060.png
538 KB View Download

Comment 5 by d...@pinterest.com, Feb 28 2018

any updates?
Cc: vamshi.kommuri@chromium.org
Status: Untriaged (was: Unconfirmed)
As per comment#4 Changing the status to Untriaged.

Thanks!
Cc: rdevlin....@chromium.org
First sanity check: does the path exist?  i.e., is the manifest located at ~/Library/Application\ Support/Google/Chrome/Default/Extensions/cflchafndefoljnhhholeekfpgmbphaf/1.51_0/manifest.json?

Comment 8 by d...@pinterest.com, Mar 5 2018

@rdevlin. yes. it exists. The msg i got says it looks at `.` instead of this path
Labels: OS-Linux OS-Windows
Owner: dbertoni@chromium.org
Status: Assigned (was: Untriaged)
It looks like the problem is that the load-extension commandline flag doesn't accept ~/ paths.  Absolute paths (/path/to/extension) work fine, and relative paths (./extension) work as well, but paths with the home character fail.  This should be something we can fix.

This repros with something as simple as
<path to chrome> --load-extension=~/<path to extension>
(i.e., the additional commandline arguments are unnecessary)

dbertoni@, this could be another good one for you to look into.
And in the meantime, dbao@, just supplying an absolute path should work. :)

Thanks for reporting the bug!
I've verified the same behavior with the --user-data-dir command line flag, so it seems Chrome generally doesn't do tilde shell expansion.
Project Member

Comment 12 by bugdroid1@chromium.org, Apr 2 2018

Status: Fixed (was: Assigned)

Sign in to add a comment