  void SendKeyToPopupAndWait(ui::KeyboardCode key) {
    if (!external_delegate_) {
      SendKeyToPageAndWait(key);
      return;
    }

    content::NativeWebKeyboardEvent event;
    event.windowsKeyCode = key;
    test_delegate_.Reset();
    external_delegate_->keyboard_listener()->HandleKeyPressEvent(event);
    test_delegate_.Wait();
  }

This category addresses vulnerabilities caused by flawed access control mechanisms, where incorrect permission settings allow unauthorized users to access restricted resources.