WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
51062
[chromium] AssociatedURLLoader leaks m_realLoader to its WebURLLoaderClient.
https://bugs.webkit.org/show_bug.cgi?id=51062
Summary
[chromium] AssociatedURLLoader leaks m_realLoader to its WebURLLoaderClient.
Darin Fisher (:fishd, Google)
Reported
2010-12-14 15:00:44 PST
[chromium] AssociatedURLLoader leaks m_realLoader to its WebURLLoaderClient. AssociatedURLLoader should implement WebURLLoaderClient so that it can intercept client callbacks and modify the WebURLLoader parameter to be |this|.
Attachments
v1 patch
(5.81 KB, patch)
2010-12-14 15:02 PST
,
Darin Fisher (:fishd, Google)
dglazkov
: review+
dglazkov
: commit-queue+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Darin Fisher (:fishd, Google)
Comment 1
2010-12-14 15:02:12 PST
Created
attachment 76577
[details]
v1 patch
Eric Seidel (no email)
Comment 2
2010-12-14 15:30:31 PST
Am I understanding correctly that the WebKit API layer was leaking an internal WebKit (or WebCore?) object?
Eric Seidel (no email)
Comment 3
2010-12-14 15:30:46 PST
Leaking in the sense of "providing a pointer to".
Darin Fisher (:fishd, Google)
Comment 4
2010-12-14 20:47:56 PST
(In reply to
comment #2
)
> Am I understanding correctly that the WebKit API layer was leaking an internal WebKit (or WebCore?) object?
Nope. AssociatedURLLoader is a WebURLLoader implementation. It is implemented in terms of the stock WebURLLoader accessible from WebKitClient::createURLLoader(). That internal WebURLLoader was being exposed via WebURLLoaderClient methods. For background, AssociatedURLLoader is allocated via WebFrame::createAssociatedURLLoader(). That method provides a WebURLLoader implementation that can be used to load an URL that should be treated like a subresource of the frame (e.g., it should be subject to cancellation when window.stop() is called, it should be subject to appcache, etc.). The present implementation does not do all of these things yet. I plan on changing AssociatedURLLoader to be based on WebCore::ResourceLoader so that it can.
Darin Fisher (:fishd, Google)
Comment 5
2010-12-15 16:13:06 PST
Landed as
http://trac.webkit.org/changeset/74161
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