Closed
Bug 602572
Opened 14 years ago
Closed 14 years ago
Log request and response bodies checkbox issues in Web Console
Categories
(DevTools :: General, defect, P1)
DevTools
General
Tracking
(blocking2.0 final+)
RESOLVED
FIXED
Firefox 4.0b9
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: msucan, Assigned: msucan)
References
Details
Attachments
(1 file, 2 obsolete files)
7.42 KB,
patch
|
Details | Diff | Splinter Review |
STR: 1. Open the Web Console. 2. Enable log request and response bodies (right-click). 3. Close the Web Console. 4. Reopen the Web Console. 5. Refresh the web page. 6. Click a network request log. Expected result: the response body is not logged. Actual result: the response body is logged. The menitem falsely shows the option is disabled checkbox. STR 2: 1. Open tabA and the Web Console inside it. 2. Open tabB and the Web Console inside it. 3. Enable logging of request and response bodies in tabA. 4. Refresh the Web Console inside tabB. 5. Click a network request log. Expected result: the network response body is not logged. Actual result: the network response body is logged.
Comment 1•14 years ago
|
||
I can see where this behavior comes from, but I agree that it's inconsistent and confusing. At the very least, the checkbox should show the true state of request/response body logging. Also, if request/response body logging is tracked on a per site basis, we should turn it off when you close the console. Otherwise, people might have their memory consumed without knowing why (and the only way to stop it is to restart the browser or reopen the console on the right site and disable the logging...)
Assignee: nobody → mihai.sucan
Blocks: devtools4b8
Comment 2•14 years ago
|
||
OK, looking at the patch in bug 598851, it appears that the logging is not tracked per site. So, we really just need to make sure that the check mark in the menu is always consistent.
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [patchclean:1020]
Comment 4•14 years ago
|
||
Comment on attachment 484652 [details] [diff] [review] proposed patch I don't see a corresponding menuPopup.removeEventListener in here. Do we do proper destruction of all these xul elements when we shutdown?
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #4) > Comment on attachment 484652 [details] [diff] [review] > proposed patch > > I don't see a corresponding menuPopup.removeEventListener in here. Do we do > proper destruction of all these xul elements when we shutdown? Yes, we do that in unregisterDisplay().
Comment 6•14 years ago
|
||
Requesting blocking for this bug. The "Log request and response bodies" checkbox in the context menu does not always show the true state of that logging, which would certainly be very confusing for the user.
blocking2.0: --- → ?
Comment 8•14 years ago
|
||
Comment on attachment 484652 [details] [diff] [review] proposed patch yup
Attachment #484652 -
Flags: feedback?(rcampbell) → feedback+
Assignee | ||
Comment 9•14 years ago
|
||
Updated patch. Rebased and made small fixes needed. Thanks Robert for the feedback+!
Attachment #484652 -
Attachment is obsolete: true
Attachment #491202 -
Flags: review?(dolske)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [patchclean:1020] → [patchclean:1117]
Updated•14 years ago
|
Severity: blocker → normal
Comment 12•14 years ago
|
||
Comment on attachment 491202 [details] [diff] [review] updated patch Normally this could be done with XUL observers, but I guess that's kind of awkward here since the DOM's constructed via JS.
Attachment #491202 -
Flags: review?(dolske) → review+
Assignee | ||
Comment 13•14 years ago
|
||
Rebased patch. Thanks for the review+!
Attachment #491202 -
Attachment is obsolete: true
Assignee | ||
Updated•14 years ago
|
Whiteboard: [patchclean:1117] → [patchclean:0101][checkin]
Comment 14•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/1494caa22150
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [patchclean:0101][checkin]
Target Milestone: --- → Firefox 4.0b9
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•