What is method to get URL before tab redirect in firefox?

╄→гoц情女王★ 提交于 2019-12-06 07:21:10
gBrowser.webNavigation.referringURI

This will give you the current tab only. If you want of a specific tab then go:

var tabIndex = 0; //first tab
var referredFromURI = gBrowser.tabContainer.childNodes[tabIndex].linkedBrowser.webNavigation.referringURI;

This isn't really the redirected from, but the referred from. But it works. If there is no referred URI than this property is null.

Also the person who downvoted your question is a loser. Good question you asked.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!