Closed
Bug 1276357
Opened 9 years ago
Closed 6 years ago
Expose "hasRootDomain" for C++ and JS callers
Categories
(Toolkit :: Data Sanitization, defect)
Toolkit
Data Sanitization
Tracking
()
RESOLVED
DUPLICATE
of bug 1468503
People
(Reporter: lina, Unassigned)
Details
`hasRootDomain` (https://dxr.mozilla.org/mozilla-central/rev/4d63dde701b47b8661ab7990f197b6b60e543839/toolkit/forgetaboutsite/ForgetAboutSite.jsm#18-41) is currently duplicated in:
* https://dxr.mozilla.org/mozilla-central/rev/4d63dde701b47b8661ab7990f197b6b60e543839/browser/components/sessionstore/Utils.jsm#27-53
* https://dxr.mozilla.org/mozilla-central/rev/4d63dde701b47b8661ab7990f197b6b60e543839/dom/push/PushService.jsm#1212-1237
* https://dxr.mozilla.org/mozilla-central/rev/4d63dde701b47b8661ab7990f197b6b60e543839/dom/workers/ServiceWorkerManager.cpp#2927-2966
It would be good to centralize and expose this somewhere so that C++ and JS code can use it. Martin also suggests using the public suffix list to help determine this, so maybe `nsIEffectiveTLDService` is the right place?
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•