Closed cloud-jie closed 1 year ago
Hi
Can you provide some more information on what you are trying to do, and the code that you have written?
Have you checked out our example extension that adds an additional tab to the request editor? You can find it here: https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/customrequesteditortab
I found the key to the problem, which is my problem. In order to save trouble, I wrote the code like this.
api.userInterface().registerHttpRequestEditorProvider(editorCreationContext -> new ExtensionProvidedHttpRequestEditor() {
...
@Override
public Component uiComponent(){
return MainPanel;
}
}
private void UI() {
MainPanel = new JPanel();
...
}
Thus causing the above-mentioned problems. problem solved
Sorry to reopen this issue, but the problem has reappeared. Burp Suite version 2023.4.2 Montoya api version 2023.4 I also use an open source project, https://github.com/bobbylight/RSyntaxTextArea Here is the sample code CustomRequestEditorTab.zip
Hi
Could you please drop us an email at support@portswigger.net so we can look into this in more detail?
For further context, initialization of the text area needed to be moved into a constructor for the ExtensionProvidedHttpRequestEditor, to avoid a shared text area across multiple places.
Reproduction steps:
Is it because I wrote the wrong code?