Closed
Bug 1309120
Opened 9 years ago
Closed 9 years ago
Move RequestsMenuView to its own module
Categories
(DevTools :: Netmonitor, defect, P1)
DevTools
Netmonitor
Tracking
(firefox52 verified)
| Tracking | Status | |
|---|---|---|
| firefox52 | --- | verified |
People
(Reporter: jsnajdr, Assigned: jsnajdr)
References
(Blocks 1 open bug)
Details
(Whiteboard: [netmonitor])
Attachments
(1 file)
Move the RequestsMenuView class out of netmonitor-view.js into its own module.
Move shared functions and constants to shared modules as needed.
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jsnajdr
Blocks: netmonitor-html
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 2•9 years ago
|
||
Moved the RequestsMenuView class away from netmonitor-view.js to a separate requests-menu-view.js module. Unfortunately, the diff doesn't detect that X contiguous lines were cut out of netmonitor-view.js and displays a chaotic list of changes.
Extracted a "l10n" module, as it's now required by multiple modules. Changed the tests to import the L10N symbols from the right place. That's why so many test files are changed in this patch.
Extracted a "prefs" module, and defined it as a global in netmonitor-controller.js. If I didn't have to keep tests compatible, I would just "require" it in every module that needs it.
Started using a BrowserLoader in netmonitor-controller.js - this makes "document" and "window" available in modules. Useful for compatibility, and also for future React imports.
| Comment hidden (mozreview-request) |
Updated•9 years ago
|
Whiteboard: [netmonitor]
Updated•9 years ago
|
Flags: qe-verify+
QA Contact: ciprian.georgiu
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 4•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8799671 [details]
Bug 1309120 - Move RequestsMenuView to its own module
https://reviewboard.mozilla.org/r/84804/#review83752
Changes in this patch are a bit hard to follow (patch is mixed up), but I don't see anything wrong.
I rely mostly on tests and try seems to be nicely green (at 99%).
Interesting is that two tests fail for me on Win (not on Mac) when running locally,
but they alrady failed before so, the problem is not caused by this patch.
Just for the record:
29704 INFO TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_charts-03.js | The second sum's value is correct. - Got World 36,60, expected World 36.60
Stack trace:
chrome://mochikit/content/browser-test.js:test_is:905
chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_charts-03.js:null:101
Tester_execTest@chrome://mochikit/content/browser-test.js:729:9
Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:649:7
SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:743:59
29705 INFO TEST-UNEXPECTED-FAIL | devtools/client/netmonitor/test/browser_net_timing-division.js | The division on the seconds time scale looks legit. -
Stack trace:
chrome://mochitests/content/browser/devtools/client/netmonitor/test/browser_net_timing-division.js:null:57
Tester_execTest@chrome://mochikit/content/browser-test.js:729:9
Tester.prototype.nextTest</<@chrome://mochikit/content/browser-test.js:649:7
SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:743:59
SUITE-END | took 132s
Honza
Attachment #8799671 -
Flags: review?(odvarko) → review+
Pushed by jsnajdr@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/888eb236f1b2
Move RequestsMenuView to its own module r=Honza
Comment 6•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Updated•9 years ago
|
Iteration: --- → 52.2 - Oct 17
Priority: -- → P1
Comment 7•9 years ago
|
||
Just comment (In reply to Jan Honza Odvarko [:Honza] from comment #4)
> Comment on attachment 8799671 [details]
> Bug 1309120 - Move RequestsMenuView to its own module
>
> https://reviewboard.mozilla.org/r/84804/#review83752
>
> Changes in this patch are a bit hard to follow (patch is mixed up), but I
> don't see anything wrong.
> I rely mostly on tests and try seems to be nicely green (at 99%).
>
> Interesting is that two tests fail for me on Win (not on Mac) when running
> locally,
So, this is because I am using Czech Win OS and tests are supposed to be run in en-US
Honza
Comment 8•9 years ago
|
||
This issue is verified fixed on latest Nightly 52.0a1 (2016-10-16) under the following OSes:
- Windows 10 x64
- Ubuntu 12.04 x86 LTS
- Mac OS X 10.11.4
Requests-menu-view works as expected and nothing is broken. I will mark here accordingly.
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•