LGTM
Please create a crbug for the issue, and associate this review with
it. I think we'll want to try to get this merged to M9 if possible, so
we'll need a bug.
Cheers,
Jói
On Thu, Dec 9, 2010 at 6:57 PM, <twiz@chromium.org> wrote:
> Reviewers: joi,
>
> Message:
> Joi,
>
> This is a fix that will prevent the symptom of the issue we discussed
> earlier
> today. This is a fix that will stop the symptom.
>
> Jeff
>
>
> Description:
> Simple fix preventing a potential crash location when shifting focus from an
> experimental extension popup view.
>
> BUG=NONE
> TEST=ExtensionApiTest.Popup
>
>
> Please review this at http://codereview.chromium.org/5733002/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
> M chrome/browser/extensions/extension_popup_api.cc
>
>
> Index: chrome/browser/extensions/extension_popup_api.cc
> ===================================================================
> --- chrome/browser/extensions/extension_popup_api.cc (revision 68649)
> +++ chrome/browser/extensions/extension_popup_api.cc (working copy)
> @@ -242,6 +242,12 @@
> // If no view is to be focused, then Chrome was deactivated, so hide the
> // popup.
> if (focused_now) {
> + // On XP, the focus change handler may be invoked when the delegate
> has
> + // already been revoked.
> + // TODO(twiz@chromium.org): Resolve the trigger of this behaviour.
> + if (!dispatcher_ || !dispatcher_->delegate())
> + return;
> +
> gfx::NativeView host_view =
> dispatcher_->delegate()->GetNativeViewOfHost();
>
>
>
>
Issue 5733002: Preventive fix for focus shifting behaviour in extension popup views
(Closed)
Created 10 years ago by Jeff Timanus
Modified 9 years, 6 months ago
Reviewers: joi
Base URL: svn://svn.chromium.org/chrome/trunk/src/
Comments: 0