Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stackoverflow.com - see bug description #122797

Closed
Baderf opened this issue May 26, 2023 — with webcompat-app · 6 comments
Closed

stackoverflow.com - see bug description #122797

Baderf opened this issue May 26, 2023 — with webcompat-app · 6 comments

Comments

@Baderf
Copy link

Baderf commented May 26, 2023

URL: https://stackoverflow.com/questions/76332896/firefox-form-submitting-into-newly-created-window?noredirect=1

Browser / Version: Chrome 113.0.0
Operating System: Windows 10
Tested Another Browser: Yes Other

Problem type: Something else
Description: Javascript bug window.open -> targetwindow
Steps to Reproduce:
The correct description you can find on:
https://stackoverflow.com/questions/76332896/firefox-form-submitting-into-newly-created-window?noredirect=1

It's hard to find an answer for this.

Browser Configuration
  • None

From webcompat.com with ❤️

@softvision-raul-bucata
Copy link

We appreciate your report. Unfortunately having insufficient details about the issue you submitted, we cannot help you with it. Please leave a comment with more details regarding the steps to reproduce, or file a new report with specific details and we will gladly investigate this further

[qa_21/2023]

@Baderf
Copy link
Author

Baderf commented May 26, 2023

Ok, i will try my best:

Create a html-form as follows:

<form name="TestName" class="smallform" action="myActionUrl.php" method="post" target="myTestWindowID" rel="noopener" style="display: none">
    <input type="hidden" name="aValue" value="">
    <input type="hidden" name="bValue">
    <input type="hidden" name="cValue">
</form>

Then execute the code below:

document.myform.aValue.value = 1;
document.myform.bValue.value = 2;
document.myform.cValue.value = '3';
document.myform.target = 'myTestWindowID'

var popup = window.open('#', 'myTestWindowID', 'width=600,height=600,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no');

document.myform.submit();

This will open a new window 600x600 pixels AND a new tab.

Other browsers like Chrome, Opera, IE, Safari dont open a new tab. Instead of this the browser is sending the formdata to the new openend window 600x600.

As I mentioned, the browser Firefox should also execute this behaviour. Like in https://www.w3schools.com/tags/att_form_target.asp correctly written, the form-attribute target must be set to the window-ID newly created.

But Firefox isn't doing so. That's the bug.

@softvision-raul-bucata
Copy link

@Baderf Can you please provide a screen recording? I am not quite sure where I should execute this code and how.

[inv_21/2023]

@salllqu
Copy link

salllqu commented May 27, 2023

We appreciate your report. Unfortunately having insufficient details about the issue you submitted, we cannot help you with it. Please leave a comment with more details regarding the steps to reproduce, or file a new report with specific details and we will gladly investigate this further

@softvision-raul-bucata
Copy link

@salllqu Please do not interfere with our triage process.

[inv_22/2023]

@softvision-raul-bucata
Copy link

Unfortunately being unable to reproduce the issue you are experiencing, we cannot help you with it. Please leave a comment with more details, or file a new report and we will gladly investigate this further.
This will be closed as Incomplete.

[inv_23/2023]

@softvision-raul-bucata softvision-raul-bucata closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants