I have this problem ... and I\'ve been trying to get a username and password pair passed to background.js of my extension. The process goes as follows:
The solution to the problem was to use callbacks.
I thought I would have to deal with Promises, which I did a lot of work on ... only to find there was a much easier answer.
Much easier.