Changeset 244320 in webkit


Ignore:
Timestamp:
Apr 15, 2019 6:55:50 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Fix logic flow for error log
https://bugs.webkit.org/show_bug.cgi?id=196933

Patch by Eike Rathke <erack@redhat.com> on 2019-04-15
Reviewed by Alexey Proskuryakov.

Missing block braces logged an error always, not just
if (actionIfInvalid == Complain).

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::isSafeToLoadURL):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r244315 r244320  
     12019-04-15  Eike Rathke  <erack@redhat.com>
     2
     3        Fix logic flow for error log
     4        https://bugs.webkit.org/show_bug.cgi?id=196933
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Missing block braces logged an error always, not just
     9        if (actionIfInvalid == Complain).
     10
     11        * html/HTMLMediaElement.cpp:
     12        (WebCore::HTMLMediaElement::isSafeToLoadURL):
     13
    1142019-04-15  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r243319 r244320  
    20992099    RefPtr<Frame> frame = document().frame();
    21002100    if (!frame || !document().securityOrigin().canDisplay(url)) {
    2101         if (actionIfInvalid == Complain)
     2101        if (actionIfInvalid == Complain) {
    21022102            FrameLoader::reportLocalLoadFailed(frame.get(), url.stringCenterEllipsizedToLength());
    21032103            ERROR_LOG(LOGIDENTIFIER, url , " was rejected by SecurityOrigin");
     2104        }
    21042105        return false;
    21052106    }
Note: See TracChangeset for help on using the changeset viewer.