Increase the depth limit of JSONParser and IPC serialization from 100 to 200.

This impacts extension APIs and the debug protocol. Some webpages
have over 100 levels of nested elements. Some internal representations
further use 2 levels per node to represent the DOM data (e.g. one
DictionaryValue for the node and a ListValue containing the children.)

The affected APIs fail silently when this limit is reached.

Percentiles over ~90M random pages:
  Max depth: go/html-depth
  Iframes found at depth: go/html-iframe-depth

To support 99.9% of pages we need (62 + 35) * 2 == 194 levels of nesting.

BUG=673263

Review-Url: https://codereview.chromium.org/2570113002
Cr-Commit-Position: refs/heads/master@{#442542}


CrOS-Libchrome-Original-Commit: 383b174a3c321fc6963c50515745d559222ba709
3 files changed
tree: 82da861d5a99d00db767d399154c549a4388d450
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/