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

Changeset 98788 in webkit


Ignore:
Timestamp:
Oct 28, 2011, 5:32:36 PM (15 years ago)
Author:
sullivan@apple.com
Message:

Improvement to the fix for:
https://bugs.webkit.org/show_bug.cgi?id=71142
Whether backspace goes Back should be configurable

Reviewed by Dan Bernstein.

  • page/EventHandler.cpp:

(WebCore::EventHandler::defaultBackspaceEventHandler):
Do the frame->settings() check after the !page check, since
a null page means null settings.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r98787 r98788  
     12011-10-28  John Sullivan  <sullivan@apple.com>
     2
     3        Improvement to the fix for:
     4        https://bugs.webkit.org/show_bug.cgi?id=71142
     5        Whether backspace goes Back should be configurable
     6
     7        Reviewed by Dan Bernstein.
     8
     9        * page/EventHandler.cpp:
     10        (WebCore::EventHandler::defaultBackspaceEventHandler):
     11        Do the frame->settings() check after the !page check, since
     12        a null page means null settings.
     13
    1142011-10-28  Adam Barth  <abarth@webkit.org>
    215
  • trunk/Source/WebCore/page/EventHandler.cpp

    r98769 r98788  
    30253025        return;
    30263026   
    3027     if (!m_frame->settings()->backspaceKeyNavigationEnabled())
    3028         return;
    3029 
    30303027    Page* page = m_frame->page();
    30313028    if (!page)
    30323029        return;
    30333030
     3031    if (!m_frame->settings()->backspaceKeyNavigationEnabled())
     3032        return;
     3033   
    30343034    bool handledEvent = false;
    30353035
Note: See TracChangeset for help on using the changeset viewer.