Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CheckedPtr for m_preloads in CachedResourceLoader #9386

Closed
wants to merge 1 commit into from

Conversation

rniwa
Copy link
Member

@rniwa rniwa commented Jan 31, 2023

b572acb

Use CheckedPtr for m_preloads in CachedResourceLoader
https://bugs.webkit.org/show_bug.cgi?id=251440

Reviewed by NOBODY (OOPS!).

Made it possible to make CheckedPtr for CachedResource and deployed it in CachedResourceLoader::m_preloads.

* Source/WebCore/loader/cache/CachedResource.h:
(WebCore::CachedResource::isLinkPreload const):
(WebCore::CachedResource::isLinkPreload): Made this accessor function const.
* Source/WebCore/loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::preload):
(WebCore::CachedResourceLoader::clearPreloads):
* Source/WebCore/loader/cache/CachedResourceLoader.h:

b572acb

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe ❌ πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl ❌ πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac ❌ πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios ❌ πŸ§ͺ mac-wk1 ❌ πŸ§ͺ api-gtk
βœ… πŸ›  tv ❌ πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim ❌ πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch-sim

https://bugs.webkit.org/show_bug.cgi?id=251440

Reviewed by NOBODY (OOPS!).

Made it possible to make CheckedPtr for CachedResource and deployed it in CachedResourceLoader::m_preloads.

* Source/WebCore/loader/cache/CachedResource.h:
(WebCore::CachedResource::isLinkPreload const):
(WebCore::CachedResource::isLinkPreload): Made this accessor function const.
* Source/WebCore/loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::preload):
(WebCore::CachedResourceLoader::clearPreloads):
* Source/WebCore/loader/cache/CachedResourceLoader.h:
@rniwa rniwa requested a review from cdumez as a code owner January 31, 2023 17:35
@rniwa rniwa self-assigned this Jan 31, 2023
@rniwa rniwa added the Page Loading For bugs in page loading, including handling of network callbacks. label Jan 31, 2023
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Jan 31, 2023
Copy link
Contributor

@achristensen07 achristensen07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test failures look related

@rniwa
Copy link
Member Author

rniwa commented Feb 1, 2023

Test failures look related

Indeed...

@rniwa rniwa closed this Feb 2, 2023
@rniwa rniwa deleted the fix251440 branch February 2, 2023 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merging-blocked Applied to prevent a change from being merged Page Loading For bugs in page loading, including handling of network callbacks.
Projects
None yet
4 participants