| Index: third_party/WebKit/Source/core/frame/FrameSerializer.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
|
| index 6427f7e04fab9595002ef102e06221ba685c23a4..8062d275a49636a11f0c9e742a45af4703b76977 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
|
| @@ -386,11 +386,14 @@ void FrameSerializer::serializeCSSRule(CSSRule* rule)
|
| bool FrameSerializer::shouldAddURL(const KURL& url)
|
| {
|
| return url.isValid() && !m_resourceURLs.contains(url) && !url.protocolIsData()
|
| - && !m_delegate.shouldSkipResource(url);
|
| + && !m_delegate.shouldSkipURL(url);
|
| }
|
|
|
| void FrameSerializer::addToResources(Resource* resource, PassRefPtr<SharedBuffer> data, const KURL& url)
|
| {
|
| + if (m_delegate.shouldSkipResource(resource))
|
| + return;
|
| +
|
| if (!data) {
|
| DLOG(ERROR) << "No data for resource " << url.getString();
|
| return;
|
|
|