Closed
Bug 407401
Opened 17 years ago
Closed 12 years ago
Remove namespaced ARIA support in feed parser
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla14
People
(Reporter: aaronlev, Assigned: capella)
References
(Blocks 1 open bug)
Details
(Keywords: access, Whiteboard: [bk1] [good first bug] [mentor=marco.zehe@googlemail.com])
Attachments
(1 file, 3 obsolete files)
11.75 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
ARIA now longer allows namespaced properties. ARIA looks like this now: <div role="myrole" aria-[propertyname]="blah"> Just remove any namespaces from the attribute names and values.
Reporter | ||
Comment 1•17 years ago
|
||
Comment 2•13 years ago
|
||
Someone just needs to update Aaron's patch against trunk and test it.
Whiteboard: [bk1] [good first bug]
Updated•13 years ago
|
Whiteboard: [bk1] [good first bug] → [bk1] [good first bug] [mentor=marco.zehe@googlemail.com]
Assignee | ||
Comment 3•12 years ago
|
||
I went ahead and took this ... I did a plug-n-play patch from the previous attachment ... it built clean locally, and mochitest-plain and mochitest-a11y both ran as normal ... what other testing can I do for you? I can't push to TRY yet, so maybe that's next ...
Assignee: sayrer → markcapella
Status: NEW → ASSIGNED
Attachment #603639 -
Flags: feedback?(marco.zehe)
Updated•12 years ago
|
Attachment #603639 -
Flags: feedback?(marco.zehe) → feedback+
Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 603639 [details] [diff] [review] Re-worked patch (v1) Asking review from a toolkit peer ...
Attachment #603639 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 5•12 years ago
|
||
Checking status ... Marco asked me to get a toolkit peer review+ to move this along ... I picked robert at random ... let me know if there's a better way?
Comment 6•12 years ago
|
||
Comment on attachment 603639 [details] [diff] [review] Re-worked patch (v1) Let's try Neil first.
Attachment #603639 -
Flags: review?(robert.bugzilla) → review?(enndeakin)
Updated•12 years ago
|
Attachment #603639 -
Flags: review?(enndeakin) → review?(mak77)
Comment 7•12 years ago
|
||
Comment on attachment 603639 [details] [diff] [review] Re-worked patch (v1) Review of attachment 603639 [details] [diff] [review]: ----------------------------------------------------------------- do we have any kind of test on this that may need updating? ::: toolkit/components/feeds/FeedProcessor.js @@ -983,1 @@ > "='" + attributeValue + "'"); this doesn't apply just to the aria case, a different prefix may still be added (in future), why are we removing it? @@ -985,5 @@ > - // write an xmlns declaration if necessary > - if (prefix != "xml" && !this._isInScope(uri)) { > - this._inScopeNS[this._inScopeNS.length - 1].push(uri); > - this._buf += " xmlns:" + prefix + "='" + uri + "'"; > - } also this check seems to be more generic than just the rolePrefix stuff you removed above, prefix is assigned by gAllowedXHTMLNamespaces, doesn't look like it should be removed (even if likely it won't be hit atm).
Comment 8•12 years ago
|
||
For example, see http://mxr.mozilla.org/mozilla-central/search?string=wai-&find=feed&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central
Updated•12 years ago
|
Attachment #603639 -
Flags: review?(mak77)
Assignee | ||
Comment 9•12 years ago
|
||
Ok, I restored the two code portions removed in Aarons original patch ... mochitests all complete locally ...
Comment 10•12 years ago
|
||
Mochitests aren't the bulk of feed parser tests - the stuff in http://mxr.mozilla.org/mozilla-central/source/toolkit/components/feeds/test/xml/ is run in make check.
Assignee | ||
Comment 11•12 years ago
|
||
Ahhh.. ok, new to this area ... how do I perform the tests ... locally? with a TRY push?
Assignee | ||
Comment 12•12 years ago
|
||
Ok, got help from IRQ ... testing shows two tests failing ... off exploring in that direction ... FAIL | xml/rfc4287/feed_accessible.xml | Test was: "atom entry with many funky namespaces" | var content = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).content;((content.text.indexOf("h2 aaa:checked") > -1) && (content.text.indexOf("h4 aaa:checked") > -1) && (content.text.indexOf("h6 xml:base") > -1)); | FAIL | xml/rfc4287/feed_roleatt.xml | Test was: "atom entry with many funky namespaces" | var content = feed.items.queryElementAt(0, Components.interfaces.nsIFeedEntry).content; ((content.text.indexOf("xhtml2:role='wwwwwww") > -1) && (content.text.indexOf("xmlns:wwwwwww='http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#'") > -1) && (content.text.indexOf("xmlns:xhtml20='http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#'") > -1)); |
Comment 13•12 years ago
|
||
Foul Bachelor Frog will tell you exactly what's actually the correct way to deal with those failures, in http://mozillamemes.tumblr.com/post/19239974320/skip-if-the-first-last-resort-of-the-desperate - they are testing the thing you're removing, so just remove them too. Victory!
Assignee | ||
Comment 14•12 years ago
|
||
Lord I hope you weren't pulling my leg :) Anyhow, removing the tests causes ... all to pass !!!
Attachment #603639 -
Attachment is obsolete: true
Attachment #606892 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #606919 -
Flags: review?(mak77)
Comment 15•12 years ago
|
||
Exactly right, and figuring out what parts of what I say I actually mean is one of those difficult parts of getting started with Mozilla, like figuring out what failures on tbpl you can and can't ignore. At least twice, I've stared long and hard at those two tests trying to figure out if there was anything we wanted to salvage from them in a post-ARIA-namespace world, and I've never gotten any closer to figuring out what it would be if there is. Sometimes, if you test multiple things while saying you are only testing one, and copy around summaries without changing them to say what they really are, and copy around tests that say that they are about one thing when they are something else, you wind up having your tests deleted.
Assignee | ||
Comment 16•12 years ago
|
||
thanks for not mocking me mercilessly :P
Updated•12 years ago
|
Attachment #606919 -
Flags: review?(mak77) → review+
Updated•12 years ago
|
Attachment #292130 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 17•12 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/f07eb2670e91
Keywords: checkin-needed
Target Milestone: --- → mozilla14
Comment 18•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f07eb2670e91
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•