Closed Bug 1203786 Opened 10 years ago Closed 10 years ago

test_memoryReporters.xul sensitive to namespaces

Categories

(Toolkit :: about:memory, defect)

43 Branch
defect
Not set
normal

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
Bug 1203786 - test_memoryReporters.xul should ignore namespaces. r=njn
Attachment #8659642 - Flags: review?(n.nethercote)
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 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+
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.
(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!
> 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 :)
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
I've updated the comments, and try looks good.
Keywords: checkin-needed
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.

Attachment

General

Created:
Updated:
Size: