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

Issue 75026: Ensure we check the page pointer before using it after we come out of NPP_Han... (Closed)

Created:
11 years, 8 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
ananta
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Ensure we check the page pointer before using it after we come out of NPP_HandleEvent, as it might have gone away depending on JavaScript that was executed by the plugin. BUG=9955 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=13858

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -42 lines) Patch
A webkit/data/plugins/delete_frame.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
A webkit/data/plugins/delete_frame_iframe.html View 1 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/glue/plugins/test/plugin_client.cc View 1 2 2 chunks +29 lines, -33 lines 0 comments Download
M webkit/glue/plugins/test/plugin_windowless_test.cc View 1 2 3 chunks +16 lines, -6 lines 2 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.cc View 1 2 1 chunk +5 lines, -1 line 2 comments Download
M webkit/glue/webplugin_impl.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/plugin_tests.cc View 1 2 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
11 years, 8 months ago (2009-04-16 02:15:28 UTC) #1
jam
BTW I tried very hard to make the html be embedded in the test case, ...
11 years, 8 months ago (2009-04-16 02:35:40 UTC) #2
ananta
LGTM. Nice test http://codereview.chromium.org/75026/diff/1017/25 File webkit/glue/plugins/test/plugin_windowless_test.cc (right): http://codereview.chromium.org/75026/diff/1017/25#newcode78 Line 78: NPError result = browser->evaluate(id(), window_obj, ...
11 years, 8 months ago (2009-04-16 16:37:24 UTC) #3
jam
11 years, 8 months ago (2009-04-16 17:56:13 UTC) #4
http://codereview.chromium.org/75026/diff/1017/25
File webkit/glue/plugins/test/plugin_windowless_test.cc (right):

http://codereview.chromium.org/75026/diff/1017/25#newcode78
Line 78: NPError result = browser->evaluate(id(), window_obj,
On 2009/04/16 16:37:24, ananta wrote:
> For consistency should we call SignalTestCompleted?

I think it would confuse things since this isn't really signalling completion,
just deleting the frame.

http://codereview.chromium.org/75026/diff/1017/26
File webkit/glue/plugins/webplugin_delegate_impl.cc (right):

http://codereview.chromium.org/75026/diff/1017/26#newcode223
Line 223: if (handle_event_depth_) {
On 2009/04/16 16:37:24, ananta wrote:
> Would we run into the same issue with windowed plugins?

no since only windowless plugins would use HandleEvent

Powered by Google App Engine
This is Rietveld 408576698