Closed Bug 1489765 Opened 7 years ago Closed 7 years ago

Remove getBoolPref function from utilityOverlay.js

Categories

(Firefox :: General, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 64
Tracking Status
firefox64 --- fixed

People

(Reporter: dao, Assigned: preeti, Mentored)

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1482200 +++ Now that Services.prefs.getBoolPref takes a default value, we should be able to call that instead of the getBoolPref function from utilityOverlay.js: https://searchfox.org/mozilla-central/search?q=+getBoolPref&case=true&path=browser%2Fbase
Hello! May I please work on this bug if no one else is working on it? To solve this bug, precisely: 1. I need to delete the function named "getBoolPref(prefname, def)" in browser/base/content/utilityOverlay.js 2. Replace all occurences of getBoolPref by Services.prefs.getBoolPref in browser/base/content/utilityOverlay.js and browser/base/content/browser.js Thanks in advance!
(In reply to Preeti[:preeti] from comment #1) > Hello! May I please work on this bug if no one else is working on it? > To solve this bug, precisely: > 1. I need to delete the function named "getBoolPref(prefname, def)" in > browser/base/content/utilityOverlay.js > 2. Replace all occurences of getBoolPref by Services.prefs.getBoolPref in > browser/base/content/utilityOverlay.js and browser/base/content/browser.js > > Thanks in advance! Yep, exactly. :)
Assignee: nobody → preetimukherjee98
MozReview-Commit-ID: 2PBUG8yQIXY Bug#1489765-Remove getBoolPref function from utilityOverlay.js;r?dao
I have submitted a patch for this bug, please do tell me if I need to incorporate some further changes!
There's some more code to remove in browser/base/content/test/contextMenu/browser_utilityOverlay.js. Also, your patch contains unrelated changes in devtools/.
(In reply to Dão Gottwald [::dao] from comment #5) > There's some more code to remove in > browser/base/content/test/contextMenu/browser_utilityOverlay.js. But I do not have this file in the cloned repository : preeti@preeti-Inspiron-5577:~/mozilla-central/browser/base/content/test/contextMenu$ ls browser_contextmenu_linkopen.js subtst_contextmenu_webext.html browser_contextmenu_touch.js test_contextmenu_links.html browser.ini Please help.
browser_utilityOverlay.js was only added a few weeks ago. Is your repository clone up to date?
(In reply to Dão Gottwald [::dao] from comment #7) > browser_utilityOverlay.js was only added a few weeks ago. Is your repository > clone up to date? I tried to up to date my repository, but I am still getting the following output: preeti@preeti-Inspiron-5577:~/mozilla-central$ hg pull https://hg.mozilla.org/mozilla-central pulling from https://hg.mozilla.org/mozilla-central applying clone bundle from https://hg.cdn.mozilla.net/mozilla-central/4df1ba9c741f1cb6661d9f205ad0fedf91d31925.zstd-max.hg adding changesets adding manifests adding file changes added 435325 changesets with 2751623 changes to 461877 files finished applying clone bundle searching for changes no changes found preeti@preeti-Inspiron-5577:~/mozilla-central$ cd browser/base/content/test/contextMenu/ preeti@preeti-Inspiron-5577:~/mozilla-central/browser/base/content/test/contextMenu$ ls browser_contextmenu_linkopen.js subtst_contextmenu_webext.html browser_contextmenu_touch.js test_contextmenu_links.html browser.ini Please do let me know on how to proceed.
Not sure what's going on, maybe make a fresh mozilla-central clone?
Remove getBoolPref function from utilityOverlay.js
(In reply to Dão Gottwald [::dao] from comment #9) > Not sure what's going on, maybe make a fresh mozilla-central clone? I have sumitted a new patch as per your suggestion. Please do review and tell me for further improvements!
I have submitted another patch with the required changes earlier today. Please do let me know if I need to incorporate any further changes!
Attachment #9007461 - Attachment is obsolete: true
Comment on attachment 9007847 [details] Bug#1489765-Remove getBoolPref function from utilityOverlay.js;r?dao Dão Gottwald [::dao] has approved the revision.
Attachment #9007847 - Flags: review+
I pushed this to the try server to run the mochitest-browser-chrome testsuite: https://treeherder.mozilla.org/#/jobs?repo=try&revision=75b050f2b0db4795e452e3bf45ef472ab26e0bbf All green, no failures. Good job!
Pushed by dgottwald@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3cdb4bb1282f Remove getBoolPref function from utilityOverlay.js. r=dao
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Attachment #9007461 - Attachment is obsolete: false
Attachment #9007461 - Attachment is obsolete: true
Attachment #9007847 - Attachment is obsolete: true
Attachment #9007847 - Attachment is obsolete: false
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: