Index: LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js |
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js b/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js |
index 6211c156b1b273ca47fe9e9f6221f2aeb22180ee..7b97ace2352a02a66b1b22ed5d82abc2249ad4a7 100644 |
--- a/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js |
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/windowclient-focus.js |
@@ -9,7 +9,7 @@ |
// Override self.initialize() from sw-test-helpers.js |
self.initialize = function() { |
- return self.clients.getAll().then(function(clients) { |
+ return self.clients.matchAll().then(function(clients) { |
clients.forEach(function(c) { |
// All clients are iframes but one of them embeds the other ones. We |
// want to use that one as the main |client|. |
@@ -23,7 +23,7 @@ |
}; |
function getNumberOfFocusedClients() { |
- return self.clients.getAll().then(function(clients) { |
+ return self.clients.matchAll().then(function(clients) { |
var focusedClients = 0; |
clients.forEach(function(c) { |
if (c.focused) |