Network's raw headers text selection doesn't persist
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(firefox107 fixed)
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: Harald, Assigned: vaga, Mentored, NeedInfo)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug)
Attachments
(2 files, 2 obsolete files)
STR: Select text in the raw header text.
AR: Text selection doesn't persist.
Right now its an textarea. The click
event in the TreeView
seems to reset the selection.
Best fix might be switching to a CodeMirror instance with http
highlighting, in which case we can dupe this against bug 1618070.
Reporter | ||
Comment 1•3 years ago
|
||
Bomsy, would this be a good first bug with some mentoring?
Comment 2•3 years ago
|
||
Yeah it is.
For details
-
Here is the location in the Headers Panel that needs to change
https://searchfox.org/mozilla-central/rev/3446310d6cc5c85cde16a82eccf560e9b71a3d44/devtools/client/netmonitor/src/components/request-details/HeadersPanel.js#335-340 -
It can be replaced with the
SourcePreview
component which is located here
https://searchfox.org/mozilla-central/rev/3446310d6cc5c85cde16a82eccf560e9b71a3d44/devtools/client/netmonitor/src/components/previews/SourcePreview.js -
Set the mode to
http
Updated•3 years ago
|
Hey :bomsy I would like to take this bug.
As mentioned above the TextArea has to be replaced with SourcePreview, right?
Below is what it should be replaced with,
SourceView({
text: value,
mode: 'http'
})
Please let me know if there's something I am missing out here.
Thanks.
Comment 4•3 years ago
|
||
Nice. I've assigned to you.(In reply to Harshil from comment #3)
SourceView({ text: value, mode: 'http' })
should be SourcePreview
. apart from that. That looks correct
Comment 5•3 years ago
|
||
Here is a screencast of what the issue is
http://g.recordit.co/BI8SFrN35E.gif
Hey :bomsy,
I recently submitted a patch for one of the bugs, and I am waiting for it to get reviewed. Should I wait for it to get reviewed and then start working on this? Those changes are not related to this, and are completely different, but I wanted to know how the developer flow is. I would appreciate if you could help me understand it better.
Thanks.
Comment 7•3 years ago
•
|
||
Hey Harshil
No you don't need to wait for it to get reviewed.
You can start another patch , probably do hg up central
and the hg commit
on that when you are done.
Hey Hubert,
Thank you for the information. When I try to run hg up central
I get an error abort: unknown revision 'central'!
. I checked the extensions for hg and firefoxtree is configured. Not sure what is wrong here.
Comment 10•3 years ago
|
||
The severity field is not set for this bug.
:Honza, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 11•2 years ago
|
||
This good-first-bug hasn't had any activity for 6 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 12•2 years ago
|
||
I wanted to fix this https://bugzilla.mozilla.org/show_bug.cgi?id=1696128 But then ended up looking at this https://bugzilla.mozilla.org/show_bug.cgi?id=1632030 which is a dupe of the current bug.
I see the current bug had somebody working on it, has a patch but never got merged. Can I pick it up? Will the owner continue? Why was the work paused?
Updated•2 years ago
|
Comment 13•2 years ago
|
||
Yes, please, help welcome on this one.
Thank you,
Honza
Comment 14•2 years ago
•
|
||
Hi Petcuandrei,
There has been no response from Harshil, i think you can pick this up if you like.
Thanks
Comment 15•2 years ago
|
||
I'll pick this up then. Thank you.
Comment 16•2 years ago
|
||
OK assigned to you.
Comment 18•2 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 21•2 years ago
|
||
Assigned to you, thank you for helping.
Honza
Assignee | ||
Comment 22•2 years ago
|
||
Assignee | ||
Comment 23•2 years ago
|
||
Assignee | ||
Comment 24•2 years ago
|
||
The second patch fix the bug. (https://phabricator.services.mozilla.com/D119782)
As discussed with @nchevobbe, I can create a new bug to add SourcePreview.
Assignee | ||
Comment 25•2 years ago
|
||
Updated•2 years ago
|
Comment 26•2 years ago
|
||
Comment on attachment 9231201 [details]
Bug 1632030 - Add Code Mirror HTTP mode in SourceEditor r?bomsy
Revision D119904 was moved to bug 1721126. Setting attachment 9231201 [details] to obsolete.
Updated•2 years ago
|
Comment 27•2 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 28•2 years ago
|
||
Hi, I'd love to work on this, could it be assigned to me?
Comment 29•2 years ago
|
||
@bomsy: are you working on this one? (or should we re-assign?)
Updated•2 years ago
|
Comment 30•2 years ago
|
||
I've pinged Fabien in the bug. It's close i think it just needs a rebase to land. If he is not able to complete, i'll complete and land it.
Assignee | ||
Comment 31•2 years ago
|
||
Hi,
The main bug is fixed by D119782 in Phabricator. (https://phabricator.services.mozilla.com/D119782)
The two others patchs add the colorscheme in raw HTTP header.
But I catch an another bug in my patch D119761: when we toggle the raw headers, the panel content shifts because CodeMirror take a few milliseconds to build the HTML. There is a video on my comment : https://phabricator.services.mozilla.com/D119761#3927260
Comment 33•1 year ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Comment 34•1 year ago
|
||
Hi Hubert
I would like to work on this issue. Could you please assign it to me?
Updated•8 months ago
|
Comment 36•8 months ago
|
||
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4420b5bc7a00 Network's raw headers text selection doesn't persist r=bomsy
Assignee | ||
Comment 37•8 months ago
|
||
I also worked to replace textarea by SourcePreview. It was never landed.
https://phabricator.services.mozilla.com/D119761
Keep me informed.
Comment 38•8 months ago
|
||
Comment on attachment 9230957 [details]
Bug 1632030 - Replace textarea to SourcePreview
component to show raw headers r?bomsy
Revision D119761 was moved to bug 1795011. Setting attachment 9230957 [details] to obsolete.
Comment 39•8 months ago
|
||
bugherder |
Description
•