Closed ryumiel closed 9 years ago
Unable to find Extension* from ExtensionSet::GetByID
const Extension* ExtensionSet::GetByID(const std::string& id) const { ExtensionMap::constiterator i = extensions.find(id); if (i != extensions_.end()) return i->second.get(); else return NULL; }
Wrong extension_id at const Extension* GetExtensionForUrl(Profile* profile, const GURL& url) causes NULL extension
Expected
Name : extension_id
Details:{static npos = 18446744073709551615, _M_dataplus = {std::allocator
Actual:
Name : extension_id
Details:{static npos = 18446744073709551615, _M_dataplus = {std::allocator
ExtensionViewHost tries to load extension but if we passes empty or invalid url, it refuses to load
It looks like we have to use TestExtensionDir and load extension inside of that to generate proper extension for test.
That's quite interesting that we already have contentid in sidebar_browsertest but we construct ExtensionViewHost using just URL, contentid only used for managing extensions inside of sidebar_manager.
To follow convention in ExtensionViewHost, we should use same scheme with other extensions like popup or dialog.
Crashes at SidebarTest::ShowSidebar(WebContents* temp, const std::string& testpage), Due to the null host in SidebarContainer. We need to check initialization sequence of SidebarContainer and SidebarManager