WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
276141
Remove `plugins()` and use `ImplementAs=embeds` in 'Document+HTML.idl'
https://bugs.webkit.org/show_bug.cgi?id=276141
Summary
Remove `plugins()` and use `ImplementAs=embeds` in 'Document+HTML.idl'
Ahmad Saleem
Reported
2024-07-02 13:21:38 PDT
Hi Team, We have following potential clean-up:
>
https://searchfox.org/wubkat/rev/8104e1d037fe1ef5d6824f8d893b5df6c2691452/Source/WebCore/dom/Document.cpp#7243
Ref<HTMLCollection> Document::plugins() { // This is an alias for embeds() required for the JS DOM bindings. return ensureCachedCollection<CollectionType::DocEmbeds>(); }
>
https://searchfox.org/wubkat/rev/8104e1d037fe1ef5d6824f8d893b5df6c2691452/Source/WebCore/dom/Document.h#585
WEBCORE_EXPORT Ref<HTMLCollection> plugins(); // an alias for embeds() required for the JS DOM bindings. ___ By removing them and then just doing this in Document+HTML.idl:
https://searchfox.org/wubkat/rev/8104e1d037fe1ef5d6824f8d893b5df6c2691452/Source/WebCore/dom/Document+HTML.idl#48
[ImplementedAs=embeds, SameObject] readonly attribute HTMLCollection plugins; ____ Is this good clean-up? Or doable - haven't tried locally. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Anne van Kesteren
Comment 1
2024-07-05 08:05:24 PDT
Yeah, go for it.
Radar WebKit Bug Importer
Comment 2
2024-07-09 13:22:35 PDT
<
rdar://problem/131407054
>
EWS
Comment 3
2024-07-12 10:57:20 PDT
Committed
280913@main
(d4fa9f182229): <
https://commits.webkit.org/280913@main
> Reviewed commits have been landed. Closing PR #30748 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug