mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +00:00
Bug 844275 - Update test_acceleration to guard against windows with no layer manager. r=joedrew
This commit is contained in:
parent
1fa05720fa
commit
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.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user