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

Issue 1931833004: [ios Mojo] Committed forked version of require.js. (Closed)

Created:
4 years, 7 months ago by Eugene But (OOO till 7-30)
Modified:
4 years, 7 months ago
CC:
chromium-reviews, Ken Rockot(use gerrit already)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios Mojo] Forked version of require.js needed for WebUI Mojo. iOS WebUI will be rebuilt on top of Mojo. All mojo dependencies in JavaScript are managed via |define| function, which is natively implemented in content// only for WebUI pages. iOS does not use content, so |define| can only be implemented in JavaScript. Require.js open source library implements |define| in almost exactly same way as needed by web//. The only exception is that loading can not happen from network, because WKWebView does not support custom network protocols. This require.js file is a forked and stripped down version of open-source require.js. Fetching the scripts is delegated to native code by sending loadMojo message. Changes made in require.js: - changed code for loading the modules; - removed workarounds non needed for WebKit; - removed code which is not used for WebUI; Mojo for WebUI design doc: https://docs.google.com/document/d/1iUJXX_zoY2BbnecpfxjznOeasf29KUzl_9S_LG08Bes/edit#heading=h.yjqp5garsqf9 BUG=567809 Committed: https://crrev.com/703f8f2899ceccc0c05d05b6e3930b2e6c23aeb9 Cr-Commit-Position: refs/heads/master@{#392194}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments #

Total comments: 2

Patch Set 3 : Added local modifications notes #

Total comments: 2

Patch Set 4 : Marked security critical. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1105 lines, -3 lines) Patch
A + ios/third_party/requirejs/LICENSE View 2 chunks +27 lines, -3 lines 0 comments Download
A + ios/third_party/requirejs/OWNERS View 1 1 chunk +1 line, -0 lines 0 comments Download
A ios/third_party/requirejs/README.chromium View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A ios/third_party/requirejs/require.js View 1 1 chunk +1060 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (15 generated)
Eugene But (OOO till 7-30)
jyquinn@ for iOS WebUI dpapad@ for JavaScript xam@ for OSTPR
4 years, 7 months ago (2016-04-28 18:42:33 UTC) #4
chromium-reviews
LGTM for OSTPR On Thu, Apr 28, 2016 at 11:42 AM, <eugenebut@chromium.org> wrote: > Reviewers: ...
4 years, 7 months ago (2016-04-28 19:24:16 UTC) #5
Jackie Quinn
On 2016/04/28 19:24:16, chromium-reviews wrote: > LGTM for OSTPR > > On Thu, Apr 28, ...
4 years, 7 months ago (2016-04-28 21:21:21 UTC) #6
dpapad
+rockot just as FYI. @rockot: You mentioned in the past (IIRC) that Mojo team was ...
4 years, 7 months ago (2016-04-28 21:28:07 UTC) #7
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1931833004/diff/1/ios/third_party/requirejs/OWNERS File ios/third_party/requirejs/OWNERS (right): https://codereview.chromium.org/1931833004/diff/1/ios/third_party/requirejs/OWNERS#newcode1 ios/third_party/requirejs/OWNERS:1: eugenebut@chromium.org On 2016/04/28 21:28:07, dpapad wrote: > According to ...
4 years, 7 months ago (2016-04-29 18:04:42 UTC) #8
dpapad
lgtm
4 years, 7 months ago (2016-04-29 21:02:22 UTC) #9
Eugene But (OOO till 7-30)
Thanks everyone!
4 years, 7 months ago (2016-04-29 21:03:19 UTC) #10
dpapad
https://codereview.chromium.org/1931833004/diff/20001/ios/third_party/requirejs/README.chromium File ios/third_party/requirejs/README.chromium (right): https://codereview.chromium.org/1931833004/diff/20001/ios/third_party/requirejs/README.chromium#newcode12 ios/third_party/requirejs/README.chromium:12: and quality of your code. Can you add a ...
4 years, 7 months ago (2016-04-29 21:03:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1931833004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1931833004/20001
4 years, 7 months ago (2016-04-29 21:03:44 UTC) #14
dpapad
Actually I am revoking my LGTM for now, because it is not clear to me ...
4 years, 7 months ago (2016-04-29 21:05:49 UTC) #15
Eugene But (OOO till 7-30)
>> Specifically, did you get an OK from chrome-eng reviewer? Yes. See the second message ...
4 years, 7 months ago (2016-04-29 21:42:57 UTC) #17
Eugene But (OOO till 7-30)
Mike, could you please do Chrome Eng Review for require.js, which is needed by Mojo. ...
4 years, 7 months ago (2016-04-29 22:02:34 UTC) #20
pink (ping after 24hrs)
You can bring it to chrome eng review yourself. Probably best for you to do ...
4 years, 7 months ago (2016-05-02 12:52:39 UTC) #21
Robert Sesek
Please take this to eng review first, and then email security@chromium.org for 3p inclusion.
4 years, 7 months ago (2016-05-02 22:00:36 UTC) #22
brettw
LGTM from eng-review. You should get legal sign-off before landing. You can probably land before ...
4 years, 7 months ago (2016-05-03 18:07:00 UTC) #25
brettw
On 2016/05/03 18:07:00, brettw wrote: > LGTM from eng-review. You should get legal sign-off before ...
4 years, 7 months ago (2016-05-03 18:12:38 UTC) #26
Martin Barbella
Still trying to find a security reviewer, but I'll take a look tomorrow if no ...
4 years, 7 months ago (2016-05-05 21:15:42 UTC) #28
Eugene But (OOO till 7-30)
https://codereview.chromium.org/1931833004/diff/40001/ios/third_party/requirejs/README.chromium File ios/third_party/requirejs/README.chromium (right): https://codereview.chromium.org/1931833004/diff/40001/ios/third_party/requirejs/README.chromium#newcode6 ios/third_party/requirejs/README.chromium:6: Security Critical: no On 2016/05/05 21:15:42, Martin Barbella wrote: ...
4 years, 7 months ago (2016-05-05 21:27:01 UTC) #29
Martin Barbella
LGTM from security. I don't think that including this library has any inherent problems, but ...
4 years, 7 months ago (2016-05-06 22:08:45 UTC) #30
Eugene But (OOO till 7-30)
Thanks everyone!
4 years, 7 months ago (2016-05-06 22:12:32 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1931833004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1931833004/60001
4 years, 7 months ago (2016-05-06 22:12:59 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-06 23:01:12 UTC) #36
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 23:03:14 UTC) #38
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/703f8f2899ceccc0c05d05b6e3930b2e6c23aeb9
Cr-Commit-Position: refs/heads/master@{#392194}

Powered by Google App Engine
This is Rietveld 408576698