Closed Bug 1645071 Opened 4 years ago Closed 3 years ago

WebRequest.jsm should not await onSendHeaders event dispatch

Categories

(WebExtensions :: Request Handling, task, P5)

task

Tracking

(firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: robwu, Assigned: brendanatalia94, Mentored)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/4bb2401ecbfce89af06fb2b4d0ea3557682bd8ff/toolkit/components/extensions/webrequest/WebRequest.jsm#1038

      if (kind === "onBeforeSendHeaders" && this.listeners.onSendHeaders.size) {
        await this.runChannelListener(channel, "onSendHeaders");

This await should be removed because webRequest.onSendHeaders is not a blocking listener. This event is informational only..

Severity: -- → N/A
Priority: -- → P5

This is really easy to fix. Literally removing just one word.

This is a good first bug for those who want to get familiar with setting up a development environment and submitting a patch.
To get started, see https://wiki.mozilla.org/WebExtensions/Contribution_Onramp

Mentor: rob
Keywords: good-first-bug

Hi :robwu, I'm Brenda and I'm trying to enroll on outreachy, can I start my contribution with this one? Thanks in advance!

Flags: needinfo?(rob)

Hi :robwu , I am new to opensource and would like to contribute. But where do I do so? Do I do so from github?

(In reply to Brenda M Lima from comment #2)

Hi :robwu, I'm Brenda and I'm trying to enroll on outreachy, can I start my contribution with this one? Thanks in advance!

Yes you can.

(In reply to Rajreet from comment #3)

Hi :robwu , I am new to opensource and would like to contribute. But where do I do so? Do I do so from github?

Brenda, has expressed interest in this bug before, so I suggest that you try out a different good-first-bug bug (we have plenty).
To get started, see https://wiki.mozilla.org/WebExtensions/Contribution_Onramp

Flags: needinfo?(rob)

(In reply to Rob Wu [:robwu] from comment #4)

(In reply to Brenda M Lima from comment #2)

Hi :robwu, I'm Brenda and I'm trying to enroll on outreachy, can I start my contribution with this one? Thanks in advance!

Yes you can.

(In reply to Rajreet from comment #3)

Hi :robwu , I am new to opensource and would like to contribute. But where do I do so? Do I do so from github?

Brenda, has expressed interest in this bug before, so I suggest that you try out a different good-first-bug bug (we have plenty).
To get started, see https://wiki.mozilla.org/WebExtensions/Contribution_Onramp

Thanks, I'm on it

Assignee: nobody → brendanatalia94
Status: NEW → ASSIGNED

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:brendanatalia94, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(brendanatalia94)

Hey Rob, can you please check if this is still good to land, and land it?

Flags: needinfo?(rob)
Flags: needinfo?(rob)
Flags: needinfo?(brendanatalia94)
Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/71cfdbebac8e
remove await from non-blocking listener. r=robwu
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

Thank you so much for the patch, Brenda! 🎉 Your contribution has been added to our recognition wiki at https://wiki.mozilla.org/Add-ons/Contribute/Recognition.

Hope to see you around the project in the future!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: