Clarify search-detection's getPublicSuffix
Categories
(WebExtensions :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: chutten, Unassigned)
Details
(Keywords: good-first-bug)
Attachments
(1 file, 1 obsolete file)
Per https://phabricator.services.mozilla.com/D218001#inline-1223211, getPublicSuffix has a name and a comment that are inaccurate and could be clarified:
This name and comment is misleading. The method returns the eTLD+1 for a given URL. "getBaseDomain" would have been a better name.
(In general this whole extension refers to eTLD in several places where eTLD+1 is meant)
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Sure thing. I think we want to rename the getPublicSuffix method to getBaseDomain here.
Thanks William, I'll make rename this getPublicSuffix method to getBaseDomain and create a PR.
Comment 4•5 months ago
|
||
I’m a new contributor, and I’ll be submitting a patch for this bug soon
Comment 5•5 months ago
|
||
Hi William, I'm working on this bug and could use a little guidance. I took a look at the Phabricator link and occurrences of getPublicSuffix in Searchfox: https://searchfox.org/firefox-main/search?q=getPublicSuffix+&path=&case=false®exp=false
After changing getPublicSuffix to getBaseDomain in the api.js file and the background.js file I'm unsure if I need to make the change in any of the other locations listed in Searchfox. Is there a recommended way to figure that out?
Comment 6•4 months ago
|
||
Updated•4 months ago
|
Comment 7•4 months ago
|
||
Updated•4 months ago
|
Updated•4 months ago
|
Comment 8•2 months ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Description
•