Changeset 202751 in webkit


Ignore:
Timestamp:
Jul 1, 2016 1:46:14 PM (8 years ago)
Author:
akling@apple.com
Message:

Add early return when processing content extensions if there aren't any.
<https://webkit.org/b/159363>

Reviewed by Antti Koivisto.

Short-circuit outta there if there aren't any extensions to query.

  • contentextensions/ContentExtensionsBackend.cpp:

(WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202749 r202751  
     12016-07-01  Andreas Kling  <akling@apple.com>
     2
     3        Add early return when processing content extensions if there aren't any.
     4        <https://webkit.org/b/159363>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Short-circuit outta there if there aren't any extensions to query.
     9
     10        * contentextensions/ContentExtensionsBackend.cpp:
     11        (WebCore::ContentExtensions::ContentExtensionsBackend::processContentExtensionRulesForLoad):
     12
    1132016-07-01  Eric Carlson  <eric.carlson@apple.com>
    214
  • trunk/Source/WebCore/contentextensions/ContentExtensionsBackend.cpp

    r194496 r202751  
    149149BlockedStatus ContentExtensionsBackend::processContentExtensionRulesForLoad(ResourceRequest& request, ResourceType resourceType, DocumentLoader& initiatingDocumentLoader)
    150150{
     151    if (m_contentExtensions.isEmpty())
     152        return BlockedStatus::NotBlocked;
     153
    151154    Document* currentDocument = nullptr;
    152155    URL mainDocumentURL;
Note: See TracChangeset for help on using the changeset viewer.