Closed Bug 1382822 Opened 7 years ago Closed 7 years ago

onAuthRequired causes Firefox to crash while displaying address bar suggestions

Categories

(WebExtensions :: Request Handling, defect)

55 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mail, Unassigned)

Details

(Whiteboard: [webRequest])

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170628075643

Steps to reproduce:

I was trying to handle basic auth for proxy server set by proxy script.

browser.webRequest.onAuthRequired.addListener(function(details) {
  return {
    authCredentials: {username: 'user', password: 'pass'}
  };
}, {urls: ["<all_urls>"]}, ["blocking"]);


Actual results:

The authentication works fine for all URLs except for address bar hints. When I enable proxy in browser and start type domain name, suggestions are displayed and Firefox starts making request in background... I can see popup message asking for password (so it means it was not handled by listener) and if you enter anything or click OK button, Firefox crashes.


Expected results:

I even tried to clean up the listener with following:

browser.webRequest.onAuthRequired.addListener(function(details) {
  return {};
}, {urls: ["<all_urls>"]}, ["blocking"]);

but the same error happened. When I removed listener, I can see the same popup but Firefox does not crashes any more.
Component: General → WebExtensions: General
Flags: needinfo?(mixedpuppy)
Component: WebExtensions: General → WebExtensions: Request Handling
Whiteboard: [webRequest]
I'm having a hard time reproducing this.  Is there any further details you can provide to reproduce?
Flags: needinfo?(mail)
Hello Shane,

That was very couple of months ago =) Currently I have FF56 and I tested it again and seems like this problem was automatically resolved. I will reopen the case if I notice it again... the situation was like that:

Shane, the basic authentication was working fine. The pages where openning fine but when I was trying to type something in address bar, on the moment when hints should be displayed, there was fatal error and FF crashed.

With best regards

Yehuda
Flags: needinfo?(mail)
Thanks Yehuda, marking as closed based on comment 2.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(mixedpuppy)
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.