WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 29746
Early returns in FrameLoader::loadURL harmful for plug-ins
https://bugs.webkit.org/show_bug.cgi?id=29746
Summary
Early returns in FrameLoader::loadURL harmful for plug-ins
Adam Barth
Reported
2009-09-25 13:04:10 PDT
Comment #6
From Darin Fisher (:fishd, Google) 2009-09-21 00:32:42 PDT (-) [reply] I think these early returns are problematic for callers of NPN_Get/PostURLNotify that expect a callback on success _or_ failure. By suppressing the frame loader notifications, the NPP_URLNotify call will be suppressed, and that may result in memory leaks in the plugin. (Note: This is actually only a problem for Chrome since WebKit's plugin implementation has a bug where it always fires NPP_URLNotify before the load completes.) I believe the correct solution to this bug is to call FrameLoaderClient::dispatchDidFailProvisionalLoad somehow instead of just silently failing the loadURL / loadWithDocumentLoader calls. Note: It looks like FrameLoader::loadURL has other early returns that could cause similar problems.
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-02-18 16:59:52 PST
https://searchfox.org/wubkat/rev/74c0aa4209e14edf714b16d023ac838b718120f8/Source/WebCore/loader/FrameLoader.cpp#1451
Plugins are gone and from above code, do we need to anything further here? @Simon - I have seen you work on Page Loading bugs in the past (could be my wrong assumption that it might be with you but happy to be corrected and learn something new), should we close this?
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