issue #5695: add requestPermission testcase