)]}'
{
  "commit": "d2415ae4482085c4909f5cce94de255491a7f5da",
  "tree": "0b3efad8a70123949bd09dd58d396f2ca446644d",
  "parents": [
    "53ffa8cabeaaed9febcbb682fb957f4531ac4f53"
  ],
  "author": {
    "name": "Hiroshige Hayashizaki",
    "email": "hiroshige@chromium.org",
    "time": "Wed Aug 03 17:51:22 2022"
  },
  "committer": {
    "name": "Chromium LUCI CQ",
    "email": "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed Aug 03 17:51:22 2022"
  },
  "message": "Refactor ScriptLoader per-spec\n\nIn order to\n\n- Reflect HTML spec updates, mainly\n  https://github.com/whatwg/html/pull/7876, and\n- Make the intervention logic clearer.\n\nNamely, this CL largely refactors the final part of\n`PrepareScript()` (corresponding to Steps 31 and 32),\nby changing the code structure according to html#7876\nand restructuring the logic into three steps:\n\n1. Determine per-spec scheduling type in\n   `GetScriptSchedulingTypePerSpec()`.\n2. Modify the scheduling type due to interventions, and\n3. Actually schedule scripts based on the scheduling type\n   and interact with ScriptRunner and parsers.\n\nOther parts are more straightforward and somehow mechanical:\n\n- Renaming ScriptLoader::`non_blocking_` to `force_async_`.\n- Updating spec comments (using\n  https://docs.google.com/document/d/1vmnpbDvMR-ph0v88lC810xsE6kjWVsQP351_l65pxLs/edit#heading\u003dh.2obuaw96wltr).\n- Other very minor refactoring.\n\nThis CL shouldn\u0027t change the behavior.\n\nBug: 1344772, 1340837, 1339112\nChange-Id: I788f682531fa0d417338562a4f0420f4c8b49e72\nReviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3795585\nReviewed-by: Kouhei Ueno \u003ckouhei@chromium.org\u003e\nReviewed-by: Minoru Chikamune \u003cchikamune@chromium.org\u003e\nReviewed-by: Shunya Shishido \u003csisidovski@chromium.org\u003e\nCommit-Queue: Hiroshige Hayashizaki \u003chiroshige@chromium.org\u003e\nCr-Commit-Position: refs/heads/main@{#1031114}\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "734e9b2bdf6c4d8ecd05b295bba8f03f48fd3af2",
      "old_mode": 33188,
      "old_path": "third_party/blink/renderer/core/html/html_script_element.cc",
      "new_id": "14fb92fa47f59da50ad69b15f1b7776b91de6fa1",
      "new_mode": 33188,
      "new_path": "third_party/blink/renderer/core/html/html_script_element.cc"
    },
    {
      "type": "modify",
      "old_id": "1485e86c23ca3d7dbf89e26f290c98d4530fe79e",
      "old_mode": 33188,
      "old_path": "third_party/blink/renderer/core/script/html_parser_script_runner.cc",
      "new_id": "acdde7fc77da13b737184e6c677f130a6f47efcf",
      "new_mode": 33188,
      "new_path": "third_party/blink/renderer/core/script/html_parser_script_runner.cc"
    },
    {
      "type": "modify",
      "old_id": "cf1acb991607ac2cf60f0348ea10db814534a541",
      "old_mode": 33188,
      "old_path": "third_party/blink/renderer/core/script/script_loader.cc",
      "new_id": "b567e4566eb4e45f4b7aa58a8fee83d5f611333b",
      "new_mode": 33188,
      "new_path": "third_party/blink/renderer/core/script/script_loader.cc"
    },
    {
      "type": "modify",
      "old_id": "3a0cf57e7d80533bbddef54ee54b85fbbb011e67",
      "old_mode": 33188,
      "old_path": "third_party/blink/renderer/core/script/script_loader.h",
      "new_id": "3db9354253a5ce3cb08b3e64053e4a4b0f061f81",
      "new_mode": 33188,
      "new_path": "third_party/blink/renderer/core/script/script_loader.h"
    },
    {
      "type": "modify",
      "old_id": "35e811e1aad97ac5da5060b7807f317145294a26",
      "old_mode": 33188,
      "old_path": "third_party/blink/renderer/core/script/script_scheduling_type.h",
      "new_id": "89d85d5f5bcdb1e175bbe5fc3896e265552a3c3e",
      "new_mode": 33188,
      "new_path": "third_party/blink/renderer/core/script/script_scheduling_type.h"
    },
    {
      "type": "modify",
      "old_id": "ec570870f2a2062639cebc2c5d330107700c6f29",
      "old_mode": 33188,
      "old_path": "third_party/blink/renderer/core/script/xml_parser_script_runner.cc",
      "new_id": "7262f4e54be10e8863d1405f44ecb58b57d30c18",
      "new_mode": 33188,
      "new_path": "third_party/blink/renderer/core/script/xml_parser_script_runner.cc"
    }
  ]
}
