Closed
Bug 1478267
Opened 7 years ago
Closed 7 years ago
Drop the callback parameter to getShortcutOrURIAndPostData
Categories
(Firefox :: General, enhancement, P5)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: standard8, Assigned: Siddhant085, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(1 file, 3 obsolete files)
4.22 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
getShortcutOrURIAndPostData in browser.js no longer needs to have the callback option - all the in-tree consumers are using the promise returned, and we no longer support add-ons calling it directly.
https://searchfox.org/mozilla-central/search?q=symbol:%23getShortcutOrURIAndPostData&redirect=false
The function should be made async, the callback dropped and iife [0] wrapper dropped.
[0] https://en.wikipedia.org/wiki/Immediately-invoked_function_expression
Updated•7 years ago
|
Priority: -- → P5
Hi,
I'm new to open source contributions.
If this is a good first issue to work on, I'm interested in picking up this bug.
I may need some assistance with it.
Reporter | ||
Comment 2•7 years ago
|
||
Thanks for the offer Prashanth, please start working on it, we generally only assign a bug once we get the first patch.
If you haven't already built Firefox, https://developer.mozilla.org/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build is a good place to start.
Assignee | ||
Comment 3•7 years ago
|
||
I made some changes to fix this issue. I don't know how to run tests to check if things are working correctly. I will be attaching the patch.
Assignee | ||
Comment 4•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8996265 -
Flags: review?(standard8)
Reporter | ||
Comment 5•7 years ago
|
||
(In reply to Siddhant from comment #3)
> I made some changes to fix this issue. I don't know how to run tests to
> check if things are working correctly. I will be attaching the patch.
Thanks for the patch. There's a couple of things you can do for testing:
- Run ESLint on the file (https://developer.mozilla.org/docs/Mozilla/Developer_guide/ESLint) to check the syntax and general rules are met, e.g.
./mach lint /path/to/file.
- Run some of the tests. Doing a search for the function brings up a few results, e.g.
https://searchfox.org/mozilla-central/search?q=getShortcutOrURIAndPostData&case=false®exp=false&path=
which you can then run with:
./mach test /path/to/test
I've run those already and they ran fine. However I'll probably just put it through our try server before we land it just to make sure.
There's one minor issue to fix that I'll comment on in a moment.
Assignee: nobody → dpsrkp.sid
Reporter | ||
Comment 6•7 years ago
|
||
Comment on attachment 8996265 [details] [diff] [review]
Drop the callback parameter to getShortcutOrURIAndPostData
Review of attachment 8996265 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/base/content/browser.js
@@ -2428,1 @@
> let mayInheritPrincipal = false;
Please can you shift all the remaining lines of the function to reduce the indent by two spaces.
We generally use two-space indentation in our files.
Attachment #8996265 -
Flags: review?(standard8)
Assignee | ||
Comment 7•7 years ago
|
||
Assignee | ||
Comment 8•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8996265 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8996292 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8996335 -
Flags: review?(standard8)
Reporter | ||
Comment 9•7 years ago
|
||
Comment on attachment 8996335 [details] [diff] [review]
Drop the callback parameter to getShortcutOrURIAndPostData
Review of attachment 8996335 [details] [diff] [review]:
-----------------------------------------------------------------
This looks like an interdiff between the latest and the previous patch? Please could you combine the two?
Attachment #8996335 -
Flags: review?(standard8)
Assignee | ||
Comment 10•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Attachment #8996640 -
Flags: review?(standard8)
Reporter | ||
Updated•7 years ago
|
Attachment #8996335 -
Attachment is obsolete: true
Reporter | ||
Comment 11•7 years ago
|
||
Reporter | ||
Comment 12•7 years ago
|
||
Comment on attachment 8996640 [details] [diff] [review]
Drop the callback parameter to getShortcutOrURIAndPostData
Review of attachment 8996640 [details] [diff] [review]:
-----------------------------------------------------------------
Great. Thank you for the update. The patch looks good, and the try server is showing that the tests are still passing, so this is good to go.
I'll mark this as checkin-needed, at which point someone will come along soon after and land it on an integration branch. Once it gets merged to the main mozilla-central, it'll automatically get marked as fixed.
Attachment #8996640 -
Flags: review?(standard8) → review+
Reporter | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 13•7 years ago
|
||
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/857884a8913e
Drop the callback parameter to getShortcutOrURIAndPostData r=standard8
Keywords: checkin-needed
Comment 14•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
You need to log in
before you can comment on or make changes to this bug.
Description
•