2

Possible Duplicate:
Closing popup window created by Google Chrome extension

I've just started to play with Google Chrome extensions and tried to create some extensions from bookmarklets. I tried official Delicious bookmarklet and everythying works fine except popup that it creates doesn't close on link submit when you use similar code in extension.

Here is the code for extension:

chrome.browserAction.onClicked.addListener(function(tab) {
  chrome.tabs.getSelected(null,function(tab){
    f='http://www.delicious.com/save?url='+tab.url+'&title='+tab.title+'&v=6&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv6','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}
  });
});

Is there some other method I should use if I want to close popup on link submit?

Community
  • 1
  • 1
niksy
  • 625
  • 1
  • 7
  • 19
  • Never mind, found answer here: http://stackoverflow.com/questions/3950981/closing-popup-window-created-by-google-chrome-extension Guess I should do a better search next time… – niksy Dec 09 '10 at 15:18
  • I guess you know that Yahoo are closing down delicious. –  Dec 19 '10 at 23:17
  • @Julian: Delicious has been acquired, not shut down: http://blog.delicious.com/blog/2011/05/youtube-founders-acquire-delicious.html – Sam Dutton Aug 24 '11 at 16:30
  • http://stackoverflow.com/questions/4924615/chrome-extension-force-popup-html-to-close – Nakilon Dec 12 '12 at 07:40

0 Answers0