You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2024. It is now read-only.
Actual LoginsHelper script that enables us to save and auto-fill login information needs a refinement so it will enable us to save and auto-fill login information properly on some sites.
For the improvements in the login script changes have to be made towards supporting login suggestions where window can be iframe.contentWindow and injecting into iFrame will be needed, in addition XSS (Cross-Site-Scripting) problem should be solved so it will inject autofill credentials.
Implementation Details
First problems are websites like facebook uses form only for CSS styling. So It never calls form.submit it has no input type=submit or button type=submit. It’s all done through a socket.In this case it is better to just check in our LoginHelper.swift if the URL of the tab changed and then do suggestion to add to login suggest after.
Second problem is related with iFrame + Cross-Site-Scripting. Right now we can’t autofill on reddit because it injects into window. But it doesn’t consider that the window can be iframe.contentWindow and so it ignores injecting into iFrame.
Then it has XSS (Cross-Site-Scripting) problem where it won’t inject autofill credentials into any page that doesn’t have login on wkMessage.frameInfo.isMainFrame
QA test plan
Try login to facebook and save login (m.facebook.com) and check If password and username field is filled.
Try login to reddit and save login and check if username field is filled.
The text was updated successfully, but these errors were encountered:
Problem Description
Actual LoginsHelper script that enables us to save and auto-fill login information needs a refinement so it will enable us to save and auto-fill login information properly on some sites.
For the improvements in the login script changes have to be made towards supporting login suggestions where window can be
iframe.contentWindow
and injecting into iFrame will be needed, in addition XSS (Cross-Site-Scripting) problem should be solved so it will inject autofill credentials.Implementation Details
First problems are websites like facebook uses form only for CSS styling. So It never calls form.submit it has no input
type=submit
or button type=submit. It’s all done through a socket.In this case it is better to just check in our LoginHelper.swift if the URL of the tab changed and then do suggestion to add to login suggest after.Second problem is related with iFrame + Cross-Site-Scripting. Right now we can’t autofill on reddit because it injects into window. But it doesn’t consider that the window can be
iframe.contentWindow
and so it ignores injecting into iFrame.Then it has XSS (Cross-Site-Scripting) problem where it won’t inject autofill credentials into any page that doesn’t have login on
wkMessage.frameInfo.isMainFrame
QA test plan
The text was updated successfully, but these errors were encountered: