Page MenuHomePhabricator

Bug 1566780 - Added another filter frame type for viewing control frames separately r=Honza
ClosedPublic

Authored by Kish on Mar 23 2020, 1:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 15 2025, 3:36 PM
Unknown Object (File)
Oct 15 2025, 4:34 AM
Unknown Object (File)
Oct 14 2025, 5:25 AM
Unknown Object (File)
Oct 8 2025, 9:19 PM
Unknown Object (File)
Jun 15 2025, 1:36 PM
Unknown Object (File)
May 30 2025, 11:16 AM
Unknown Object (File)
May 27 2025, 4:22 AM
Unknown Object (File)
May 24 2025, 11:57 PM

Details

Summary

Correcting linter errors

Added new logic for toggling control frames by adding a new control frame check variable and toggle function

Preserve controlFrames option when clearing frames. Changed Control Frames to Control in locale

Correct linter errors

Added a separator between received and control. Changed the dropdown title to reflect control frame state

Changed controlFramesEnabled to showControlFrames

Added a comment about showControlFrames and toggleControlFrames

Change ws-early-connection test to check for only 2 frames, skipping the other 2 control frames

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

Code analysis found 3 defects in the diff 248574:

  • 3 defects found by mozlint-eslint

You can run this analysis locally with:

  • ./mach lint --warnings path/to/file (JS/Python/etc)

If you see a problem in this automated review, please report it here.

You can view these defects on the code-review frontend and on Treeherder.

devtools/client/locales/en-US/netmonitor.properties
714

o, lowercase, to match the actual character in the label.

devtools/client/locales/en-US/netmonitor.properties
714

Also, if the accesskey should be C or not?

The "copy message" key was C so I was not sure if it will conflict with it or not

Code analysis found 2 defects in the diff 248612:

  • 2 defects found by mozlint-eslint

You can run this analysis locally with:

  • ./mach lint --warnings path/to/file (JS/Python/etc)

If you see a problem in this automated review, please report it here.

You can view these defects on the code-review frontend and on Treeherder.

Kish edited the summary of this revision. (Show Details)
Kish edited the summary of this revision. (Show Details)

Code analysis found 6 defects in the diff 249087:

  • 6 defects found by mozlint-eslint

You can run this analysis locally with:

  • ./mach lint --warnings path/to/file (JS/Python/etc)

If you see a problem in this automated review, please report it here.

You can view these defects on the code-review frontend and on Treeherder.

Per https://bugzilla.mozilla.org/show_bug.cgi?id=1566780#c15 , not sure if we should overload the select with a mix of multi-select and single-select behaviour – that might be hard to explain. Maybe @victoria has ideas on how to solve this. Could you try adding a toggle in the toolbar for Control?

devtools/client/locales/en-US/netmonitor.properties
710

Do you have a screenshot of how this looks and how much space it takes? Alternatively this could just be "Control".

devtools/client/locales/en-US/netmonitor.properties
710

I am attaching a screenshot hereby:

screenshot.png (425×1 px, 155 KB)

Kish edited the summary of this revision. (Show Details)
devtools/client/locales/en-US/netmonitor.properties
710

After changing it to "Control", it looks like this:

screenshot(1).png (428×1 px, 73 KB)

Code analysis found 6 defects in the diff 249093:

  • 6 defects found by mozlint-eslint

You can run this analysis locally with:

  • ./mach lint --warnings path/to/file (JS/Python/etc)

If you see a problem in this automated review, please report it here.

You can view these defects on the code-review frontend and on Treeherder.

Kish edited the summary of this revision. (Show Details)
Honza requested changes to this revision.Mar 26 2020, 7:40 AM

Looks great, thanks for working on this!

Please see my inline comments

Honza

devtools/client/netmonitor/src/components/websockets/FrameFilterMenu.js
77

Please add a separator in between received and control

{
  type: "separator",
}
81

I don't see the checkbox icon since type is missing, please add:

type: "checkbox",

Also for the other filter items.

devtools/client/netmonitor/src/reducers/web-sockets.js
51

Please add a little comment explaining what the controlFramesEnabled is for

Also, showControlFrames would be a better name (please rename)

This revision now requires changes to proceed.Mar 26 2020, 7:40 AM
Kish edited the summary of this revision. (Show Details)
Kish edited the summary of this revision. (Show Details)
Kish added inline comments.
devtools/client/netmonitor/src/components/websockets/FrameFilterMenu.js
103

@Honza this will change the title of dropdown to "All (Control)" if showControlFrames is true.

But I am guessing this is not the proper way to do this?!

Thanks for working on this, this is nice improvement!

Honza

devtools/client/netmonitor/src/components/websockets/FrameFilterMenu.js
103

I actually like it so, let's keep it there :-)

This revision is now accepted and ready to land.Mar 30 2020, 10:18 AM
This revision is now accepted and ready to land.Mar 30 2020, 11:47 AM
This revision now requires changes to proceed.Mar 31 2020, 5:26 AM
Kish edited the summary of this revision. (Show Details)

Thanks for quick update!

Honza

This revision is now accepted and ready to land.Mar 31 2020, 10:37 AM