Skip to content

Problem with onWebViewScriptDialog in gi-webkit2 #97

@hamishmack

Description

@hamishmack

This callback takes ScriptDialog with the details of what dialog you need to display to the user. When window.prompt("A","B") the even fires and we can get at the two input strings (using scriptDialogGetMessage and scriptDialogPromptGetDefaultText), but the function for specifying the return value scriptDialogPromptSetText does not seem to work.

I suspect the problem might be that the ScriptDialog object is being copied and the one we are modifying is not the one that was passed to the signal. Is that possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions