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

Issue 1642833002: Stubbed runtime and app.runtime in caterpillar.js. Resolves #8. (Closed)

Created:
4 years, 11 months ago by Matthew Alger
Modified:
4 years, 10 months ago
Reviewers:
raymes
CC:
Matt Giuca
Base URL:
git@github.com:chromium/caterpillar.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Stubbed runtime and app.runtime in caterpillar.js. Resolves #8. Currently, caterpillar.py stubs app.runtime so that the initial call to onLaunched for window creation won't fail. If that call fails, then the service worker won't install, as it has a script error. This CL moves this stubbing to caterpillar.js, which is always a dependency. This is an improvement over the existing location of the stub, since the stub is common code and static, and so should not be included in a generated file. Also, currently the runtime polyfill is required as a dependency for caterpillar.js, since caterpillar.setError needs to access the runtime namespace. This CL adds a runtime stub to caterpillar.js so runtime is no longer needed as a dependency. This resolves issue #8. https://github.com/chromium/caterpillar/issues/8 R=raymes@chromium.org Committed: a2d90e3ad21309465a3eaf945a5da5f8c22a992c

Patch Set 1 #

Total comments: 19

Patch Set 2 : Response to CR #

Patch Set 3 : Merge from master #

Total comments: 2

Patch Set 4 : Response to CR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -19 lines) Patch
M src/caterpillar.py View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M src/js/caterpillar.js View 1 2 3 1 chunk +18 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Matthew Alger
This CL stubs both runtime and app.runtime in the common Caterpillar JS. This involves a ...
4 years, 11 months ago (2016-01-28 04:51:41 UTC) #2
raymes
Could you expand the CL description? You should always explain why you are making a ...
4 years, 10 months ago (2016-01-31 23:44:37 UTC) #3
Matthew Alger
https://codereview.chromium.org/1642833002/diff/1/src/js/caterpillar.js File src/js/caterpillar.js (right): https://codereview.chromium.org/1642833002/diff/1/src/js/caterpillar.js#newcode35 src/js/caterpillar.js:35: // in Chrome Apps. On 2016/01/31 23:44:37, raymes wrote: ...
4 years, 10 months ago (2016-02-01 00:14:34 UTC) #4
raymes
Please also see my comment above about expanding the CL description :) https://codereview.chromium.org/1642833002/diff/1/src/js/caterpillar.js File src/js/caterpillar.js ...
4 years, 10 months ago (2016-02-01 00:18:44 UTC) #5
Matthew Alger
On 2016/02/01 00:18:44, raymes wrote: > Please also see my comment above about expanding the ...
4 years, 10 months ago (2016-02-01 00:30:37 UTC) #7
Matthew Alger
https://codereview.chromium.org/1642833002/diff/1/src/js/caterpillar.js File src/js/caterpillar.js (right): https://codereview.chromium.org/1642833002/diff/1/src/js/caterpillar.js#newcode35 src/js/caterpillar.js:35: // in Chrome Apps. On 2016/02/01 00:18:44, raymes wrote: ...
4 years, 10 months ago (2016-02-01 00:36:52 UTC) #8
raymes
lgtm https://codereview.chromium.org/1642833002/diff/40001/src/js/caterpillar.js File src/js/caterpillar.js (right): https://codereview.chromium.org/1642833002/diff/40001/src/js/caterpillar.js#newcode35 src/js/caterpillar.js:35: // All Chrome Apps call this method to ...
4 years, 10 months ago (2016-02-01 01:51:10 UTC) #9
Matthew Alger
https://codereview.chromium.org/1642833002/diff/40001/src/js/caterpillar.js File src/js/caterpillar.js (right): https://codereview.chromium.org/1642833002/diff/40001/src/js/caterpillar.js#newcode35 src/js/caterpillar.js:35: // All Chrome Apps call this method to launch ...
4 years, 10 months ago (2016-02-02 22:18:26 UTC) #10
Matthew Alger
4 years, 10 months ago (2016-02-02 22:18:35 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
a2d90e3ad21309465a3eaf945a5da5f8c22a992c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698