Closed
Bug 1307947
Opened 8 years ago
Closed 7 years ago
Improve network event update stub generation
Categories
(DevTools :: Console, enhancement)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: linclark, Unassigned)
References
(Blocks 1 open bug)
Details
Originally posted by:linclark
see https://github.com/devtools-html/gecko-dev/issues/312
Network event update stubs are hard to generate. We have a good start in place in #283, but there are a couple of flaws still.
1. It's hard to come up with a unique name for update stubs. Currently we do a pretty good job, but there are still places where we use the same key for multiple stubs.
2. It's hard to determine how many packets we should listen for. Currently it's hardcoded to 8, but that number could easily change on the backend. Perhaps we should listen for a set amount of time in the stub generator instead.
3. Because the object being sent from the client is mutated in the client when new packets come in, it's likely that the stubs for certain messages are inaccurate... the object will have been mutated before we write it. We could potentially solve this by changing the client. In the client, we could break out the code that formats the packet in `_onNetworkEvent`/`_onNetworkEventUpdate`. Then it could be reused in the test. Eventually, I think we might want to rearrange the client so that it doesn't handle this at all, but that will impact net monitor so will require more planning.
Reporter | ||
Updated•8 years ago
|
Priority: -- → P2
Whiteboard: new-console
Updated•8 years ago
|
Blocks: enable-new-console
Flags: qe-verify-
Priority: P2 → P3
Whiteboard: new-console → [reserve-new-console]
Updated•8 years ago
|
Whiteboard: [reserve-new-console] → [reserve-console-html]
Updated•7 years ago
|
Priority: P3 → P4
Updated•7 years ago
|
Flags: qe-verify-
Priority: P4 → P2
Whiteboard: [reserve-console-html] → [newconsole-mvp]
Updated•7 years ago
|
Priority: P2 → P3
Whiteboard: [newconsole-mvp] → [newconsole-reserve]
Comment 1•7 years ago
|
||
We don't have issues with network update stubs anymore
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Updated•7 years ago
|
Priority: P3 → --
Whiteboard: [newconsole-reserve]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•