-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix content-index WPT tests on WebLayer
WebLayer does not implement getIconSizes and therefore does not check if icons are actually valid as they are never fetched. This is the same as on Chrome desktop platforms. Only Chrome on Android and Content Shell do currently download and verify content-index icons. This now makes the WPT pass for both scenarios for Chromium based browsers. Other browsers can add their own logic once they support the content-index API. Bug: 1177892 Change-Id: I06b908363e9e83b0d9207a5835e55214f1f01528 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2874562 Reviewed-by: Michael Moss <[email protected]> Reviewed-by: Peter Beverloo <[email protected]> Reviewed-by: Rayan Kanso <[email protected]> Commit-Queue: Richard Knoll <[email protected]> Cr-Commit-Position: refs/heads/master@{#881785}
- Loading branch information
1 parent
95eeb24
commit 13e6cb4
Showing
4 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -727,6 +727,7 @@ WEB-PLATFORM.TEST:web-bundle/subresource-loading/*.html | |
# https://github.com/web-platform-tests/wpt/issues/16455 | ||
# Please consult with [email protected] before adding more. | ||
MISSING DEPENDENCY: credential-management/support/otpcredential-helper.js | ||
MISSING DEPENDENCY: resources/chromium/content-index-helpers.js | ||
MISSING DEPENDENCY: resources/chromium/contacts_manager_mock.js | ||
MISSING DEPENDENCY: resources/chromium/web-bluetooth-test.js | ||
MISSING DEPENDENCY: resources/chromium/webusb-test.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import {ContentIndexService} from '/gen/third_party/blink/public/mojom/content_index/content_index.mojom.m.js'; | ||
|
||
// Returns a promise if the chromium based browser fetches icons for | ||
// content-index. | ||
export async function fetchesIcons() { | ||
const remote = ContentIndexService.getRemote(); | ||
const {iconSizes} = await remote.getIconSizes(); | ||
return iconSizes.length > 0; | ||
}; |