Closed Bug 1820569 Opened 2 years ago Closed 6 months ago

Implement webRequestAuthProvider permission for webRequest.onAuthRequired

Categories

(WebExtensions :: Request Handling, enhancement, P3)

enhancement

Tracking

(firefox126 fixed)

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: robwu, Assigned: rpl)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [wecg][design-decision-approved][addons-jira])

Attachments

(1 file)

Chrome introduced the "webRequestAuthProvider" as a replacement for the "webRequestBlocking" permission, because they are rejecting the latter in MV3.

Firefox continues to support "webRequestBlocking" in MV3, so it is not strictly necessary to introduce another permission. But for cross-browser compatibility, it may make sense to also implement the "webRequestAuthProvider" permission so that extension authors can use the webRequest.onAuthRequired event with only the "webRequest" + "webRequestAuthProvider" permissions (without requiring "webRequestBlocking").

Relevant references:

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [wecg][design-decision-needed] → [wecg][design-decision-approved][addons-jira]
Keywords: dev-doc-needed
Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Blocks: 1889897
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/68dfd8b189e7 Implement webRequestAuthProvider permission for webRequest.onAuthRequired. r=robwu

Backed out for causing xpcshell failures on test_ext_webRequest_permission.js.

Flags: needinfo?(lgreco)

(In reply to Iulian Moraru from comment #4)

Backed out for causing xpcshell failures on test_ext_webRequest_permission.js.

sorry about that, I'm not yet sure why but I just didn't hit this failure when I execute all xpcshell tests locally and the test assertion failing seems to not be just updated to expect the updated error expected to be logged in the scenario being tested, I'm taking a look and will update the patch shortly.

Flags: needinfo?(lgreco)
Blocks: 1890013
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/e4ff2d940080 Implement webRequestAuthProvider permission for webRequest.onAuthRequired. r=robwu
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: