Bug 676746 - Forcibly initialize the persistant layer manager when we try to read its backend type. r=joe

This commit is contained in:
Matt Woodrow 2013-03-15 17:41:52 +13:00
parent 2e59a3c5bb
commit c4464df0a1

View File

@ -2192,7 +2192,7 @@ nsDOMWindowUtils::GetLayerManagerType(nsAString& aType)
if (!widget)
return NS_ERROR_FAILURE;
LayerManager *mgr = widget->GetLayerManager();
LayerManager *mgr = widget->GetLayerManager(nsIWidget::LAYER_MANAGER_PERSISTENT);
if (!mgr)
return NS_ERROR_FAILURE;