I
I
Ilyas Galiev2019-01-23 21:27:43
JavaScript
Ilyas Galiev, 2019-01-23 21:27:43

How to get active tab url from popup in safari extension?

I need to get the url of the active tab in the safari extension in contentScript and in popup.
document.location.href and safari.application.activeBrowserWindow.activeTab.url don't work
Also I need to authorize user in popup but safari doesn't pass cookies from popup how to do it?
document.cookie is empty
There is no particular documentation for Safari, I searched, there is nothing

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander +, 2019-08-13
@AlexanderMi

Is there a popup? child window?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question