Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 17665 by [email protected]: Extensions windows api cannot open  
a new window at a bundled page
http://code.google.com/p/chromium/issues/detail?id=17665

Chrome Version       : 3.0.195.1

Extensions cannot open a new window at a bundled page.

What steps will reproduce the problem?

The following sample code should be self documenting:

// imagine our extension comes bundles with a page called "mypage.html".
// We want to open a window whose initial url is mypage.html
// It does not seem to work. No window opens.
chrome.windows.create({url: "mypage.html",
                        left: 0,
                        top: 0,
                        width: 800,
                        height: 700}, function(wnd) {
   });
});

// HOWEVER! The tabs api seems to be able to do it just fine.
chrome.windows.create({url: "about:blank",
                        left: 0,
                        top: 0,
                        width: 800,
                        height: 700}, function(wnd) {
      // This successfully opens a new tab in the new window, at mypage.html
      chrome.tabs.create({url: "mypage.html",
                          windowId: wnd.windowId});
   });
});


What is the expected result?
That the windows api be able to open a new window at a bundled page.

What happens instead?
No window opens at all.

Please provide any additional information below. Attach a screenshot if
possible.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to