Closed Bug 1253221 Opened 8 years ago Closed 8 years ago

Sync changes from GCLI web project with GCLI in mozilla-central (part 1)

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect, P2)

defect

Tracking

(firefox49 fixed)

RESOLVED FIXED
Firefox 49
Tracking Status
firefox49 --- fixed

People

(Reporter: jwalker, Assigned: jwalker)

Details

(Whiteboard: [btpp-fix-later])

Attachments

(1 file)

The merge between the 2 projects isn't too complex, but I'll do it in steps.

Changes in this patch:

* GCLI gave up with testing via phantomjs a while ago, but the docs didn't keep
  up, so this fixes the docs.

* gcli/languages/command isn't used in Firefox, but on the web if a converter
  wrongly produces a null DOM node, then the UI just looks blank, so this change
  makes the error more obvious. However we don't use this in Firefox. I'd like to
  remove the module, but not in this patch.

* The delegate type (used when we want to defer the type of a parameter, e.g.
  with "pref set PREFNAME VALUE" where the type of value depends on PREFNAME)
  forced children to be prediction-less. This allows them to decide for themselves

* The file type assumed that the local filesystem was the same as the remote one
  which is clearly wrong. The change to gcli/types/file fixes that.

* Typo fix to gcli/util/util

* On very slow connections gcli/cli.js could get in a pickle where 2 changes
  happened out of order. We've planned for this, but got in wrong, so this just
  adds a bit of defensive programming.
Assignee: nobody → jwalker
Changes in this patch:
* GCLI gave up with testing via phantomjs a while ago, but the docs didn't keep
  up, so this fixes the docs.
* gcli/languages/command isn't used in Firefox, but on the web if a converter
  wrongly produces a null DOM node, then the UI just looks blank, so this change
  makes the error more obvious. However we don't use this in Firefox. I'd like to
  remove the module, but not in this patch.
* The delegate type (used when we want to defer the type of a parameter, e.g.
  with "pref set PREFNAME VALUE" where the type of value depends on PREFNAME)
  forced children to be prediction-less. This allows them to decide for themselves
* The file type assumed that the local filesystem was the same as the remote one
  which is clearly wrong. The change to gcli/types/file fixes that.
* Typo fix to gcli/util/util
* On very slow connections gcli/cli.js could get in a pickle where 2 changes
  happened out of order. We've planned for this, but got in wrong, so this just
  adds a bit of defensive programming.

Review commit: https://reviewboard.mozilla.org/r/37851/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/37851/
Attachment #8726207 - Flags: review?(jryans)
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f0468dfd1ee0

(It doesn't show up on the change log, because I previously pushed a broken patch on top of it, but it is the parent of the commits that you can see)
Comment on attachment 8726207 [details]
MozReview Request: Bug 1253221 - Sync changes from GCLI web project; r=jryans

https://reviewboard.mozilla.org/r/37851/#review34459

::: devtools/shared/gcli/source/lib/gcli/cli.js:1173
(Diff revision 1)
> +    if (argTrace.part === 'text' && arg.assignment != null) {

Aha, I think I've seen occasional stacks logged about this...
Comment on attachment 8726207 [details]
MozReview Request: Bug 1253221 - Sync changes from GCLI web project; r=jryans

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/37851/diff/1-2/
https://hg.mozilla.org/mozilla-central/rev/92eb1555b47c
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 49
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: