Backed out changeset 663cde4dd044 (bug 1287004) for crashes [@ XGetWindowAttributes]
CLOSED TREE
This commit is contained in:
@@ -28,7 +28,7 @@ add_task(function* test_windowlessBrowserTroubleshootCrash() {
|
|||||||
let winUtils = webNav.document.defaultView.
|
let winUtils = webNav.document.defaultView.
|
||||||
QueryInterface(Ci.nsIInterfaceRequestor).
|
QueryInterface(Ci.nsIInterfaceRequestor).
|
||||||
getInterface(Ci.nsIDOMWindowUtils);
|
getInterface(Ci.nsIDOMWindowUtils);
|
||||||
is(winUtils.layerManagerType, "Basic", "windowless browser's layerManagerType should be 'Basic'");
|
is(winUtils.layerManagerType, "None", "windowless browser's layerManagerType should be 'None'");
|
||||||
|
|
||||||
ok(true, "not crashed");
|
ok(true, "not crashed");
|
||||||
|
|
||||||
|
|||||||
@@ -569,14 +569,6 @@ PuppetWidget::GetLayerManager(PLayerTransactionChild* aShadowManager,
|
|||||||
LayersBackend aBackendHint,
|
LayersBackend aBackendHint,
|
||||||
LayerManagerPersistence aPersistence)
|
LayerManagerPersistence aPersistence)
|
||||||
{
|
{
|
||||||
if (XRE_IsParentProcess()) {
|
|
||||||
// A PuppetWidget in the parent process is for a windowless browser. Let's
|
|
||||||
// try to pretend this is a normal top-level window.
|
|
||||||
return nsBaseWidget::GetLayerManager(aShadowManager,
|
|
||||||
aBackendHint,
|
|
||||||
aPersistence);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mLayerManager) {
|
if (!mLayerManager) {
|
||||||
mLayerManager = new ClientLayerManager(this);
|
mLayerManager = new ClientLayerManager(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user