Starting from Opera 64 onAuthRequired does not work for XHR requests
-
A Former User last edited by
Steps to reproduce the problem:
- Extension has following listener in background page:
chrome.webRequest.onAuthRequired.addListener(onAuthChromeHandler, {urls: ["<all_urls>"]}, ["asyncBlocking"]); - Permissions contains "proxy", "storage", "webRequest", "webRequestBlocking", "notifications", "<all_urls>"
- Make a request with XHR with Basic Auth challenge (or set a proxy with proxy auth challenge and make a xhr request)
What is the expected behavior?
onAuthChromeHandler can provide credentials for the basic auth challenge.What went wrong?
onAuthChromeHandler is called but provided credentials are ignored.Did this work before?
Yes, opera 63 works just fineDoes this work in other browsers?
Yes, Chrome works as expected and same behaviour as Opera 63I have made a simple extension to demonstrate this bug:
https://drive.google.com/open?id=1jSygBV1c-dY88ZTRoIlKBEQg122lvNWh
This extension basically makes a xhr request to a url with basic auth challenge-
Download extension and install it on Opera 64 or Opera 65
-
Open background page
-
Wait 5 seconds until xhr request is made
-
On Opera 64/65 you will see that every 5 seconds you will get 401 which means onAuthRequired was not able to answer the challenge
-
RUN the same extension on Opera 63 and it works without any issue (Also on Chrome no problems)
We have currently a extension with 1 million active users using this combination. And it does NOT work on Opera anymore (Starting from Opera 64).
It seems like Bug Regression. On Opera 63 and Chrome it works without problems. - Extension has following listener in background page:
-
A Former User last edited by
Any update on this? This seems to be a significant bug at least for extension which use this kind of auth.
-
A Former User last edited by
Is anybody reading these forum posts from Opera Devs? Or is this the wrong place for reporting Regression bugs.
-
burnout426 Volunteer last edited by
Your bug is DNAWIZ-82553. I can confirm that the test extension works fine in Vivaldi. Hopefully someone at Opera will take a look at it soon.
-
burnout426 Volunteer last edited by
This should be fixed in Opera Developer 68.0.3616.0.
See "DNA-84701 onAuthRequired does not work for XHR requests" in the changelog.
Please test in that build of Opera Developer to confirm.