Changeset 128011 in webkit


Ignore:
Timestamp:
Sep 9, 2012 7:33:40 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] Minibrowser locks up when right clicking editable filed
https://bugs.webkit.org/show_bug.cgi?id=96074

Patch by Jinwoo Song <jinwoo7.song@samsung.com> on 2012-09-09
Reviewed by Gyuyoung Kim.

WebProcess crashes when the context menu type is SubmenuType and non-CROSS_PLATFORM_CONTEXT_MENUS is used.
It is because platformSubMenu() in the ContextMenuItemEfl.cpp returns null. This patch implements the setSubMenu()
and platformSubMenu() to set and return the subMenuItems.

  • platform/efl/ContextMenuItemEfl.cpp:

(WebCore::ContextMenuItem::setSubMenu):
(WebCore::ContextMenuItem::platformSubMenu):
(WebCore):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r128010 r128011  
     12012-09-09  Jinwoo Song  <jinwoo7.song@samsung.com>
     2
     3        [EFL][WK2] Minibrowser locks up when right clicking editable filed
     4        https://bugs.webkit.org/show_bug.cgi?id=96074
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        WebProcess crashes when the context menu type is SubmenuType and non-CROSS_PLATFORM_CONTEXT_MENUS is used.
     9        It is because platformSubMenu() in the ContextMenuItemEfl.cpp returns null. This patch implements the setSubMenu()
     10        and platformSubMenu() to set and return the subMenuItems.
     11
     12        * platform/efl/ContextMenuItemEfl.cpp:
     13        (WebCore::ContextMenuItem::setSubMenu):
     14        (WebCore::ContextMenuItem::platformSubMenu):
     15        (WebCore):
     16
    1172012-09-09  Kangil Han  <kangil.han@samsung.com>
    218
  • trunk/Source/WebCore/platform/efl/ContextMenuItemEfl.cpp

    r113147 r128011  
    44 * Copyright (C) 2008 INdT - Instituto Nokia de Tecnologia
    55 * Copyright (C) 2009-2010 ProFUSION embedded systems
    6  * Copyright (C) 2011 Samsung Electronics
     6 * Copyright (C) 2011-2012 Samsung Electronics
    77 *
    88 * Redistribution and use in source and binary forms, with or without
     
    3434#include "ContextMenuItem.h"
    3535
     36#include "ContextMenu.h"
    3637#include "NotImplemented.h"
    3738
     
    122123}
    123124
    124 void ContextMenuItem::setSubMenu(ContextMenu*)
     125void ContextMenuItem::setSubMenu(ContextMenu* menu)
    125126{
    126     notImplemented();
     127    m_platformDescription.subMenuItems = *menu->platformDescription();
    127128}
    128129
    129130PlatformMenuDescription ContextMenuItem::platformSubMenu() const
    130 {                                                                                       
    131     return 0;
    132 
     131{
     132    return &m_platformDescription.subMenuItems;
     133}
     134
     135void ContextMenuItem::setSubMenu(Vector<ContextMenuItem>& items)
     136{
     137    m_platformDescription.subMenuItems = items;
     138}
     139
    133140#endif
    134141}
Note: See TracChangeset for help on using the changeset viewer.