Changeset 86311 in webkit


Ignore:
Timestamp:
May 11, 2011 10:40:20 PM (13 years ago)
Author:
morrita@google.com
Message:

2011-05-10 MORITA Hajime <morrita@google.com>

Reviewed by Kent Tamura.

Crashes if the document inside iframe is removed during pasting some text into it.
https://bugs.webkit.org/show_bug.cgi?id=60534

  • editing/pasteboard/paste-removing-iframe-expected.txt: Added.
  • editing/pasteboard/paste-removing-iframe.html: Added.
  • editing/pasteboard/resources/paste-removing-iframe-child.html: Added.

2011-05-10 MORITA Hajime <morrita@google.com>

Reviewed by Kent Tamura.

Crashes if the document inside iframe is removed during pasting some text into it.
https://bugs.webkit.org/show_bug.cgi?id=60534

Added missing null check.

Test: editing/pasteboard/paste-removing-iframe.html

  • editing/Editor.cpp: (WebCore::Editor::shouldChangeSelection):
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86307 r86311  
     12011-05-10  MORITA Hajime  <morrita@google.com>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Crashes if the document inside iframe is removed during pasting some text into it.
     6        https://bugs.webkit.org/show_bug.cgi?id=60534
     7
     8        * editing/pasteboard/paste-removing-iframe-expected.txt: Added.
     9        * editing/pasteboard/paste-removing-iframe.html: Added.
     10        * editing/pasteboard/resources/paste-removing-iframe-child.html: Added.
     11
    1122011-05-11  MORITA Hajime  <morrita@google.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r86310 r86311  
     12011-05-10  MORITA Hajime  <morrita@google.com>
     2
     3        Reviewed by Kent Tamura.
     4
     5        Crashes if the document inside iframe is removed during pasting some text into it.
     6        https://bugs.webkit.org/show_bug.cgi?id=60534
     7
     8        Added missing null check.
     9       
     10        Test: editing/pasteboard/paste-removing-iframe.html
     11
     12        * editing/Editor.cpp:
     13        (WebCore::Editor::shouldChangeSelection):
     14
    1152011-05-11  Brian Salomon  <bsalomon@google.com>
    216
  • trunk/Source/WebCore/editing/Editor.cpp

    r86295 r86311  
    27882788bool Editor::shouldChangeSelection(const VisibleSelection& oldSelection, const VisibleSelection& newSelection, EAffinity affinity, bool stillSelecting) const
    27892789{
    2790     return client()->shouldChangeSelectedRange(oldSelection.toNormalizedRange().get(), newSelection.toNormalizedRange().get(), affinity, stillSelecting);
     2790    return client() && client()->shouldChangeSelectedRange(oldSelection.toNormalizedRange().get(), newSelection.toNormalizedRange().get(), affinity, stillSelecting);
    27912791}
    27922792
Note: See TracChangeset for help on using the changeset viewer.