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

Issue 343433005: Show error for invalid url in chrome.app.window.create() (Closed)

Created:
6 years, 6 months ago by Nikhil
Modified:
6 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Show error for invalid url in chrome.app.window.create() Show error when an http:// URL is passed as parameter to chrome.app.window.create(). BUG=241487 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278389

Patch Set 1 #

Total comments: 2

Patch Set 2 : Review feedback #

Total comments: 2

Patch Set 3 : Refactored code #

Total comments: 2

Patch Set 4 : Rephrase error message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Nikhil
PTAL. Thanks! Documentation doesn't say anything on constraints for URL passed in parameter so I'm ...
6 years, 6 months ago (2014-06-17 14:53:23 UTC) #1
benwells
https://codereview.chromium.org/343433005/diff/1/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/343433005/diff/1/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode163 chrome/browser/extensions/api/app_window/app_window_api.cc:163: WriteToConsole(content::CONSOLE_MESSAGE_LEVEL_WARNING, Errors from APIs are generally communicated via chrome.runtime.lastError, ...
6 years, 6 months ago (2014-06-18 03:22:18 UTC) #2
Nikhil
On 2014/06/18 03:22:18, benwells wrote: > https://codereview.chromium.org/343433005/diff/1/chrome/browser/extensions/api/app_window/app_window_api.cc > File chrome/browser/extensions/api/app_window/app_window_api.cc (right): > > https://codereview.chromium.org/343433005/diff/1/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode163 > ...
6 years, 6 months ago (2014-06-18 07:52:20 UTC) #3
benwells
On 2014/06/18 07:52:20, Nikhil wrote: > On 2014/06/18 03:22:18, benwells wrote: > > > https://codereview.chromium.org/343433005/diff/1/chrome/browser/extensions/api/app_window/app_window_api.cc ...
6 years, 6 months ago (2014-06-18 08:31:04 UTC) #4
Nikhil
Made the changes to communicate error. PTAL. Thanks! https://codereview.chromium.org/343433005/diff/1/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/343433005/diff/1/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode163 chrome/browser/extensions/api/app_window/app_window_api.cc:163: WriteToConsole(content::CONSOLE_MESSAGE_LEVEL_WARNING, ...
6 years, 6 months ago (2014-06-18 08:52:39 UTC) #5
benwells
https://codereview.chromium.org/343433005/diff/20001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/343433005/diff/20001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode164 chrome/browser/extensions/api/app_window/app_window_api.cc:164: if (GURL(params->url).has_scheme()) { Looking 10 lines or so up, ...
6 years, 6 months ago (2014-06-18 22:53:37 UTC) #6
Nikhil
Refactored code to combine both cases. PTAL. Thanks! https://codereview.chromium.org/343433005/diff/20001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/343433005/diff/20001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode164 chrome/browser/extensions/api/app_window/app_window_api.cc:164: if ...
6 years, 6 months ago (2014-06-19 08:26:28 UTC) #7
benwells
lgtm https://codereview.chromium.org/343433005/diff/40001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/343433005/diff/40001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode56 chrome/browser/extensions/api/app_window/app_window_api.cc:56: "Url passed should be local for security reasons."; ...
6 years, 6 months ago (2014-06-19 08:40:32 UTC) #8
Nikhil
Rephrased error message. PTAL. https://codereview.chromium.org/343433005/diff/40001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/343433005/diff/40001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode56 chrome/browser/extensions/api/app_window/app_window_api.cc:56: "Url passed should be local ...
6 years, 6 months ago (2014-06-19 08:55:58 UTC) #9
benwells
On 2014/06/19 08:55:58, Nikhil wrote: > Rephrased error message. PTAL. > > https://codereview.chromium.org/343433005/diff/40001/chrome/browser/extensions/api/app_window/app_window_api.cc > File ...
6 years, 6 months ago (2014-06-19 09:02:20 UTC) #10
Nikhil
The CQ bit was checked by n.bansal@samsung.com
6 years, 6 months ago (2014-06-19 09:05:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/n.bansal@samsung.com/343433005/60001
6 years, 6 months ago (2014-06-19 09:07:12 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 15:32:31 UTC) #13
Message was sent while issue was closed.
Change committed as 278389

Powered by Google App Engine
This is Rietveld 408576698