Bug 261848 - WKWebExtensionAPITabs.RemovedEvent is flaky (sometimes wrong tab ID)
Summary: WKWebExtensionAPITabs.RemovedEvent is flaky (sometimes wrong tab ID)
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Extensions (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
: 262142 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-09-20 16:01 PDT by Timothy Hatcher
Modified: 2023-12-18 13:28 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2023-09-20 16:01:53 PDT
TestWebKitAPI.WKWebExtensionAPITabs.RemovedEvent
        
        webkit-extension://fe7b8bf7-d091-4df1-be02-e640cd5dc657/background.js:3
        The removed tab should have the correct id:
          Actual: 32
        Expected: 31
Comment 1 Radar WebKit Bug Importer 2023-09-20 16:02:08 PDT
<rdar://problem/115809590>
Comment 2 Timothy Hatcher 2023-09-26 14:58:41 PDT
*** Bug 262142 has been marked as a duplicate of this bug. ***
Comment 3 Ben Schwartz 2023-09-26 15:07:49 PDT
Adding more information from duplicate bug.
__________

This test is a flaky/consistent failure on wk2 release builds.

HISTORY:

https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.WKWebExtensionAPITabs.RemovedEvent

REPRODUCIBILITY:

I was able to reproduce this issue on macOS Ventura (13.5, 22G74/arm64) ToT using the following command:

run-api-tests --verbose --debug --iterations 100 TestWebKitAPI.WKWebExtensionAPITabs.RemovedEvent

REGRESSION:

This test has been a flaky/consistent failure since it was introduced at 268092@main.
Comment 4 Ben Schwartz 2023-09-26 15:10:56 PDT
CORRECTION:

No debug flag in reproduction command:

run-api-tests --verbose --iterations 100 TestWebKitAPI.WKWebExtensionAPITabs.RemovedEvent
Comment 5 EWS 2023-09-26 15:19:20 PDT
Test gardening commit 268482@main (4b2de03965cc): <https://commits.webkit.org/268482@main>

Reviewed commits have been landed. Closing PR #18247 and removing active labels.
Comment 6 Timothy Hatcher 2023-12-18 11:33:01 PST
Pull request: https://github.com/WebKit/WebKit/pull/21981
Comment 7 EWS 2023-12-18 13:28:08 PST
Test gardening commit 272237@main (dcd6c460a032): <https://commits.webkit.org/272237@main>

Reviewed commits have been landed. Closing PR #21981 and removing active labels.