The browser console may show erroneous information about submitting forms before unload

NEW
Unassigned

Status

()

defect
P5
normal
6 years ago
2 years ago

People

(Reporter: ioana_damy, Unassigned)

Tracking

28 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-would-take])

Str:
1. Launch the Browser Console.
2. Open this page in the browser: https://bugzilla.mozilla.org/attachment.cgi?id=8362508.
3. Reload the page.

The console shows this:

A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element. attachment.cgi:16
GET https://bug956524.bugzilla.mozilla.org/attachment.cgi [HTTP/1.1 302 Found 775ms]
GET https://bugzilla.mozilla.org/attachment.cgi [HTTP/1.1 302 Found 974ms]
GET https://bug956524.bugzilla.mozilla.org/attachment.cgi [HTTP/1.1 200 OK 226ms]

which would imply a form submit was made, while when using Charles to inspect the HTTP traffic - outside of Firefox - the network request isn't shown as made.

Notes:
1. This issue reproduces since Firefox 24 (release of this console), so it's not a regression.
2. The bug's reproducible on the current beta (02/18), aurora and nightly (02/20).
This bug is a follow-up from testing bug 956524 (if you need access to the testcase, please contact Gijs).
How is this a webconsole bug?
(In reply to Mihai Sucan [:msucan] from comment #2)
> How is this a webconsole bug?

This has nothing to do with the Web console, but with the Browser Console. The bug here is that it says the form was submitted while it wasn't.
(In reply to Ioana Budnar, QA [:ioana] from comment #3)
> (In reply to Mihai Sucan [:msucan] from comment #2)
> > How is this a webconsole bug?
> 
> This has nothing to do with the Web console, but with the Browser Console.
> The bug here is that it says the form was submitted while it wasn't.

Sorry, I sometimes use 'webconsole' as a generic term for both consoles, because they share the same code.  I am not sure if this bug is really a browser console bug. The messages and net requests you see are sent from different parts of the browser.
Ioana, sorry to come back to this again. This bug doesnt seems to be a browserconsole/webconsole bug. Can you please retriage this bug? Thanks!
Flags: needinfo?(ioana.budnar)
Moving to Networking... it seems like if it's not right, the people there should at least know where this should go further.
Component: Developer Tools: Console → Networking
Flags: needinfo?(ioana.budnar)
Product: Firefox → Core
Whiteboard: [necko-would-take]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.