Bug 31448 - Menu button shows wrong content in Chromium
Summary: Menu button shows wrong content in Chromium
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 16:45 PST by Evan Stade
Modified: 2009-11-18 15:11 PST (History)
2 users (show)

See Also:


Attachments
patch (2.46 KB, patch)
2009-11-12 16:47 PST, Evan Stade
fishd: review-
Details | Formatted Diff | Diff
same, minus lint error (2.45 KB, patch)
2009-11-16 13:02 PST, Evan Stade
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Stade 2009-11-12 16:45:37 PST
behavior on IE8: if a node (such as a link) has focus, the menu button shows a context menu in the top left of the screen. The contents of the menu are relevant to the focused node.

behavior on firefox 3 win and linux: if a node (such as a link) has focus, the menu button shows a context menu at the node's location. The contents of the menu are relevant to the focused node.

behavior on chrome windows and linux: if a node (such as a link) has focus, the menu button shows a context menu in the top left of the screen. The contents of the menu are relevant to whatever node is at the top left of the screen. (Note that if a text area has focus, the context menu will be relevant to the text---this patch doesn't change that behavior.)

behavior on chrome with this patch: matches firefox

p.s. there needs to be a WebKit Chromium component option in this bug tracker
Comment 1 Evan Stade 2009-11-12 16:47:19 PST
Created attachment 43116 [details]
patch
Comment 2 Adam Barth 2009-11-14 22:49:29 PST
Checking style for patch 43116 from bug 31448.
Running check-webkit-style
WebKit/chromium/src/WebViewImpl.cpp:605:  One line control clauses should not use braces.  [whitespace/braces] [4]
Done processing WebKit/chromium/src/WebViewImpl.cpp
Total errors found: 1
Comment 3 Evan Stade 2009-11-16 10:25:32 PST
I think that linter error is a false positive. The style guide doesn't really say but I assume that if one part of a block of if-elses uses curlies then they all should.
Comment 4 Darin Fisher (:fishd, Google) 2009-11-16 10:28:57 PST
Comment on attachment 43116 [details]
patch

> Index: WebKit/chromium/src/WebViewImpl.cpp

> +    } else if (focusedNode) {
> +        location = focusedNode->getRect().bottomLeft();
> +    } else {

nit: no brackets around single line statements.

otherwise, LGTM
Comment 5 Evan Stade 2009-11-16 13:02:30 PST
Created attachment 43320 [details]
same, minus lint error
Comment 6 WebKit Commit Bot 2009-11-18 15:11:07 PST
Comment on attachment 43320 [details]
same, minus lint error

Clearing flags on attachment: 43320

Committed r51142: <http://trac.webkit.org/changeset/51142>
Comment 7 WebKit Commit Bot 2009-11-18 15:11:23 PST
All reviewed patches have been landed.  Closing bug.