DescriptionFixing the Position of Context Menu for BrowserPlugin (<webview>)
With current implementation of the BrowserPlugin, all WebMouseEvents are
routed, throught the browser (RenderWidgetHostViewGuest), to the
renderer process of the guest. The guest uses the coordinates, as passed, for creating the ContextMenu event.
Therefore, the guest renderer process is oblivious to any CSS transforms
applied on the BrowserPlugin and as a result, the reported position of
the context menu is potentially incorrect.
This patch applies a hacky solution to resolve this issue. The work
around is to store the location of the context menu from a MouseDown
event. The position is measured form the global coordinates of the mouse
event and the boundaries of the owner's view.
BUG=470087
Committed: https://crrev.com/b205e53f3aa9a741f4dffa5726992976c517f6ee
Cr-Commit-Position: refs/heads/master@{#347195}
Patch Set 1 #
Total comments: 6
Patch Set 2 : #Patch Set 3 : Added Some Comments. #Patch Set 4 : Added TODO(ekaramad) #Patch Set 5 : Changed BUG URL -> BUG=ID and Updated Comments. #Patch Set 6 : Test #Patch Set 7 : Fixed Test Name #
Total comments: 14
Patch Set 8 : #Patch Set 9 : Rebase #Patch Set 10 : Fixed a Build Error in MAC #Messages
Total messages: 43 (13 generated)
|