Access and Modify browser cookies using safari extension

Hi,
I have been developing safari Extesnion and facing a Issue which has blocked me.

I need to access safari browser cookies using javascript.
Like in chrome we have an API:


chrome.cookies API, which help us to play with all the cookies in the browser.

chrome.cookie.set , set the cookies in the browser

chrome.cookie.get , set the cookies in the browser
and so on.

In Mozilla also we could use nsIcookieManager for all this.


unfortunately , I am not able to find any such thing in safari, I have been though the links related to safari extesnion and found document.cookies , but it is document specific , it does not provide all cookies of browser, but only of the tab which is openend.


I din't found any solution anywhere and Hope I could get the perfect answer here.

(I am using safari verison 9.0)



Thanks in advance.

Access and Modify browser cookies using safari extension
 
 
Q