Closed
Bug 1203786
Opened 10 years ago
Closed 10 years ago
test_memoryReporters.xul sensitive to namespaces
Categories
(Toolkit :: about:memory, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: jryans, Assigned: jryans)
References
Details
Attachments
(1 file)
test_memoryReporters.xul's check for http URLs in anonymized mode does not account for xmlns="" attributes in windows, which presumably are safe to allow.
As an example of this, run:
mach mochitest -f chrome docshell/test/chrome/test_principalInherit.xul toolkit/components/aboutmemory/tests/test_memoryReporters.xul
This gives:
87 INFO TEST-UNEXPECTED-FAIL | toolkit/components/aboutmemory/tests/test_memoryReporters.xul | http URLs are anonymized when necessary. Failed case: explicit/window-objects/top(none)/detached/window(data:application\vnd.mozilla.xul+xml,<?xml%20version="1.0"?><window%20xmlns="http:\\www.mozilla.org\keymaster\gatekeeper\there.is.only.xul"\>)/js-compartment([System Principal], about:blank)/sundries/malloc-heap
@chrome://mochitests/content/chrome/toolkit/components/aboutmemory/tests/test_memoryReporters.xul:248:1
Assignee | ||
Comment 1•10 years ago
|
||
Bug 1203786 - test_memoryReporters.xul should ignore namespaces. r=njn
Attachment #8659642 -
Flags: review?(n.nethercote)
Assignee | ||
Comment 2•10 years ago
|
||
![]() |
||
Comment 3•10 years ago
|
||
Comment on attachment 8659642 [details]
MozReview Request: Bug 1203786 - test_memoryReporters.xul should ignore namespaces. r=njn
https://reviewboard.mozilla.org/r/18995/#review16857
::: toolkit/components/aboutmemory/tests/test_memoryReporters.xul:42
(Diff revision 1)
> + // For some reason, the slashes are printed backwards here.
The memory reporters use '/' as a path separator so we have hack where we flip all slashes in URLs. Gross, I know.
So you can change the comment to something like "Use backslashes instead of forward slashes due to memory reporting's hacky handling of URLs".
Attachment #8659642 -
Flags: review?(n.nethercote)
![]() |
||
Comment 4•10 years ago
|
||
Comment on attachment 8659642 [details]
MozReview Request: Bug 1203786 - test_memoryReporters.xul should ignore namespaces. r=njn
https://reviewboard.mozilla.org/r/18995/#review16859
Attachment #8659642 -
Flags: review+
![]() |
||
Comment 5•10 years ago
|
||
BTW, this is my first review using MozReview. Hopefully I've done the right thing. In a Bugzilla review I would give you r+ here, but ask you to fix the one nit before landing.
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Nicholas Nethercote [:njn] from comment #5)
> BTW, this is my first review using MozReview. Hopefully I've done the right
> thing. In a Bugzilla review I would give you r+ here, but ask you to fix the
> one nit before landing.
Seems like it mostly worked as you meant it to! For the future, it should let you submit your comments and the "ship it" in one step, just like an r+ with comments to fix in Bugzilla. The UI isn't super obvious about it though, takes a bit of trying!
Thanks for the quick review!
![]() |
||
Comment 7•10 years ago
|
||
> For the future, it should
> let you submit your comments and the "ship it" in one step, just like an r+
> with comments to fix in Bugzilla.
Right, I saw the checkbox but wasn't sure if that would autoland it, so I erred on the safe side. And then glandium told me it wouldn't autoland, so I checked it afterward :)
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8659642 [details]
MozReview Request: Bug 1203786 - test_memoryReporters.xul should ignore namespaces. r=njn
Bug 1203786 - test_memoryReporters.xul should ignore namespaces. r=njn
Assignee | ||
Comment 9•10 years ago
|
||
I've updated the comments, and try looks good.
Keywords: checkin-needed
Comment 10•10 years ago
|
||
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•