WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
35879
Eliminate m_mightDownloadFromHandle
https://bugs.webkit.org/show_bug.cgi?id=35879
Summary
Eliminate m_mightDownloadFromHandle
Alexey Proskuryakov
Reported
2010-03-08 14:25:35 PST
It's only used on Mac, and doesn't seem to be really needed. The performance effect of not wrapping a connection delegate seems minimal, but the effect on code complexity is significant. Besides, we weren't setting it correctly anyway - XMLHttpRequest was hitting the complex code path here.
Attachments
proposed patch
(9.36 KB, patch)
2010-03-08 15:00 PST
,
Alexey Proskuryakov
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2010-03-08 15:00:35 PST
Created
attachment 50250
[details]
proposed patch
Darin Adler
Comment 2
2010-03-08 15:02:49 PST
Comment on
attachment 50250
[details]
proposed patch r=me assuming there is no measurable performance penalty to the extra level of indirection of every delegate call
Darin Adler
Comment 3
2010-03-08 15:03:24 PST
Comment on
attachment 50250
[details]
proposed patch
> + d->m_proxy = wkCreateNSURLConnectionDelegateProxy();
Is ownership correct here? The function has create in its name, but I don't see an adopt.
Alexey Proskuryakov
Comment 4
2010-03-08 15:11:28 PST
> Is ownership correct here?
I think so - there is an explicit release call below. But I'll change to adopt, to avoid current and future confusion. d->m_proxy = wkCreateNSURLConnectionDelegateProxy(); [d->m_proxy.get() setDelegate:ResourceHandle::delegate()]; [d->m_proxy.get() release];
Alexey Proskuryakov
Comment 5
2010-03-08 15:52:34 PST
Committed <
http://trac.webkit.org/changeset/55688
>.
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