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

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed)

Created:
7 years, 8 months ago by Jered
Modified:
7 years, 8 months ago
CC:
chromium-reviews, melevin, dhollowa+watch_chromium.org, dougw+watch_chromium.org, gideonwald, sreeram, dominich, Aaron Boodman, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org
Visibility:
Public.

Description

Fixing iframe jank in the local omnibox popup. 1) Previously we created and loaded a new iframe for each suggestion. Suggestion data was served from the renderer by rewriting chrome-search://suggestion to data: URLs. This turned out not to be performant and suffered from other issues like showing a load spinner. Instead, this change creates one set of iframes with the chrome-search origin and uses a controlling iframe to coordinate updating their DOMs with new suggestions. To preserve the chrome-search origin for all the communicating iframes, it no longer rewrites them as data: URLs and instead serves data from a URLDataSource in the browser. 2) For flicker free rendering, old suggestion iframes must be hidden in the same JS context as new ones are shown. Since postMessage() is async, this necessarily means we must render one set of suggestions while showing another (i.e. double buffer). This change modifies the local omnibox popup JS to do that. 3) Several styling and rendering issues are resolved, such as hover, resize and overflow behavior and positioning. I only tested LTR and not RTL, so this change may not address any LTR issues. TEST=Open an incognito window and start typing. Click on suggestions, arrow up/down, hover, and generally try to break things. BUG=223608 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196184

Patch Set 1 #

Total comments: 5

Patch Set 2 : Include missing file. #

Total comments: 28

Patch Set 3 : Rebase. #

Patch Set 4 : Addressing js comments + fixing display issues. #

Patch Set 5 : Addressing cc comments. #

Total comments: 146

Patch Set 6 : Addressing most comments. #

Patch Set 7 : Fixing up/down. #

Total comments: 4

Patch Set 8 : Rewording comment. #

Patch Set 9 : Fixing default colors. #

Patch Set 10 : Rebase. #

Total comments: 41

Patch Set 11 : %s/\$\$/$qs/g #

Patch Set 12 : Changing JS style. #

Total comments: 26

Patch Set 13 : Addressing comments. #

Patch Set 14 : Asserting. #

Patch Set 15 : Adding unit tests. #

Total comments: 18

Patch Set 16 : Addressing comments. #

Total comments: 16

Patch Set 17 : Returning instead of using out param. #

Patch Set 18 : Rebase. #

Patch Set 19 : Converting to ResourceBundle API. #

Patch Set 20 : Addressing comments. #

Total comments: 10

Patch Set 21 : Addressing comments. #

Total comments: 2

Patch Set 22 : Adding assert.js #

Patch Set 23 : Merging 13898003. #

Patch Set 24 : Setting origin from browser state. #

Patch Set 25 : Removing sites, too. #

Total comments: 2

Patch Set 26 : Fixing nit. #

Patch Set 27 : Updating unit test. #

Patch Set 28 : Rebase. #

Patch Set 29 : Using WebContents URL. #

Patch Set 30 : Fixing comment. #

Total comments: 18

Patch Set 31 : Addressing comments. #

Patch Set 32 : Rebase + const. #

Patch Set 33 : Fixing border. #

Patch Set 34 : Rebuilding on 14039004. #

Total comments: 27

Patch Set 35 : Merging and addressing comments. #

Patch Set 36 : Removing instant_source.{cc,h} #

Patch Set 37 : Putting back CSS fixes. #

Patch Set 38 : Rebase. #

