Closed
Bug 1385835
Opened 7 years ago
Closed 7 years ago
WebExt API for URI parsing using the nsIEffectiveTLDService
Categories
(WebExtensions :: Experiments, defect)
WebExtensions
Experiments
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1315558
People
(Reporter: tumpio, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170630112252
Steps to reproduce:
I require same-origin policy detection for controlling third party requests with my extension. I would like to use the nsIEffectiveTLDService for it but it is not available for WebExtensions.
My requirement is to get the base domain of a request and compare it to the origin's to detect if the request is a "third-party" request. The nsIEffectiveTLDService has a method for "getBaseDomain". It was also previously advised to be used with Legacy add-ons:
https://developer.mozilla.org/en-US/Add-ons/Code_snippets/URI_parsing#Grabbing_the_main_domain
Have there been any previous discussion about this? Is any interest to make this service available for extensions? And is it possible to write an experiment API for it?
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Comment 2•7 years ago
|
||
(In reply to tumpio from comment #0)
> And is it possible to write an experiment API for it?
Sorry, forgot to mention that if you are interested in working on this, please feel free to take that bug, though the desired solution is to provide the api through WebIDL, which is a bit more involved (and means C++) than a webextension experiment.
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•