Is it possible to determine a tab's opener within a Google Chrome extension?

Chrome has added an experimental extension API which can accomplish this -- specifically webNavigation. OnBeforeRetarget code.google.com/chrome/extensions/experi....

Chrome has added an experimental extension API which can accomplish this -- specifically webNavigation. OnBeforeRetarget. code.google.com/chrome/extensions/experi... However since this is still experimental (not usable in Chrome stable versions or releasable on the Chrome Web Store) I have ended up using another approach.

Basically: In content_script. Js: chrome.extension. SendRequest({ request: { op: "pageLoadStarted", url: document.location.

Href, referrer: document. Referrer } }); In background. Html: chrome.extension.onRequest.

AddListener(function(request, sender, sendResponse) { console. Log('onRequest: ' + JSON. Stringify(request)); console.

Log(JSON. Stringify(sender)); }); This approach allows me to obtain the referrer of a tab, which I can then correlate with an existing tab's url. This isn't always a one-to-one mapping, so I do some additional magic such as preferring the currently selected tab as the opener if its url matches the new tab's referrer.

This really is just a hack to approximate the functionality that would be provided more simply and accurately by webNavigation. OnBeforeRetarget or window.opener.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions