Repository navigation
Commit 57cf50c
committed
Address Safer C++ static analysis warnings in WebCore/bindings after 2026-10-06 rollout
https://bugs.webkit.org/show_bug.cgi?id=327654
Reviewed by Ryosuke Niwa.
Fix the Safer C++ warnings in WebCore/bindings, including the ones in generated
bindings code, and update the corresponding expectations files.
The generated wrapped() downcast is safe by construction since a JSFoo always
wraps a Foo, so it is suppressed instead of adding a type check to every DOM
call. Code that may run on a GC thread suppresses its warnings since it cannot
ref objects.
* Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations:
* Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations:
* Source/WebCore/bindings/js/IDBBindingUtilities.cpp:
* Source/WebCore/bindings/js/JSCustomElementInterface.cpp:
* Source/WebCore/bindings/js/JSDOMAsyncIterator.h:
* Source/WebCore/bindings/js/JSDOMGuardedObject.cpp:
* Source/WebCore/bindings/js/JSEventTargetCustom.h:
* Source/WebCore/bindings/js/JSFetchEventCustom.cpp:
* Source/WebCore/bindings/js/JSIDBCursorWithValueCustom.cpp:
* Source/WebCore/bindings/js/JSIntersectionObserverCustom.cpp:
* Source/WebCore/bindings/js/JSMutationObserverCustom.cpp:
* Source/WebCore/bindings/js/JSResizeObserverCustom.cpp:
* Source/WebCore/bindings/js/JSServiceWorkerGlobalScopeCustom.cpp:
* Source/WebCore/bindings/js/JSWebCodecsAudioDecoderCustom.cpp:
* Source/WebCore/bindings/js/JSWebCodecsAudioEncoderCustom.cpp:
* Source/WebCore/bindings/js/JSWebCodecsVideoDecoderCustom.cpp:
* Source/WebCore/bindings/js/JSWebCodecsVideoEncoderCustom.cpp:
* Source/WebCore/bindings/js/ScriptController.cpp:
* Source/WebCore/bindings/js/WindowProxy.cpp:
* Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:
* Source/WebCore/bindings/scripts/test/JS/JSDOMWindow.h:
* Source/WebCore/bindings/scripts/test/JS/JSDedicatedWorkerGlobalScope.h:
* Source/WebCore/bindings/scripts/test/JS/JSExposedStar.h:
* Source/WebCore/bindings/scripts/test/JS/JSPaintWorkletGlobalScope.h:
* Source/WebCore/bindings/scripts/test/JS/JSServiceWorkerGlobalScope.h:
* Source/WebCore/bindings/scripts/test/JS/JSSharedWorkerGlobalScope.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunctionGenerateIsReachable.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunctionWithVariadic.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestCallbackInterface.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestCallbackWithFunctionOrDict.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestDOMJIT.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONIndirectInheritance.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInherit.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInheritFinal.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestExceptionSubclass.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestNode.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSTestPromiseRejectionEvent.h:
* Source/WebCore/bindings/scripts/test/JS/JSTestVoidCallbackFunction.cpp:
* Source/WebCore/bindings/scripts/test/JS/JSWorkerGlobalScope.h:
* Source/WebCore/bindings/scripts/test/JS/JSWorkletGlobalScope.h:
Canonical link: https://commits.webkit.org/323894@main1 parent a9fa7d8 commit 57cf50c
46 files changed
Lines changed: 91 additions & 78 deletions
File tree
- Source/WebCore
- SaferCPPExpectations
- bindings
- js
- scripts
- test/JS
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 7 | | |
24 | 8 | | |
25 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments