Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Issue 53153003: Fix windowed NPAPI plugins covering up dialogs on Win Aura. (Closed)

Created:
7 years, 1 month ago by jam
Modified:
7 years, 1 month ago
CC:
chromium-reviews, jbauman+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, penghuang+watch_chromium.org, sievers+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org
Visibility:
Public.

Description

Fix windowed NPAPI plugins covering up dialogs on Win Aura. The original fix stopped working with the new style of dialogs, since they're not parented to the WebContents anymore but instead to its parent. It also turns out we don't need to watch out for transient windows, as they're now top level ones with their own HWND so clipping works through the OS and we don't need to do anything special. BUG=299224 R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233297 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233398

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : add beginning of a test #

Patch Set 4 : #

Patch Set 5 : fix non-win aura #

Total comments: 2

Patch Set 6 : add comment #

Patch Set 7 : upload after revert #

Patch Set 8 : fix test with small browser size #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -246 lines) Patch
M chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +71 lines, -0 lines 0 comments Download
A chrome/test/data/printing/npapi_plugin.html View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 3 chunks +2 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 8 chunks +6 lines, -132 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 2 3 4 5 6 2 chunks +0 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 5 6 5 chunks +75 lines, -92 lines 0 comments Download
M content/test/plugin/plugin_test_factory.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/test/plugin/plugin_windowed_test.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
jam
7 years, 1 month ago (2013-10-30 23:01:28 UTC) #1
Ben Goodger (Google)
https://codereview.chromium.org/53153003/diff/240001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/53153003/diff/240001/content/browser/web_contents/web_contents_view_aura.cc#newcode678 content/browser/web_contents/web_contents_view_aura.cc:678: // Constrained windows are added as children of the ...
7 years, 1 month ago (2013-10-30 23:23:42 UTC) #2
jam
https://codereview.chromium.org/53153003/diff/240001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/53153003/diff/240001/content/browser/web_contents/web_contents_view_aura.cc#newcode678 content/browser/web_contents/web_contents_view_aura.cc:678: // Constrained windows are added as children of the ...
7 years, 1 month ago (2013-10-31 00:07:04 UTC) #3
jam
ptal, I added a browser test now to verify that the plugin is hidden by ...
7 years, 1 month ago (2013-11-06 02:03:42 UTC) #4
Ben Goodger (Google)
lgtm https://codereview.chromium.org/53153003/diff/940001/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc File chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc (right): https://codereview.chromium.org/53153003/diff/940001/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc#newcode90 chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc:90: IN_PROC_BROWSER_TEST_F(PrintPreviewTest, WindowedNPAPIPluginHidden) { I would add a comment ...
7 years, 1 month ago (2013-11-06 18:11:36 UTC) #5
jam
https://codereview.chromium.org/53153003/diff/940001/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc File chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc (right): https://codereview.chromium.org/53153003/diff/940001/chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc#newcode90 chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc:90: IN_PROC_BROWSER_TEST_F(PrintPreviewTest, WindowedNPAPIPluginHidden) { On 2013/11/06 18:11:37, Ben Goodger (Google) ...
7 years, 1 month ago (2013-11-06 18:15:20 UTC) #6
jam
Ben FYI I've updated the test to handle the case when the browser window is ...
7 years, 1 month ago (2013-11-06 22:29:38 UTC) #7
Ben Goodger (Google)
7 years, 1 month ago (2013-11-07 00:27:43 UTC) #8
Message was sent while issue was closed.
slgtm

Powered by Google App Engine
This is Rietveld 408576698