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

Changeset 267457 in webkit


Ignore:
Timestamp:
Sep 22, 2020, 8:36:13 PM (6 years ago)
Author:
Lauro Moura
Message:

[GTK] REGRESSION(r267329): imported/blink/editing/undo/crash-redo-with-iframes.html is crashing
https://bugs.webkit.org/show_bug.cgi?id=216778

Reviewed by Darin Adler.

Covered by existing tests.

  • editing/markup.cpp:

(WebCore::serializePreservingVisualAppearanceInternal): Return early
also for "negative" ranges to avoid hitting an assertion inside
serializeNodes, as suggested by Darin.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267453 r267457  
     12020-09-22  Lauro Moura  <lmoura@igalia.com>
     2
     3        [GTK] REGRESSION(r267329): imported/blink/editing/undo/crash-redo-with-iframes.html is crashing
     4        https://bugs.webkit.org/show_bug.cgi?id=216778
     5
     6        Reviewed by Darin Adler.
     7
     8        Covered by existing tests.
     9
     10        * editing/markup.cpp:
     11        (WebCore::serializePreservingVisualAppearanceInternal): Return early
     12        also for "negative" ranges to avoid hitting an assertion inside
     13        serializeNodes, as suggested by Darin.
     14
    1152020-09-22  Chris Dumez  <cdumez@apple.com>
    216
  • trunk/Source/WebCore/editing/markup.cpp

    r267363 r267457  
    840840    static NeverDestroyed<const String> interchangeNewlineString(MAKE_STATIC_STRING_IMPL("<br class=\"" AppleInterchangeNewline "\">"));
    841841
    842     if (start == end)
     842    if (!(start < end))
    843843        return emptyString();
    844844
Note: See TracChangeset for help on using the changeset viewer.