Added WebviewWindow::resolve_command_scope to check a command scope at runtime.
WebviewWindow::resolve_command_scope