Repository navigation
browser.alarms.clearAll() should return Promise<undefined> - #76286
Open
kiaraarose wants to merge 1 commit into
Open
kiaraarose wants to merge 1 commit into
kiaraarose wants to merge 1 commit into
Conversation
https://bugs.webkit.org/show_bug.cgi?id=323876 rdar://problem/187115327 Reviewed by NOBODY (OOPS!). Per w3c/webextensions#1055, we should return undefined for alarms.clearAll() Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPIAlarms.swift * Source/WebKit/UIProcess/Extensions/API/WebExtensionContextAPIAlarms.cpp: (WebKit::WebExtensionContext::alarmsClearAll): * Source/WebKit/UIProcess/Extensions/WebExtensionContext.h: * Source/WebKit/UIProcess/Extensions/WebExtensionContext.messages.in: * Source/WebKit/WebProcess/Extensions/API/WebExtensionAPIAlarms.cpp: (WebKit::WebExtensionAPIAlarms::clearAll): * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKWebExtensionAPIAlarms.swift: (WKWebExtensionAPIAlarmsTests.clearAllAlarms):
kiaraarose
requested review from
b-weinstein,
rr-codes and
xeenon
as code owners
October 8, 2026 06:27
Collaborator
|
EWS run on current version of this PR (hash f415603) Details |
Collaborator
|
Safe-Merge-Queue: Build #107004. |
Collaborator
|
Commit message contains (OOPS!) and no valid reviewer found, blocking PR #76286. Details: Build #43225 |
b-weinstein
reviewed
Oct 9, 2026
|
|
||
| browser.test.assertTrue(await browser.alarms.clearAll(), 'Should return true when alarms were cleared.') | ||
| browser.test.assertFalse(await browser.alarms.clearAll(), 'Should return false once all alarms are gone.') | ||
| await browser.alarms.clearAll() |
Contributor
There was a problem hiding this comment.
Would this return undefined, or just not have a return value at all? Can we verify that the result was undefined in any way?
There was a problem hiding this comment.
WPT already has the following assertion:
const cleared = await browser.alarms.clearAll();
browser.test.assertEq(undefined, cleared, 'clearAll should return undefined');https://github.com/web-platform-tests/wpt/pull/62518/changes
b-weinstein
approved these changes
Oct 9, 2026
xeenon
approved these changes
Oct 9, 2026
elijahsawyers
approved these changes
Oct 9, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
f415603
f415603