* @brief Returns true when the method is in the safe allow-list or the full surface is opted in. */
| 120 | * @brief Returns true when the method is in the safe allow-list or the full surface is opted in. |
| 121 | */ |
| 122 | static bool isAllowed(const QString& method) |
| 123 | { |
| 124 | if (s_allowFullSurface.load(std::memory_order_acquire)) |
| 125 | return true; |
| 126 | |
| 127 | return safeMethods().contains(method); |
| 128 | } |
| 129 | |
| 130 | static std::mutex& bucketMutex() |
| 131 | { |
no test coverage detected