{
  "slug": "web-locks",
  "name": "Web Locks API",
  "category": "Capabilities",
  "summary": "navigator.locks.request() lets scripts in a tab or worker acquire an exclusive or shared, origin-scoped lock to coordinate access to a shared resource.",
  "name_zh": "Web Locks API（网页锁）",
  "summary_zh": "navigator.locks.request() 让标签页或 worker 中的脚本获取独占或共享的、按源隔离的锁，以协调对共享资源的访问。",
  "spec_url": "https://w3c.github.io/web-locks/",
  "mdn_url": "https://developer.mozilla.org/en-US/docs/Web/API/Web_Locks_API",
  "confidence": "high",
  "verified_at": "2026-10-03",
  "support": [
    {
      "target": "Chrome (Desktop)",
      "os": "Desktop",
      "browser": "chrome",
      "engine": "blink",
      "status": "yes",
      "version_added": "69",
      "version_full": "69",
      "applicable": true,
      "notes": [],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Chrome (Android)",
      "os": "Android",
      "browser": "chrome",
      "engine": "blink",
      "status": "yes",
      "version_added": "69",
      "version_full": "69",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Chrome.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Edge (Desktop)",
      "os": "Desktop",
      "browser": "edge",
      "engine": "blink",
      "status": "yes",
      "version_added": "79",
      "version_full": "79",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Chrome.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Firefox (Desktop)",
      "os": "Desktop",
      "browser": "firefox",
      "engine": "gecko",
      "status": "yes",
      "version_added": "96",
      "version_full": "96",
      "applicable": true,
      "notes": [],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Firefox (Android)",
      "os": "Android",
      "browser": "firefox",
      "engine": "gecko",
      "status": "yes",
      "version_added": "96",
      "version_full": "96",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Firefox.",
          "text_zh": "由 browser-compat-data 镜像自 Firefox 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Safari (macOS)",
      "os": "macOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "15.4",
      "version_full": "15.4",
      "applicable": true,
      "notes": [],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Safari (iOS)",
      "os": "iOS",
      "browser": "safari",
      "engine": "webkit",
      "status": "yes",
      "version_added": "15.4",
      "version_full": "15.4",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Safari.",
          "text_zh": "由 browser-compat-data 镜像自 Safari 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "Samsung Internet",
      "os": "Android",
      "browser": "samsung",
      "engine": "blink",
      "status": "yes",
      "version_added": "10.0",
      "version_full": "10.0",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Chrome Android.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome Android 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    },
    {
      "target": "WebView (Android)",
      "os": "Android",
      "browser": "webview",
      "engine": "blink",
      "status": "yes",
      "version_added": "69",
      "version_full": "69",
      "applicable": true,
      "notes": [
        {
          "text": "Derived by browser-compat-data mirroring from Chrome Android.",
          "text_zh": "由 browser-compat-data 镜像自 Chrome Android 的数据推导。"
        }
      ],
      "source": "https://raw.githubusercontent.com/mdn/browser-compat-data/main/api/LockManager.json",
      "verified_at": "2026-10-03",
      "confidence": "high"
    }
  ],
  "biz_compat": [],
  "generated_by": "OpenPWA compatibility explorer",
  "licence": "CC BY 4.0",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "OpenPWA — https://openpwa.net",
  "attribution_html": "<a href=\"https://openpwa.net\">OpenPWA</a>, <a href=\"https://creativecommons.org/licenses/by/4.0/\">CC BY 4.0</a>"
}