зеркало из https://github.com/mozilla/gecko-dev.git
Bug 844275 - Update test_acceleration to guard against windows with no layer manager. r=joedrew
This commit is contained in:
Родитель
1fa05720fa
Коммит
8c5695896a
|
@ -33,8 +33,13 @@ var acceleratedWindows = 0;
|
|||
while (windows.hasMoreElements()) {
|
||||
windowutils = windows.getNext().QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils);
|
||||
if (windowutils.layerManagerType != "Basic") {
|
||||
acceleratedWindows++;
|
||||
try {
|
||||
if (windowutils.layerManagerType != "Basic") {
|
||||
acceleratedWindows++;
|
||||
}
|
||||
} catch (e) {
|
||||
// The window may not have a layer manager, in which case we get an error.
|
||||
// Don't count it as an accelerated window.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче