chrome-export-passwords icon indicating copy to clipboard operation
chrome-export-passwords copied to clipboard

TypeError: PasswordManager.getInstance is not a function

Open kenorb opened this issue 7 years ago • 4 comments

The following error happens when executing minified code at chrome://settings/passwords

Uncaught ReferenceError: PasswordManager is not defined at :1:34

Tested on Chrome: 63.0.3239.132 and on 66.0.3331.0 (Canary).

Although this code works instead:

var pm = new PasswordManager();
var pl = pm.getSavedPasswordList;

but pl.dataModel is undefined.

kenorb avatar Feb 01 '18 22:02 kenorb

@kenorb: instead of messing with js hacks which use an API that keeps changing all the time, just use the built-in password export functionality available in Chrome Canary as described in the top of the answer at https://superuser.com/a/675167/65975

ghost avatar Feb 04 '18 19:02 ghost

@elFua I wish to use, but builtin feature doesn't work for me as per Issue 808223. It's basically creating an empty CSV file. See my other answer on that link that you've sent.

kenorb avatar Feb 04 '18 19:02 kenorb

@kenorb: that's exactly why I mentioned you need to use the Chrome Canary build from https://www.google.com/chrome/browser/canary.html

ghost avatar Feb 04 '18 19:02 ghost

I had both installed and none of them worked (stable, Canary build and Chromium), the export didn't work. Secondly most of my passwords were in stable version, so exporting them was not possible.

kenorb avatar Feb 04 '18 21:02 kenorb