background - create a window chrome with an exception in back -


i'd create new window background page , put in back. tried focused:false doesn't seem make trick. tried save previous windowid , tabid , update after having creating new window doesn't solve problem neither.

do know how can that?

here code:

function savetabid() {     // current tab     chrome.tabs.getselected(null,function(tab){         if (tab != 'undefined') {             if (tab.windowid != windowid) {                 currenttabid = tab.id;                 currentwindowid = tab.windowid;             }              chrome.windows.create({url:"http://www.google.com", width:100,     height:100, top:0, left:0, focused:false}, function() {                chrome.tabs.get(currenttabid, function(tab) {                 chrome.windows.update(tab.windowid, {}, function(w) {                   chrome.tabs.update(tab.id, {selected:true});                 });               });              });          }      }); } 

i launched code @ beginning of background.html , when refresh extension, window on top of extensions tab.

p.s: more strange window on top of extensions tab , when change tab in window, new window stays on top of other 1 if click , type text in other one...

i got kind of working, popup window still showing moment before going underneath current window:

chrome.windows.create({url:"http://www.google.com", width:100, height:100, top:0, left:0, focused:false}, function() {     chrome.windows.update(currentwindowid, {focused:true}); }); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -