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

Changeset 236985 in webkit


Ignore:
Timestamp:
Oct 9, 2018, 2:59:12 PM (8 years ago)
Author:
Michael Catanzaro
Message:

[WPE][GTK] Complex text crashes with harfbuzz 1.8.8
https://bugs.webkit.org/show_bug.cgi?id=190409

Reviewed by Žan Doberšek.

We discovered that harfbuzz 1.8.8 breaks WebKit by changing the ownership semantics of
hb_icu_get_unicode_funcs() from (transfer full) to (transfer none). Our code was actually
expecting (transfer none), so it's not immediately clear to me why it's crashing now, but
doesn't matter as Behdad recommends removing this line of code because it hasn't been
been needed for many years.

This should be covered by all our complex text tests if the bots were upgraded to the newer
harfbuzz.

  • platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp:

(WebCore::ComplexTextController::collectComplexTextRunsForCharacters):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r236983 r236985  
     12018-10-09  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [WPE][GTK] Complex text crashes with harfbuzz 1.8.8
     4        https://bugs.webkit.org/show_bug.cgi?id=190409
     5
     6        Reviewed by Žan Doberšek.
     7
     8        We discovered that harfbuzz 1.8.8 breaks WebKit by changing the ownership semantics of
     9        hb_icu_get_unicode_funcs() from (transfer full) to (transfer none). Our code was actually
     10        expecting (transfer none), so it's not immediately clear to me why it's crashing now, but
     11        doesn't matter as Behdad recommends removing this line of code because it hasn't been
     12        been needed for many years.
     13
     14        This should be covered by all our complex text tests if the bots were upgraded to the newer
     15        harfbuzz.
     16
     17        * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp:
     18        (WebCore::ComplexTextController::collectComplexTextRunsForCharacters):
     19
    1202018-10-09  Daniel Bates  <dabates@apple.com>
    221
  • trunk/Source/WebCore/platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp

    r233851 r236985  
    194194    auto features = fontFeatures(m_font, fontPlatformData.orientation());
    195195    HbUniquePtr<hb_buffer_t> buffer(hb_buffer_create());
    196     hb_buffer_set_unicode_funcs(buffer.get(), hb_icu_get_unicode_funcs());
    197196
    198197    for (unsigned i = 0; i < runCount; ++i) {
Note: See TracChangeset for help on using the changeset viewer.