Bug 112385 - [Chromium] Focus Plugin on TouchStart
Summary: [Chromium] Focus Plugin on TouchStart
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fady Samuel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 15:01 PDT by Fady Samuel
Modified: 2013-03-15 16:03 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.75 KB, patch)
2013-03-14 15:01 PDT, Fady Samuel
no flags Details | Formatted Diff | Diff
Patch (3.55 KB, patch)
2013-03-15 13:25 PDT, Fady Samuel
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fady Samuel 2013-03-14 15:01:22 PDT
[Chromium] Focus Plugin on TouchStart
Comment 1 Fady Samuel 2013-03-14 15:01:36 PDT
Created attachment 193193 [details]
Patch
Comment 2 Sadrul Habib Chowdhury 2013-03-14 15:18:50 PDT
Since we do this for mouse-down events, I think it makes sense to do this on touch-press events too. LGTM
Comment 3 Adam Barth 2013-03-15 11:03:56 PDT
Comment on attachment 193193 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=193193&action=review

> Source/WebKit/chromium/src/WebPluginContainerImpl.cpp:779
> +            Frame* containingFrame = static_cast<FrameView*>(parent())->frame();
> +            if (Page* currentPage = containingFrame->page())
> +                currentPage->focusController()->setFocusedNode(m_element, containingFrame);
> +            else
> +                containingFrame->document()->setFocusedNode(m_element);

This seems copy/pasted from WebPluginContainerImpl::handleMouseEvent.  Can we create a small helper function rather than copy/pasting code?
Comment 4 Fady Samuel 2013-03-15 13:25:12 PDT
Created attachment 193366 [details]
Patch
Comment 5 WebKit Review Bot 2013-03-15 16:03:38 PDT
Comment on attachment 193366 [details]
Patch

Clearing flags on attachment: 193366

Committed r145957: <http://trac.webkit.org/changeset/145957>
Comment 6 WebKit Review Bot 2013-03-15 16:03:42 PDT
All reviewed patches have been landed.  Closing bug.