⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 278615 in webkit


Ignore:
Timestamp:
Jun 8, 2021, 9:54:10 AM (5 years ago)
Author:
Russell Epstein
Message:

Apply patch. rdar://problem/78789795

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-607-branch/Source/WebCore/css/FontFace.cpp

    r239535 r278615  
    444444        if (!m_loadedPromise.isFulfilled())
    445445            m_loadedPromise.resolve(*this);
    446         deref();
     446        if (face.status() != CSSFontFace::Status::Success && face.status() != CSSFontFace::Status::Failure)
     447            deref();
    447448        return;
    448449    case CSSFontFace::Status::Failure:
     
    451452        if (!m_loadedPromise.isFulfilled())
    452453            m_loadedPromise.reject(Exception { NetworkError });
    453         deref();
     454        if (face.status() != CSSFontFace::Status::Success && face.status() != CSSFontFace::Status::Failure)
     455            deref();
    454456        return;
    455457    case CSSFontFace::Status::Pending:
Note: See TracChangeset for help on using the changeset viewer.