Closed Bug 1276357 Opened 4 years ago Closed 11 months ago
Root Domain" for C++ and JS callers
`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?
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1468503
You need to log in before you can comment on or make changes to this bug.