Cc: eugene...@chromium.org Status: Started (was: Assigned)
I started to work on this to prepare the iframe handling.
It seems that currently, the script command handlers added with AddScriptCommandCallback only work on main frame.
https://cs.chromium.org/chromium/src/ios/web/web_state/ui/crw_web_controller.mm?l=2314
The password controller works on all frames.
Can we change the limitation (and for example pass is_main_frame to the command callback)?
Thanks
I think that ScriptCommandCallback callback will have Frame class argument, instead of a boolean. CCed Mike who is working to define iframes communication API.
I agree that we should use the WebFrame object here (and probably in most places in web instead of an is_main_frame boolean.)
However, if not having access to the is_main_frame state is blocking autofill preparations, maybe we should add the boolean for now? Then, we can replace it with the full details of the WebFrame object once it is available.
Comment 1 Deleted