Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Use js trigger to upload a file ,it will call createWindow()



  • Hello

    I use QWebView to make a web broswer, and I reimplement QWebView and QWebPage and their functions chooseFile(), createWindow() and acceptNavigationRequest().

    I work will but when I visit a page, if i click the a link to choose file ,I call upload a file and get the json return.
    But if the page use js to trigger to open the choose file dialog, it will call the createWindow() to create a new window, and the json return will not get by the original window, so it fail to load.

    How can I fixed it? Does it a security issue?


Log in to reply