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

Issue 400023: Correction of return parameter validation for popup.getParentWindow, and extension.getPopupView. (Closed)

Created:
11 years, 1 month ago by Jeff Timanus
Modified:
9 years, 7 months ago
Reviewers:
rafaelw
CC:
chromium-reviews_googlegroups.com, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Addition of "optional" tag to chrome.exerpimental.popup routines that may return an undefined value.chrome.experimental.extension.getPopupView() may return undefined if no pop-up is currently displayed.chrome.experimental.popup.getParentWindow() may return undefined if called from a non-popup view.BUG=28045 TEST=extension_popup_apitest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32387

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M chrome/common/extensions/api/extension_api.json View 1 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/popup_api/toolband.html View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jeff Timanus
11 years, 1 month ago (2009-11-17 23:48:13 UTC) #1
rafaelw
lgtm. nit: note in the description for the docs here that these functions will return ...
11 years, 1 month ago (2009-11-17 23:59:26 UTC) #2
Jeff Timanus
Thanks Rafael. I added some relevant unit-tests, if you also want to take a look ...
11 years, 1 month ago (2009-11-18 18:23:39 UTC) #3
rafaelw1
11 years, 1 month ago (2009-11-18 18:40:54 UTC) #4
nice

On Wed, Nov 18, 2009 at 10:23 AM,  <twiz@chromium.org> wrote:
> Thanks Rafael.
>
> I added some relevant unit-tests, if you also want to take a look at those.
>
> Jeff
>
> On 2009/11/17 23:59:26, rafaelw wrote:
>>
>> lgtm.
>
>> nit: note in the description for the docs here that these functions will
>
> return
>>
>> undefined if there "isn't one".
>
>
>
> http://codereview.chromium.org/400023
>

Powered by Google App Engine
This is Rietveld 408576698