New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 775461 link

Starred by 1 user

Issue metadata

Status: Fixed
Merged: issue 775460
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Regression: Unable to rotate pdf clockwise/anticlockwise.

Reported by aiman.an...@etouch.net, Oct 17 2017

Issue description

Chrome Version: 64.0.3242.0 (Official Build)98a037253c9ba8c3c0fd2f927c8bc76e7ab2852f-refs/heads/master@{#509211}(64-bit)

OS: Mac(10.12.6), Win(7,8,10) Linux(14.04 LTS).

Test URL: https://msu.edu/~urban/sme865/resources/embedded_pdf.html

Steps to reproduce:
1.Launch Chrome, go to the above link.
2. Right click on PDF, select Rotate Clockwise from context menu and observe.

Actual Result: Unable to rotate pdf clockwise/anticlockwise.
Expected Result: Should be able to rotate pdf clockwise/anticlockwise.

This is regression issue broken in ‘M-64’ and below per-revision bisect result

Using the per-revision bisect providing the bisect results,
Good Build: 64.0.3241.0(Revision: 508935)
Bad Build: 64.0.3242.0 (Revision: 509211)

You are probably looking for a change made after 509090 (known good), but no later than 509091 (first known bad).

CHANGE-LOG URL:

The script might not always return single CL as suspect as some perf builds might get missing due to failure.

https://chromium.googlesource.com/chromium/src/+log/eb592fb15ca50171c3a3d45225405010cdb933b8..17321e34f830fb514c28d32b1b30ab6991637b0b

Suspect: https://chromium.googlesource.com/chromium/src/+/17321e34f830fb514c28d32b1b30ab6991637b0b

@wjmaclean: Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner.

Thank You!


 
Actual Result.mov
6.4 MB Download
Expected result.mov
3.8 MB Download
Labels: ReleaseBlock-Beta
Tagging with blocker label, please undo if not the case.
Mergedinto: 775460
Status: Duplicate (was: Assigned)
Marking this as duplicate since rotation works if the context menu's top-left corner is inside the PDF's frame bounds, and it will always be if the context menu is displayed in the right position.
Labels: OS-Chrome
Status: Started (was: Duplicate)
Un-duping this because, though it is related to https://bugs.chromium.org/p/chromium/issues/detail?id=775460, it's fix goes beyond just the issue of displaying the context menu in the correct position.
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 23 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc

commit 82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc
Author: W. James MacLean <wjmaclean@chromium.org>
Date: Mon Oct 23 15:05:43 2017

Fix coordinate transformations between plugins and context menus.

This CL fixes two issues. (1) Coordinates sent from PDF plugins used to
need adjustment in render_view_context_menu.cc since they were not
properly converted to root view coordinates before arriving there. With
the addition of TransformPointToRootView() to RenderWidgetHostViewGuest
this is no longer the case, so the adjustment code has been removed.

(2) However, when invoking view messages to the plugin in
RenderViewHostImpl, up until now the root coords were never converted,
nor did they need to be since the context menu managed to send the
pre-adjustment values back. But now the context menu receives the proper
coords in the first place, they need to be converted back to view space
coords. This required implementing TransformPointToLocalCoordSpace, and
a new helper TransformRootPointToViewCoords, to
RenderWidgetHostViewGuest. The helper function may also need to be
implemented for RenderWidgetHostViewChildFrame at some point in the
future.

Bug:  775460 ,  775461 
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_site_isolation
Change-Id: Icfb901295484657535e76007bee79b5cd1da8be8
Reviewed-on: https://chromium-review.googlesource.com/724722
Commit-Queue: James MacLean <wjmaclean@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510794}
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/chrome/browser/pdf/pdf_extension_test.cc
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/chrome/browser/renderer_context_menu/render_view_context_menu.cc
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/chrome/browser/renderer_context_menu/render_view_context_menu.h
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/chrome/browser/ui/cocoa/renderer_context_menu/render_view_context_menu_mac.mm
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/chrome/browser/ui/views/renderer_context_menu/render_view_context_menu_views.cc
[add] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/chrome/test/data/pdf/pdf_embed.html
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/browser/frame_host/render_widget_host_view_guest.cc
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/browser/frame_host/render_widget_host_view_guest.h
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/browser/renderer_host/render_view_host_impl.cc
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/browser/renderer_host/render_widget_host_view_base.cc
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/browser/renderer_host/render_widget_host_view_base.h
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/public/browser/render_widget_host_view.h
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/public/test/browser_test_utils.cc
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/content/public/test/browser_test_utils.h
[modify] https://crrev.com/82b029bc0d2be29bcb95e79b5d11ebbbf6d820cc/testing/buildbot/filters/mus.browser_tests.filter

Status: Fixed (was: Started)

Sign in to add a comment