Closed Bug 1574469 Opened 7 years ago Closed 7 years ago

nsCookiePermission PermissionManager calls should use principals

Categories

(Core :: Networking: Cookies, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: emz, Assigned: emz)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(2 files)

We would like to remove permission manager calls with nsIURI in bug 1402957.

Affected PermissionManager usages: https://searchfox.org/mozilla-central/rev/3a61fb322f74a0396878468e50e4f4e97e369825/netwerk/cookie/nsCookiePermission.cpp#77,93

Reflecting P of 1402957.

Priority: -- → P3
Whiteboard: [necko-triaged]

After a discussion with :johannh and :ehsan we've decided to create a "legacy" permission manager method (not exposed via IDL) to test cookie permission via URI + origin parameters. This prevents us from having to create a new principal on every cookie service call.
We opted for a similar approach in Bug 1574473.

Assignee: nobody → pbz
Status: NEW → ASSIGNED
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8945e9f62d6e Implemented nsPermissionManager::LegacyTestPermissionFromURI for nsIURI queries with origin attributes. r=Ehsan
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cb1b6afa9f33 Removed block param from nsICookieManager::Remove. r=Ehsan
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e70e0a2952b6 Removed block param from nsICookieManager::Remove. r=Ehsan
Flags: needinfo?(pbz)
Regressions: 1803795
Blocks: 1881694
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: