LPS-42790

For master. I have consulted ray for my fix. We will still open permission configuration as pop_up as much as we can, but we should still fix the case when permission configuration is not opened in a pop_up state.