Possible issue with webRequest.onAuthRequired in latest Chrome

233 views
Skip to first unread message

Tom Riley

unread,
Oct 25, 2024, 1:34:34 PMOct 25
to Chromium Extensions
Hi all,

Does anyone's extension use `webRequest.onAuthRequired` that has noticed any strange behaviour with the latest version of Chrome ( 130.0.6723.70 )?

Our extension is used by customers to connect to our proxy servers, but it appears that in the latest version of Chrome, the `onAuthRequired` sequence when the proxy challenges for authentication just gets repeated over and over, meaning the request hangs for 10-20 seconds, or indefinitely.

Using the same proxy servers and credentials, the issue does not appear to happen with the same code in Chromium 125, and the previous (MV2) version of our code in Firefox. The issue also appears to still happen when loading the previous MV2 extension code into the latest version of Chrome. It is hard to be sure though, since the problem is not consistent, sometimes the 407 handshake works after 2-3 times, sometimes it works with no problem.

Thanks to anyone who can shed any light!

Patrick Kettner

unread,
Oct 25, 2024, 1:40:17 PMOct 25
to Tom Riley, Chromium Extensions
Hey Tom
What context are you calling onauthrequired in? A continent script, a background worker, etc?


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/b63245f1-7d73-433e-b138-1a11ae79d01dn%40chromium.org.

Tom Riley

unread,
Oct 25, 2024, 1:41:20 PMOct 25
to Chromium Extensions, Patrick Kettner, Tom Riley
Hi Patrick,

It's in a background Service Worker.

Patrick Kettner

unread,
Oct 25, 2024, 1:47:33 PMOct 25
to Tom Riley, Chromium Extensions
Thanks! there was an issue back in 11* days of chrome, I will try to find out if there is a regression here. 

Patrick Kettner

unread,
Oct 25, 2024, 1:52:54 PMOct 25
to Tom Riley, Chromium Extensions
On a trivial check it doesn’t look like that area was updated recently. If you have the ability to share a reproduction it would be very helpful

Tom Riley

unread,
Oct 28, 2024, 10:16:16 AMOct 28
to Chromium Extensions, Patrick Kettner, Tom Riley
OK thanks for checking, Patrick.

This does seem specific to Chrome 130.0.6723.70. I've installed the puppeteer testing version of Chrome 130.0.6723.59 (the previous release) and I don't see the issue happen.

I'll see if I can find a way to share a reproduction.

Tom Riley

unread,
Nov 1, 2024, 12:05:04 PMNov 1
to Chromium Extensions, Tom Riley, Patrick Kettner
This turned out to be a problem using our extension when the user has the 1Password extension enabled. It will prevent the webRequest.onAuthRequired process from completing correctly.
Reply all
Reply to author
Forward
0 new messages