Patch Set 39 : virtual #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1327 lines, -557 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 3 chunks +8 lines, -18 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 12 chunks +602 lines, -177 lines 0 comments Download
A chrome/browser/resources/omnibox_result.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/resources/omnibox_result.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/resources/omnibox_result_loader.html View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/omnibox_result_loader.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +110 lines, -0 lines 0 comments Download
M chrome/browser/search/instant_io_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/search/local_ntp_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/search/local_ntp_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 2 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/search/suggestion_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/search/suggestion_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +137 lines, -0 lines 0 comments Download
A chrome/browser/search/suggestion_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1 chunk +178 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/instant_types.h View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/common/instant_types.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 2 chunks +0 lines, -18 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 5 chunks +19 lines, -23 lines 0 comments Download
D chrome/renderer/resources/omnibox_result.html View 1 chunk +0 lines, -46 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -18 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3 chunks +0 lines, -141 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 11 chunks +105 lines, -75 lines 0 comments Download
M content/browser/webui/url_data_manager_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/url_data_source.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +7 lines, -0 lines 0 comments Download
A ui/webui/resources/js/assert.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +24 lines, -0 lines 0 comments Download
M ui/webui/resources/js/util.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -17 lines 0 comments Download
M ui/webui/resources/webui_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 91 (0 generated)
Jered
Please review. Still working on tests.
7 years, 8 months ago (2013-03-30 16:15:36 UTC) #1
sreeram
https://codereview.chromium.org/13375003/diff/1/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/13375003/diff/1/chrome/browser/browser_resources.grd#newcode164 chrome/browser/browser_resources.grd:164: <include name="IDR_OMNIBOX_RESULT_JS" file="resources\omnibox_result.js" type="BINDATA" /> omnibox_result.js is missing from ...
7 years, 8 months ago (2013-04-01 21:03:27 UTC) #2
Jered
https://codereview.chromium.org/13375003/diff/1/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/13375003/diff/1/chrome/browser/browser_resources.grd#newcode164 chrome/browser/browser_resources.grd:164: <include name="IDR_OMNIBOX_RESULT_JS" file="resources\omnibox_result.js" type="BINDATA" /> On 2013/04/01 21:03:27, sreeram ...
7 years, 8 months ago (2013-04-01 21:29:18 UTC) #3
sreeram
https://codereview.chromium.org/13375003/diff/1/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/1/chrome/browser/resources/omnibox_result_loader.js#newcode83 chrome/browser/resources/omnibox_result_loader.js:83: updateResult(window.parent.frames[id].document, suggestion, On 2013/04/01 21:29:18, Jered wrote: > On ...
7 years, 8 months ago (2013-04-01 21:50:40 UTC) #4
Jered
On 2013/04/01 21:50:40, sreeram wrote: > https://codereview.chromium.org/13375003/diff/1/chrome/browser/resources/omnibox_result_loader.js > File chrome/browser/resources/omnibox_result_loader.js (right): > > https://codereview.chromium.org/13375003/diff/1/chrome/browser/resources/omnibox_result_loader.js#newcode83 > ...
7 years, 8 months ago (2013-04-01 22:06:05 UTC) #5
Jered
The rebase in PS3 leaves out the field trial; we can still merge that in ...
7 years, 8 months ago (2013-04-02 19:02:25 UTC) #6
samarth
Haven't made it all the way through yet, but here are some initial comments. Thanks, ...
7 years, 8 months ago (2013-04-02 23:26:58 UTC) #7
Jered
PTAL for JS samarth, I have cleaned up a bit. https://codereview.chromium.org/13375003/diff/24/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/24/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode143 ...
7 years, 8 months ago (2013-04-03 18:49:33 UTC) #8
Jered
https://codereview.chromium.org/13375003/diff/24/chrome/browser/resources/omnibox_result.html File chrome/browser/resources/omnibox_result.html (right): https://codereview.chromium.org/13375003/diff/24/chrome/browser/resources/omnibox_result.html#newcode24 chrome/browser/resources/omnibox_result.html:24: <span id="url"></span> On 2013/04/03 18:49:33, Jered wrote: > On ...
7 years, 8 months ago (2013-04-03 18:50:31 UTC) #9
Jered
PTAL https://codereview.chromium.org/13375003/diff/24/chrome/browser/search/suggestion_source.cc File chrome/browser/search/suggestion_source.cc (right): https://codereview.chromium.org/13375003/diff/24/chrome/browser/search/suggestion_source.cc#newcode30 chrome/browser/search/suggestion_source.cc:30: std::string StripQueryString(const std::string& path) { On 2013/04/02 23:26:58, ...
7 years, 8 months ago (2013-04-04 17:30:10 UTC) #10
Jered
Please review (broadening). palmer -> epic security review brettw -> content_renderer_client, chrome_browser.gypi, renderer/resources dbeam -> ...
7 years, 8 months ago (2013-04-04 23:00:04 UTC) #11
Dan Beam
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css#newcode12 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css:12: .suggestionsBox { suggesions-box https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode119 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:119: ...
7 years, 8 months ago (2013-04-05 01:07:37 UTC) #12
palmer
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode46 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:46: var QUERY_COLOR = '#000'; NIT: const instead of var? ...
7 years, 8 months ago (2013-04-05 01:30:31 UTC) #13
Dan Beam
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode46 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:46: var QUERY_COLOR = '#000'; On 2013/04/05 01:30:32, Chris P. ...
7 years, 8 months ago (2013-04-05 01:38:45 UTC) #14
Jered
Thanks! Addressed most comments, but had some questions below. https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css#newcode12 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.css:12: ...
7 years, 8 months ago (2013-04-05 15:30:23 UTC) #15
Jered
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode674 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:674: if (active) { On 2013/04/05 15:30:23, Jered wrote: > ...
7 years, 8 months ago (2013-04-05 15:51:39 UTC) #16
palmer
https://codereview.chromium.org/13375003/diff/60003/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/60003/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode282 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:282: // Call parseInt for security paranoia since we're interpolating ...
7 years, 8 months ago (2013-04-05 18:43:39 UTC) #17
Jered
https://codereview.chromium.org/13375003/diff/60003/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/60003/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode282 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:282: // Call parseInt for security paranoia since we're interpolating ...
7 years, 8 months ago (2013-04-05 18:51:20 UTC) #18
palmer
"git apply ~/your-patch" fails, sadly, so I am having a hard time trying it out. ...
7 years, 8 months ago (2013-04-05 19:22:04 UTC) #19
Jered
On 2013/04/05 19:22:04, Chris P. wrote: > "git apply ~/your-patch" fails, sadly, so I am ...
7 years, 8 months ago (2013-04-05 20:23:03 UTC) #20
Dan Beam
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode119 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:119: function $(selector) { On 2013/04/05 15:30:23, Jered wrote: > ...
7 years, 8 months ago (2013-04-05 21:58:48 UTC) #21
palmer
> Just rebased; does this help? Yes, thanks. Building now, and then I'll try it ...
7 years, 8 months ago (2013-04-05 22:02:19 UTC) #22
Jered
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode119 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:119: function $(selector) { On 2013/04/05 21:58:49, Dan Beam wrote: ...
7 years, 8 months ago (2013-04-05 22:05:02 UTC) #23
Dan Beam
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode200 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:200: iframe.style.top = OFF_SCREEN; On 2013/04/05 15:30:23, Jered wrote: > ...
7 years, 8 months ago (2013-04-05 22:17:25 UTC) #24
Dan Beam
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/omnibox_result.html File chrome/browser/resources/omnibox_result.html (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/omnibox_result.html#newcode19 chrome/browser/resources/omnibox_result.html:19: .hide { display: none; } On 2013/04/05 15:30:23, Jered ...
7 years, 8 months ago (2013-04-05 22:19:54 UTC) #25
Jered
Couple quick questions for you Dan before I have another go at the Javascript... https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js ...
7 years, 8 months ago (2013-04-05 22:28:26 UTC) #26
samarth
Mostly minor comments below. LGTM. (Also, this version is ridiculously better than the baseline iframes ...
7 years, 8 months ago (2013-04-05 22:30:25 UTC) #27
Dan Beam
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode281 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:281: this.iframe_.style[isRtl ? 'right' : 'left'] = startMargin + 'px'; ...
7 years, 8 months ago (2013-04-05 22:32:47 UTC) #28
Dan Beam
as to general questions on style -- it's up to you and/or your project. most ...
7 years, 8 months ago (2013-04-05 22:36:09 UTC) #29
Jered
On 2013/04/05 22:36:09, Dan Beam wrote: > as to general questions on style -- it's ...
7 years, 8 months ago (2013-04-05 23:43:31 UTC) #30
Jered
https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/41001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode281 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:281: this.iframe_.style[isRtl ? 'right' : 'left'] = startMargin + 'px'; ...
7 years, 8 months ago (2013-04-05 23:43:41 UTC) #31
Dan Beam
https://codereview.chromium.org/13375003/diff/60009/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/60009/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode285 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:285: parseInt(startMargin, 10) + 'px'; what happens when this is ...
7 years, 8 months ago (2013-04-06 00:18:12 UTC) #32
Jered
Ping brettw? I'd like to be sure this content change is ok. Thanks for the ...
7 years, 8 months ago (2013-04-06 02:45:16 UTC) #33
Dan Beam
https://codereview.chromium.org/13375003/diff/60009/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/60009/chrome/browser/resources/omnibox_result_loader.js#newcode25 chrome/browser/resources/omnibox_result_loader.js:25: (color % 1) == 0 && color >= 0 ...
7 years, 8 months ago (2013-04-06 02:51:47 UTC) #34
Jered
Thanks Dan, getting close hopefully. https://codereview.chromium.org/13375003/diff/60009/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/60009/chrome/browser/resources/omnibox_result_loader.js#newcode25 chrome/browser/resources/omnibox_result_loader.js:25: (color % 1) == ...
7 years, 8 months ago (2013-04-06 16:00:30 UTC) #35
Dan Beam
super close https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html (right): https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html#newcode13 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html:13: <iframe style="display:none" ^ use hidden instead of ...
7 years, 8 months ago (2013-04-08 16:46:58 UTC) #36
Jered
https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html (right): https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html#newcode13 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.html:13: <iframe style="display:none" On 2013/04/08 16:46:58, Dan Beam wrote: > ...
7 years, 8 months ago (2013-04-08 21:43:15 UTC) #37
Jered
+sky, -brettw (please feel free to add yourself back if you've started though) Please review ...
7 years, 8 months ago (2013-04-08 21:44:35 UTC) #38
sky
Brett is a better reviewer of this code.
7 years, 8 months ago (2013-04-08 23:08:18 UTC) #39
Jered
On 2013/04/08 23:08:18, sky wrote: > Brett is a better reviewer of this code. Ok, ...
7 years, 8 months ago (2013-04-08 23:14:15 UTC) #40
brettw
content_renderer_client, chrome_browser.gypi, renderer/resources LGTM https://codereview.chromium.org/13375003/diff/108002/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/13375003/diff/108002/chrome/renderer/chrome_content_renderer_client.cc#newcode1243 chrome/renderer/chrome_content_renderer_client.cc:1243: *new_url = url.ReplaceComponents(set_origin); I'd just ...
7 years, 8 months ago (2013-04-08 23:16:42 UTC) #41
Jered
Thanks Brett. Sky, would you mind taking a look for the miscellany? chrome/browser/browser_resouces.gyp chrome/common https://codereview.chromium.org/13375003/diff/108002/chrome/renderer/chrome_content_renderer_client.cc ...
7 years, 8 months ago (2013-04-08 23:55:05 UTC) #42
palmer
https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js#newcode92 chrome/browser/resources/omnibox_result_loader.js:92: if (message.origin != EMBEDDER_ORIGIN) Where does |EMBEDDER_ORIGIN| get set? ...
7 years, 8 months ago (2013-04-09 00:26:15 UTC) #43
sky
LGTM
7 years, 8 months ago (2013-04-09 00:38:31 UTC) #44
Jered
Questions for you Chris to be sure I understand... https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js#newcode92 chrome/browser/resources/omnibox_result_loader.js:92: ...
7 years, 8 months ago (2013-04-09 01:18:58 UTC) #45
Jered
https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js#newcode27 chrome/browser/resources/omnibox_result_loader.js:27: if (typeof(color) == 'number' && isFinite(color) && On 2013/04/08 ...
7 years, 8 months ago (2013-04-09 01:21:36 UTC) #46
Jered
https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/98001/chrome/browser/resources/omnibox_result_loader.js#newcode27 chrome/browser/resources/omnibox_result_loader.js:27: if (typeof(color) == 'number' && isFinite(color) && On 2013/04/08 ...
7 years, 8 months ago (2013-04-09 03:24:24 UTC) #47
Dan Beam
lgtm https://codereview.chromium.org/13375003/diff/98001/chrome/common/url_constants.cc File chrome/common/url_constants.cc (right): https://codereview.chromium.org/13375003/diff/98001/chrome/common/url_constants.cc#newcode524 chrome/common/url_constants.cc:524: const char kChromeSearchSuggestionURL[] = "chrome-search://suggestion/"; On 2013/04/08 21:43:16, ...
7 years, 8 months ago (2013-04-09 03:56:04 UTC) #48
palmer
https://codereview.chromium.org/13375003/diff/108002/chrome/browser/search/suggestion_source.cc File chrome/browser/search/suggestion_source.cc (right): https://codereview.chromium.org/13375003/diff/108002/chrome/browser/search/suggestion_source.cc#newcode72 chrome/browser/search/suggestion_source.cc:72: // param is always set by the renderer for ...
7 years, 8 months ago (2013-04-09 19:09:54 UTC) #49
palmer
Overall, this CL is large and seems to have lots of security implications, but to ...
7 years, 8 months ago (2013-04-09 19:11:53 UTC) #50
Jered
On 2013/04/09 19:11:53, Chris P. wrote: > Overall, this CL is large and seems to ...
7 years, 8 months ago (2013-04-09 19:19:51 UTC) #51
samarth
Thanks for the detailed review, Chris (and others)! Chris: I definitely agree that there are ...
7 years, 8 months ago (2013-04-09 21:55:05 UTC) #52
Jered
https://codereview.chromium.org/13375003/diff/98001/chrome/common/url_constants.cc File chrome/common/url_constants.cc (right): https://codereview.chromium.org/13375003/diff/98001/chrome/common/url_constants.cc#newcode524 chrome/common/url_constants.cc:524: const char kChromeSearchSuggestionURL[] = "chrome-search://suggestion/"; On 2013/04/09 03:56:05, Dan ...
7 years, 8 months ago (2013-04-09 21:59:38 UTC) #53
melevin
I'm having some trouble patching this change in. What is the base revision? https://codereview.chromium.org/13375003/diff/157002/ui/webui/resources/js/util.js File ...
7 years, 8 months ago (2013-04-10 18:08:19 UTC) #54
Jered
Chris, any new thoughts? Michael, PS23 has a rebase and unfortunately tricky merge (the longer ...
7 years, 8 months ago (2013-04-10 20:22:48 UTC) #55
Jered
Please review. sreeram -> chrome/browser/search jam -> url_data_source palmer -> security Background for url_data_source change: ...
7 years, 8 months ago (2013-04-12 00:02:36 UTC) #56
Jered
jam: Please also review content/browser/webui/url_data_manager_backend.cc
7 years, 8 months ago (2013-04-12 00:09:42 UTC) #57
jam
lgtm https://codereview.chromium.org/13375003/diff/204001/content/public/browser/url_data_source.cc File content/public/browser/url_data_source.cc (right): https://codereview.chromium.org/13375003/diff/204001/content/public/browser/url_data_source.cc#newcode57 content/public/browser/url_data_source.cc:57: std::string* path) const { nit: inline this in ...
7 years, 8 months ago (2013-04-12 16:57:19 UTC) #58
Jered
Thanks for the quick review. https://codereview.chromium.org/13375003/diff/204001/content/public/browser/url_data_source.cc File content/public/browser/url_data_source.cc (right): https://codereview.chromium.org/13375003/diff/204001/content/public/browser/url_data_source.cc#newcode57 content/public/browser/url_data_source.cc:57: std::string* path) const { ...
7 years, 8 months ago (2013-04-12 17:23:24 UTC) #59
Jered
PS25 updates the SuggestionSource unittest, apologies as it took a full day to understand all ...
7 years, 8 months ago (2013-04-12 21:14:46 UTC) #60
Jered
sreeram, palmer, any more thoughts here? I would like to land this soon. On 2013/04/12 ...
7 years, 8 months ago (2013-04-15 14:21:46 UTC) #61
Jered
On 2013/04/15 14:21:46, Jered wrote: > sreeram, palmer, any more thoughts here? I would like ...
7 years, 8 months ago (2013-04-15 23:31:50 UTC) #62
Jered
ok PTAL Broadly, what I've been struggling with here is a reasonable way to get ...
7 years, 8 months ago (2013-04-16 02:05:08 UTC) #63
sreeram
Sorry for the delay. Still reviewing... https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/resources/extensions/searchbox_api.js File chrome/renderer/resources/extensions/searchbox_api.js (right): https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/resources/extensions/searchbox_api.js#newcode240 chrome/renderer/resources/extensions/searchbox_api.js:240: }; Nit: Add ...
7 years, 8 months ago (2013-04-16 18:23:16 UTC) #64
sreeram
https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc#newcode1235 chrome/renderer/searchbox/searchbox_extension.cc:1235: WebKit::WebFrame* webframe = WebKit::WebFrame::frameForCurrentContext(); I'm confident you've thought this ...
7 years, 8 months ago (2013-04-16 19:27:23 UTC) #65
Jered
https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc#newcode1235 chrome/renderer/searchbox/searchbox_extension.cc:1235: WebKit::WebFrame* webframe = WebKit::WebFrame::frameForCurrentContext(); On 2013/04/16 19:27:23, sreeram wrote: ...
7 years, 8 months ago (2013-04-16 19:32:47 UTC) #66
Jered
https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc#newcode1235 chrome/renderer/searchbox/searchbox_extension.cc:1235: WebKit::WebFrame* webframe = WebKit::WebFrame::frameForCurrentContext(); On 2013/04/16 19:32:47, Jered wrote: ...
7 years, 8 months ago (2013-04-16 19:45:12 UTC) #67
Jered
https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/resources/extensions/searchbox_api.js File chrome/renderer/resources/extensions/searchbox_api.js (right): https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/resources/extensions/searchbox_api.js#newcode240 chrome/renderer/resources/extensions/searchbox_api.js:240: }; On 2013/04/16 18:23:16, sreeram wrote: > Nit: Add ...
7 years, 8 months ago (2013-04-16 20:12:48 UTC) #68
samarth
https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/13375003/diff/225001/chrome/renderer/searchbox/searchbox_extension.cc#newcode104 chrome/renderer/searchbox/searchbox_extension.cc:104: // starts with those prefixes. On 2013/04/16 20:12:49, Jered ...
7 years, 8 months ago (2013-04-16 20:16:50 UTC) #69
sreeram
https://codereview.chromium.org/13375003/diff/225001/chrome/browser/resources/omnibox_result_loader.js File chrome/browser/resources/omnibox_result_loader.js (right): https://codereview.chromium.org/13375003/diff/225001/chrome/browser/resources/omnibox_result_loader.js#newcode100 chrome/browser/resources/omnibox_result_loader.js:100: var iframe = window.parent.frames[iframeId]; Just FYI: I spent a ...
7 years, 8 months ago (2013-04-16 21:23:31 UTC) #70
sreeram
https://codereview.chromium.org/13375003/diff/225001/chrome/browser/search/suggestion_source.cc File chrome/browser/search/suggestion_source.cc (right): https://codereview.chromium.org/13375003/diff/225001/chrome/browser/search/suggestion_source.cc#newcode172 chrome/browser/search/suggestion_source.cc:172: *origin = contents->GetURL().GetOrigin().spec(); On 2013/04/16 21:23:31, sreeram wrote: > ...
7 years, 8 months ago (2013-04-16 21:28:19 UTC) #71
sreeram
LGTM
7 years, 8 months ago (2013-04-16 21:30:14 UTC) #72
Jered
Thanks for reviewing. https://codereview.chromium.org/13375003/diff/225001/chrome/browser/search/suggestion_source.cc File chrome/browser/search/suggestion_source.cc (right): https://codereview.chromium.org/13375003/diff/225001/chrome/browser/search/suggestion_source.cc#newcode172 chrome/browser/search/suggestion_source.cc:172: *origin = contents->GetURL().GetOrigin().spec(); On 2013/04/16 21:23:31, ...
7 years, 8 months ago (2013-04-16 23:16:38 UTC) #73
Jered
https://codereview.chromium.org/13375003/diff/225001/chrome/browser/search/suggestion_source.cc File chrome/browser/search/suggestion_source.cc (right): https://codereview.chromium.org/13375003/diff/225001/chrome/browser/search/suggestion_source.cc#newcode80 chrome/browser/search/suggestion_source.cc:80: // this here because GetOrigin() needs to run on ...
7 years, 8 months ago (2013-04-18 18:11:48 UTC) #74
Jered
ptal palmer; PS34 is built on 14039004 which is pending with approvals. On 2013/04/18 18:11:48, ...
7 years, 8 months ago (2013-04-18 22:07:33 UTC) #75
melevin
Can you rebase past r195323?
7 years, 8 months ago (2013-04-20 01:13:44 UTC) #76
jered1
I expect that to take a few full days next week. :-) On Apr 19, ...
7 years, 8 months ago (2013-04-20 01:22:56 UTC) #77
palmer
Getting very close! just some tweaks and questions. https://codereview.chromium.org/13375003/diff/150002/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js File chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js (right): https://codereview.chromium.org/13375003/diff/150002/chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js#newcode524 chrome/browser/resources/local_omnibox_popup/local_omnibox_popup.js:524: this.suggestions_[this.selectedIndex_].restrcitedId); ...
7 years, 8 months ago (2013-04-22 19:38:37 UTC) #78
Jered
PTAL. Note there are two patches included in this patch, 14150011 to fix chromium on ...
7 years, 8 months ago (2013-04-22 23:02:57 UTC) #79
Jered
Note that all the popup code has now moved to local_ntp.{html,css.js} files. On 2013/04/22 23:02:57, ...
7 years, 8 months ago (2013-04-22 23:04:44 UTC) #80
palmer
LGTM https://codereview.chromium.org/13375003/diff/150002/content/browser/webui/web_ui_data_source_unittest.cc File content/browser/webui/web_ui_data_source_unittest.cc (right): https://codereview.chromium.org/13375003/diff/150002/content/browser/webui/web_ui_data_source_unittest.cc#newcode62 content/browser/webui/web_ui_data_source_unittest.cc:62: 0, 0, > It's a no-op in all ...
7 years, 8 months ago (2013-04-23 00:34:24 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jered@chromium.org/13375003/271001
7 years, 8 months ago (2013-04-23 23:15:43 UTC) #82
commit-bot: I haz the power
Presubmit check for 13375003-271001 failed and returned exit status 1. INFO:root:Found 32 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-23 23:15:58 UTC) #83
Jered
Thanks, commit-bot. That was helpful. There are two lines of comments explaining why this exception ...
7 years, 8 months ago (2013-04-23 23:17:49 UTC) #84
samarth
See crbug.com/222642 for an example how to add an exception. Until then, you can use ...
7 years, 8 months ago (2013-04-23 23:21:16 UTC) #85
Jered
On 2013/04/23 23:21:16, samarth wrote: > See crbug.com/222642 for an example how to add an ...
7 years, 8 months ago (2013-04-23 23:23:08 UTC) #86
samarth
I know that's not possible in CSS because the Chromium CSS linter strips out comments. ...
7 years, 8 months ago (2013-04-23 23:25:59 UTC) #87
Dan Beam
On 2013/04/23 23:23:08, Jered wrote: > On 2013/04/23 23:21:16, samarth wrote: > > See crbug.com/222642 ...
7 years, 8 months ago (2013-04-23 23:26:12 UTC) #88
Jered
On 2013/04/23 23:26:12, Dan Beam wrote: > On 2013/04/23 23:23:08, Jered wrote: > > On ...
7 years, 8 months ago (2013-04-23 23:42:33 UTC) #89
Jered
On 2013/04/23 23:42:33, Jered wrote: > On 2013/04/23 23:26:12, Dan Beam wrote: > > On ...
7 years, 8 months ago (2013-04-24 18:06:19 UTC) #90
Jered
7 years, 8 months ago (2013-04-24 18:14:11 UTC) #91
Message was sent while issue was closed.
Committed patchset #39 manually as r196184 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698