If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

onAuthRequired causes Firefox to crash while displaying address bar suggestions

RESOLVED WORKSFORME

Status

()

Toolkit
WebExtensions: Request Handling
RESOLVED WORKSFORME
2 months ago
5 days ago

People

(Reporter: Yehuda Katz, Unassigned)

Tracking

55 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [webRequest])

(Reporter)

Description

2 months ago
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

Updated

9 days ago
Flags: needinfo?(mixedpuppy)

Updated

9 days ago
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)
(Reporter)

Comment 2

6 days ago
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
Last Resolved: 5 days ago
Resolution: --- → WORKSFORME
Flags: needinfo?(mixedpuppy)
You need to log in before you can comment on or make changes to this bug.