Summary: | Exit early in FrameLoader::loadURL when redirecting to another frame | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Rob Buis <rbuis> | ||||||||
Component: | New Bugs | Assignee: | Rob Buis <rbuis> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | cdumez, darin, ews-watchlist, ggaren, japhet, webkit-bug-importer | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | Safari Technology Preview | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Rob Buis
2020-04-20 10:10:09 PDT
Created attachment 396984 [details]
Patch
Comment on attachment 396984 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=396984&action=review r=me > Source/WebCore/loader/FrameLoader.cpp:1358 > + Frame* targetFrame = isFormSubmission ? nullptr : findFrameForNavigation(effectiveFrameName); This should be RefPtr. Comment on attachment 396984 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=396984&action=review >> Source/WebCore/loader/FrameLoader.cpp:1358 >> + Frame* targetFrame = isFormSubmission ? nullptr : findFrameForNavigation(effectiveFrameName); > > This should be RefPtr. I think our latest style would be: auto targetFrame = isFormSubmission ? nullptr : makeRefPtr(findFrameForNavigation(effectiveFrameName)); Or change findFrameForNavigation to return a RefPtr. Move the makeRefPtr outside the ? : if needed to make things compile. Created attachment 397060 [details]
Patch
Created attachment 397062 [details]
Patch
Committed r260423: <https://trac.webkit.org/changeset/260423> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397062 [details]. |