w3c / virtual-keyboard

VirtualKeyboard API
https://w3c.github.io/virtual-keyboard/
Other
16 stars 3 forks source link

Question: API isn't accessible in unsecure context? #20

Closed woody-li closed 11 months ago

woody-li commented 1 year ago

Only allows show(), hide(), overlayscontent in secure context.

What about other information, such as boundingrect?

Chrome navigator.virtualKeyboard is undefined in un-secure context for now, is it correct?

HolgerJeromin commented 1 year ago

Chrome navigator.virtualKeyboard is undefined in un-secure context for now, is it correct?

according to the spec yes: https://www.w3.org/TR/virtual-keyboard/#idl-index


partial interface Navigator {
    [SecureContext, SameObject] readonly attribute VirtualKeyboard virtualKeyboard;
};
woody-li commented 1 year ago

@HolgerJeromin Thanks for your reply.

Is it possibile to provide any API/method to get the visible status of virtualKeyboard in any context.

I think the only getter should not privacy/secure associated probably.