WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
117775
Don't retain for the main resource by default
https://bugs.webkit.org/show_bug.cgi?id=117775
Summary
Don't retain for the main resource by default
Ryosuke Niwa
Reported
2013-06-18 20:20:59 PDT
Consider merging
https://chromium.googlesource.com/chromium/blink/+/dad552a64c76e19cffe7c8bea07ffb86c21529be
Prior to this CL, we always retained the underlying data for the main resource. Unfortunately, the main resource can be quite large. For example, on Mobile Gmail, retaining the main resource costs 1.5 MB. After this CL, we clear the main resource after the load completes. In subsequent CLs, I hope to remove the need to retain the main resource during the loading process.
Attachments
Add attachment
proposed patch, testcase, etc.
Geoffrey Garen
Comment 1
2013-06-19 09:31:05 PDT
This may violate the WebKit1 API. But perhaps it's compatible with the WebKit2 API. That said, the main resource is almost certainly in cache, so it's not clear to me what benefit there is to not retaining it.
Ahmad Saleem
Comment 2
2022-08-22 16:55:25 PDT
In DocumentLoader.cpp: This seems to be added:
https://github.com/WebKit/WebKit/blob/7de67f9a0ccc4fc8ce195e32f61e7873ad81345e/Source/WebCore/loader/DocumentLoader.cpp#L208
but not here in DocumentLoader::mainResourceData:
https://github.com/WebKit/WebKit/blob/7de67f9a0ccc4fc8ce195e32f61e7873ad81345e/Source/WebCore/loader/DocumentLoader.cpp#L223
Not after this as well:
https://github.com/WebKit/WebKit/blob/7de67f9a0ccc4fc8ce195e32f61e7873ad81345e/Source/WebCore/loader/DocumentLoader.cpp#L515
Does not add 'void DocumentLoader::clearMainResourceHandle()' from Chromium / Blink patch. _____________ This is added in DocumentLoader.h:
https://github.com/WebKit/WebKit/blob/7de67f9a0ccc4fc8ce195e32f61e7873ad81345e/Source/WebCore/loader/DocumentLoader.h#L497
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