| Summary: | Use more AtomString and un-inline code for ScriptElementCachedScriptFetcher and its subclasses | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||
| Component: | DOM | Assignee: | Ryosuke Niwa <rniwa> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | cdumez, darin, esprehn+autocc, ews-watchlist, kangil.han, koivisto, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=235876 | ||||||||
| Attachments: |
|
||||||||
|
Description
Ryosuke Niwa
2022-01-31 13:55:24 PST
Created attachment 450463 [details]
Patch
Created attachment 450464 [details]
Patch
Comment on attachment 450464 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450464&action=review > Source/WebCore/dom/LoadableClassicScript.cpp:44 > +LoadableClassicScript::LoadableClassicScript(const String& nonce, const AtomString& integrity, ReferrerPolicy policy, const AtomString& crossOriginMode, const String& charset, const AtomString& initiatorName, bool isInUserAgentShadowTree, bool isAsync) Was nonce going to be AtomString? (In reply to Darin Adler from comment #3) > Comment on attachment 450464 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=450464&action=review > > > Source/WebCore/dom/LoadableClassicScript.cpp:44 > > +LoadableClassicScript::LoadableClassicScript(const String& nonce, const AtomString& integrity, ReferrerPolicy policy, const AtomString& crossOriginMode, const String& charset, const AtomString& initiatorName, bool isInUserAgentShadowTree, bool isAsync) > > Was nonce going to be AtomString? Yup. In Element.h we see that: ... WEBCORE_EXPORT const AtomString& nonce() const; ... Comment on attachment 450464 [details] Patch Clearing flags on attachment: 450464 Committed r288900 (?): <https://commits.webkit.org/r288900> All reviewed patches have been landed. Closing bug. Comment on attachment 450464 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450464&action=review >>> Source/WebCore/dom/LoadableClassicScript.cpp:44 >>> +LoadableClassicScript::LoadableClassicScript(const String& nonce, const AtomString& integrity, ReferrerPolicy policy, const AtomString& crossOriginMode, const String& charset, const AtomString& initiatorName, bool isInUserAgentShadowTree, bool isAsync) >> >> Was nonce going to be AtomString? > > Yup. In Element.h we see that: > > ... > WEBCORE_EXPORT const AtomString& nonce() const; > ... My point is that the code above says const String& nonce instead of const AtomString& nonce. (In reply to Darin Adler from comment #8) > Comment on attachment 450464 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=450464&action=review > > >>> Source/WebCore/dom/LoadableClassicScript.cpp:44 > >>> +LoadableClassicScript::LoadableClassicScript(const String& nonce, const AtomString& integrity, ReferrerPolicy policy, const AtomString& crossOriginMode, const String& charset, const AtomString& initiatorName, bool isInUserAgentShadowTree, bool isAsync) > >> > >> Was nonce going to be AtomString? > > > > Yup. In Element.h we see that: > > > > ... > > WEBCORE_EXPORT const AtomString& nonce() const; > > ... > > My point is that the code above says const String& nonce instead of const > AtomString& nonce. Oh! I missed that. Will fix. Committed r288912 (246652@trunk): <https://commits.webkit.org/246652@trunk> |