gecko-dev/dom/manifest
Andrew Halberstadt 57887f2601 Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher
Currently manifestparser will only look for line continuations *after* looking for a key. This means
that line continuations cannot contain key separators. For example, this:

    [test]
    foo=
      bar=baz

gets treated as:

    {'name': 'test', 'foo': '', 'bar': 'baz'}

Here, bar=baz will be treated as a new key/value pair despite the indentation. This patch switches
the order around, so we look for a continuation first. Now, it is only treated as a continuation if
the indent is greater than the indent of the preceding key.

So this manifest:

    [test]
    foo=bar
      baz=fleem

is a continuation and results in:

    {'name': 'test', 'foo': 'bar\nbaz=fleem'}

But this manifest:

    [test]
      foo=bar
      baz=fleem

is not a continuation, and yields:

    {'name': 'test', 'foo': 'bar', 'baz': 'fleem'}

MozReview-Commit-ID: FAMP5TUIo9q

--HG--
extra : rebase_source : 624c53cfe0565374c1224dd86a3fffc8831279d3
2017-07-19 14:48:01 -04:00
..
test Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher 2017-07-19 14:48:01 -04:00
ImageObjectProcessor.jsm Bug 1264816 - Drop background_color from Web manifest image object. r=mconley 2016-04-18 23:19:00 +02:00
Manifest.jsm Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
ManifestFinder.jsm Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
ManifestIcons.jsm Bug 1347154 - Set correct csp for icon fetching. r=marcosc 2017-03-17 10:55:59 +00:00
ManifestObtainer.jsm Bug 1374282 - hand cleanup for the script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
ManifestProcessor.jsm Bug 1275160 - Web Manifest: Don't special case orientation. r=mconley 2016-05-25 18:35:00 -04:00
ValueExtractor.jsm Bug 1086997 - Localize developer warnings issued by the manifest processor. r=baku 2016-02-02 16:47:51 -08:00
moz.build Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt 2017-03-01 08:20:25 -05:00