)]}'
{
  "commit": "1a5ec9fb4eb1642f9976f095c13f4772b8d69e03",
  "tree": "409682a67c08d16e4a7308fe144a92ebe98e79bd",
  "parents": [
    "fde20e170bebdde902d38dd577a0543e11b6d4d4"
  ],
  "author": {
    "name": "Stefan Smolen",
    "email": "ssmole@microsoft.com",
    "time": "Tue Apr 16 00:00:38 2024 +0000"
  },
  "committer": {
    "name": "Pdfium LUCI CQ",
    "email": "pdfium-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Tue Apr 16 00:00:38 2024 +0000"
  },
  "message": "Gate GDI APIs behind IsUser32AndGdi32Available in cpdf_interactiveform.cpp\n\nUnder win32k lockdown, which is detectable using the\nIsUser32AndGdi32Available helper function and used in chromium renderer\nand service sandboxes, APIs which call into win32k.sys like GetDC,\nEnumFontFamiliesExW, ReleaseDC will no-op in the kernel and fail or\nreturn no data.\n\nWe\u0027re planning make chromium changes that will cause the DLLs hosting\nthese APIs to fail to load (and crash in the delayload runtime) under\nwin32k lockdown, adding these if checks will prevent us from trying to\nload the dlls.\n\nBy only ever returning kDefaultAnsiFontName or an empty string from\nGetNativeFontName, then we never call AddWindowsFont in AddNativeFont\neither, as AddNativeFont also calls GDI APIs.\n\nBug: pdfium:2140\nChange-Id: I0ded3ace2cde39d4f9f4529707af616daed44366\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/118172\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\nReviewed-by: Thomas Sepez \u003ctsepez@google.com\u003e\nReviewed-by: Tom Sepez \u003ctsepez@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fe7c07a88020ca869da6b552f8183d046ce5842e",
      "old_mode": 33188,
      "old_path": "core/fpdfdoc/cpdf_interactiveform.cpp",
      "new_id": "5a01ad28abe020f3dff84403f4de2513f450f828",
      "new_mode": 33188,
      "new_path": "core/fpdfdoc/cpdf_interactiveform.cpp"
    }
  ]
}
