)]}'
{
  "commit": "7ccae91ac1f6fd6c873f1104eefc8b823bd147a7",
  "tree": "a0438eff81e17d09eb88a115e412828979c138ee",
  "parents": [
    "b710a6e0290f7cb9c3ad55666c5f8573aed2ee8f"
  ],
  "author": {
    "name": "Bruno Corona",
    "email": "brunocorona.alcantar@gmail.com",
    "time": "Fri Aug 07 08:38:38 2026 -0600"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Aug 07 14:38:38 2026 +0000"
  },
  "message": "[web] Fix null-check crash when a platform view is disposed mid-frame (#190071)\n\n## Description\n\nOn Flutter Web, `PlatformViewEmbedder._getElement` force-unwrapped the\nclip chain for a platform view (`_viewClipChains[viewId]!.root`). If a\nview is disposed while still referenced by the frame being submitted\n(seen under memory pressure / hidden tab), the `!` threw `Null check\noperator used on a null value` and crashed the frame.\n\nThis change makes the composition tolerate a missing clip chain: the\nview is skipped instead of crashing, consistent with the existing\ninvalid-view handling in `submitFrame`. A regression test covers the\ndispose-mid-frame case.\n\nNote: the second crash reported in the issue\n(`_PlatformViewPlaceholderBox.performLayout`) is already fixed on\nmaster, so this PR only addresses the engine crash.\n\n## Fixes\n\nFixes flutter/flutter#190017\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant documentation (doc comments with `///`).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/wiki/Tree-hygiene#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/AI-contributions.md\n[Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[breaking change policy]:\nhttps://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/wiki/Data-driven-Fixes\n[test-exempt]:\nhttps://github.com/flutter/flutter/wiki/Tree-hygiene#tests\n[Discord]: https://github.com/flutter/flutter/wiki/Chat\n\nCo-authored-by: Harry Terkelsen \u003c1961493+harryterkelsen@users.noreply.github.com\u003e\nCo-authored-by: zhongliugo \u003czhongliu88889@gmail.com\u003e\nCo-authored-by: Mouad Debbar \u003cmdebbar@google.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dddbb02efac5e7d7a1442ea48fadcf9c6dc0d876",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/lib/web_ui/lib/src/engine/platform_views/embedder.dart",
      "new_id": "80ba7d30a11e88f6f48a745773252cc12ac5ea3d",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/lib/web_ui/lib/src/engine/platform_views/embedder.dart"
    },
    {
      "type": "modify",
      "old_id": "518902f38ced1713a792fedb1a2b05e85b52ef86",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/lib/web_ui/test/ui/platform_view_test.dart",
      "new_id": "00de1727c6845cc55a1ce7ac05202e74bcf7a77b",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/lib/web_ui/test/ui/platform_view_test.dart"
    }
  ]
}
