Closed Bug 769589 Opened 12 years ago Closed 12 years ago

Remove deprecated GetOriginatingURI from nsICookiePermission

Categories

(Core :: Networking: Cookies, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: mounir, Assigned: mounir)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
      No description provided.
Attachment #637819 - Flags: review?(mconnor)
Comment on attachment 637819 [details] [diff] [review]
Patch

r=me.  I'd say r/sr, but there are far more active SRs than cookie peers...
Attachment #637819 - Flags: review?(mconnor) → review+
Attachment #637819 - Flags: superreview?(cbiesinger)
Comment on attachment 637819 [details] [diff] [review]
Patch

whee code removal
Attachment #637819 - Flags: superreview?(cbiesinger) → superreview+
https://hg.mozilla.org/integration/mozilla-inbound/rev/e4c7a8c7fc65
Flags: in-testsuite-
Target Milestone: --- → mozilla18
https://hg.mozilla.org/mozilla-central/rev/e4c7a8c7fc65
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Today I found this ticket while I was looking for a reason why my extension is broken since Aurora. Now, is there an other option for me to get the originating URI of a 3rd party resource from extension land? I did not find any yet (and nobody on #extdev could help me either) but I need it as I am binding some 3rd party stuff to the domain of the originating page.
I'm assuming mozIThirdPartyUtil doesn't really help. Actually, I don't see anything that would obviously replace getOriginatingURI. Christian and Mike, do you have any idea if the deprecation of this method was correct?

BTW, Georg, next time, if you use a deprecated method and can't find a replacement, better to let us know because, usually, deprecation is the first step before removal ;)
(In reply to Mounir Lamouri (:mounir) from comment #6)
> I'm assuming mozIThirdPartyUtil doesn't really help.
No, unfortunately not.
> Actually, I don't see
> anything that would obviously replace getOriginatingURI. Christian and Mike,
> do you have any idea if the deprecation of this method was correct?
> 
> BTW, Georg, next time, if you use a deprecated method and can't find a
> replacement, better to let us know because, usually, deprecation is the
> first step before removal ;)
I would have done it, no doubt about that. But 
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsICookiePermission
doesn't say anything about that method being deprecated and, honestly, I am a bit reluctant to check the .idl files always in addition to the documentation on MDN.
Would a patch (in a new bug) be accepted which adds the getOriginatingURI functionality to ThirdPartyUtil (and exposes it in mozIThirdPartyUtil as well)?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: