bug 397644. Don't process xhtml2:role, r=mano, r=philringnalda, r=surkov, sr=neil, a=dsicore

This commit is contained in:
aaronleventhal%moonset.net 2007-10-02 00:57:25 +00:00
Родитель 56a7cc7e82
Коммит 9f76986675
15 изменённых файлов: 84 добавлений и 107 удалений

Просмотреть файл

@ -856,9 +856,7 @@ nsAccessNode::GetARIARole(nsIContent *aContent, nsString& aRole)
}
}
// In non-HTML content, use XHTML namespaced-role attribute
// XXX We still support XHTML2 for now because of XUL content, but will migrate to XHTML after FF3
else if (!aContent->GetAttr(kNameSpaceID_XHTML, nsAccessibilityAtoms::role, aRole) &&
!aContent->GetAttr(kNameSpaceID_XHTML2_Unofficial, nsAccessibilityAtoms::role, aRole)) {
else if (!aContent->GetAttr(kNameSpaceID_XHTML, nsAccessibilityAtoms::role, aRole)) {
return PR_FALSE;
}

Просмотреть файл

@ -48,8 +48,7 @@
style="width: 40em;"
buttons="accept,cancel"
branded="true"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#">
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript" src="chrome://browser/content/migration/migration.js"/>
@ -133,7 +132,7 @@
<description control="dataSources">&importItems.label;</description>
<vbox id="dataSources" style="overflow: auto; -moz-appearance: listbox" align="left" flex="1"
xhtml2:role="wairole:groupbox"/>
xhtml:role="group"/>
</wizardpage>
<wizardpage id="homePageImport" pageid="homePageImport"
@ -153,16 +152,14 @@
onpageshow="MigrationWizard.onMigratingPageShow();">
<description control="migratingItems">&migrating.label;</description>
<vbox id="migratingItems" style="overflow: auto;" align="left"
xhtml2:role="wairole:groupbox"/>
<vbox id="migratingItems" style="overflow: auto;" align="left" xhtml:role="group"/>
</wizardpage>
<wizardpage id="done" pageid="done" label="&done.title;"
onpageshow="MigrationWizard.onDonePageShow();">
<description control="doneItems">&done.label;</description>
<vbox id="doneItems" style="overflow: auto;" align="left"
xhtml2:role="wairole:groupbox"/>
<vbox id="doneItems" style="overflow: auto;" align="left" xhtml:role="group"/>
</wizardpage>
</wizard>

Просмотреть файл

@ -53,8 +53,7 @@
<prefpane id="paneAdvanced" onpaneload="gAdvancedPane.init();"
helpURI="chrome://browser/locale/help/help.rdf"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:aaa="http://www.w3.org/2005/07/aaa">
<preferences id="advancedPreferences">
@ -223,7 +222,7 @@
<!-- Update -->
<tabpanel id="updatePanel" orient="vertical" align="start">
<label control="autoUpdateGroup">&autoCheck.label;</label>
<vbox class="indent" id="autoUpdateGroup" xhtml2:role="wairole:groupbox">
<vbox class="indent" id="autoUpdateGroup" xhtml:role="group">
<checkbox id="enableAppUpdate"
label="&enableAppUpdate.label;"
accesskey="&enableAppUpdate.accesskey;"

Просмотреть файл

@ -34,9 +34,8 @@
<vbox id="safebrowsing-palm-message-content"
class="safebrowsing-palm-fixed-width"
style="-moz-user-focus: normal"
xmlns:x2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
x2:role="wairole:alert">
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xhtml:role="alert">
<hbox id="safebrowsing-palm-close-container" align="center"
class="safebrowsing-palm-fixed-width">

Просмотреть файл

@ -44,9 +44,8 @@
<window id="newMailAlertNotification"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
windowtype="alert:alert"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xhtml2:role="wairole:alert"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xhtml:role="alert"
align="start"
onload="onAlertLoad()">

Просмотреть файл

@ -48,9 +48,7 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="paneAdvanced" onpaneload="gAdvancedPane.init();"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xmlns:aaa="http://www.w3.org/2005/07/aaa">
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript" src="chrome://messenger/content/preferences/advanced.js"/>
<preferences>
@ -198,18 +196,16 @@
<!-- Update -->
<tabpanel orient="vertical" align="start">
<label>&autoCheck.label;</label>
<vbox class="indent">
<label control="autoUpdateGroup">&autoCheck.label;</label>
<vbox class="indent" id="autoUpdateGroup" xhtml:role="group">
<checkbox id="enableAppUpdate"
label="&enableAppUpdate.label;"
accesskey="&enableAppUpdate.accesskey;"
preference="app.update.enabled"
xhtml2:role="wairole:checkbox" aaa:describedby="updateInfo"/>
preference="app.update.enabled"/>
<checkbox id="enableAddonUpdate"
label="&enableAddonsUpdate.label;"
accesskey="&enableAddonsUpdate.accesskey;"
preference="extensions.update.enabled"
xhtml2:role="wairole:checkbox" aaa:describedby="updateInfo"/>
preference="extensions.update.enabled"/>
</vbox>
<separator/>
<label id="updateModeLabel">&whenUpdatesFound.label;</label>

Просмотреть файл

@ -48,8 +48,6 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="gChangeActionDialog.init();"
ondialogaccept="return gChangeActionDialog.onAccept();"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xmlns:aaa="http://www.w3.org/2005/07/aaa"
style="width: &window.width;;"
persist="screenX screenY">
@ -69,7 +67,7 @@
<vbox id="changeActionContent" flex="1">
<label control="handlerGroup">&whenDownloading.label;</label>
<radiogroup id="handlerGroup" onselect="gChangeActionDialog.doEnabling(this.selectedItem);"
flex="1" xhtml2:role="wairole:radiogroup" aaa:describedby="changeActionHeader">
flex="1" aaa:describedby="changeActionHeader">
<separator class="thin"/>
<radio id="openDefault" value="system"
label="&openDefault.label;" accesskey="&openDefault.accesskey;"/>

Просмотреть файл

@ -89,9 +89,8 @@
<content dlgbuttons="accept,cancel" persist="lastSelected screenX screenY"
closebuttonlabel="&preferencesCloseButton.label;"
closebuttonaccesskey="&preferencesCloseButton.accesskey;"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xhtml2:role="wairole:dialog"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xhtml:role="dialog"
#ifdef XP_WIN
title="&preferencesDefaultTitleWin.title;"
#else
@ -99,7 +98,7 @@
#endif
>
<xul:radiogroup anonid="selector" orient="horizontal" class="paneSelector chromeclass-toolbar"
xhtml2:role="wairole:list"/> <!-- Expose to accessibility APIs as a list -->
xhtml:role="listbox"/> <!-- Expose to accessibility APIs as a listbox -->
<xul:hbox flex="1" class="paneDeckContainer">
<xul:vbox anonid="navTrees">
<children includes="tree"/>

Просмотреть файл

@ -47,8 +47,7 @@
onunload="MigrationWizard.uninit()"
style="width: 40em; height: 32em;"
buttons="accept,cancel"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#">
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript"
src="chrome://communicator/content/migration/migration.js"/>
@ -95,7 +94,7 @@
<description control="dataSources">&importItems.label;</description>
<vbox id="dataSources" style="overflow-y: auto;"
align="left" flex="1" xhtml2:role="wairole:groupbox"/>
align="left" flex="1" xhtml:role="group"/>
</wizardpage>
<wizardpage id="homePageImport" pageid="homePageImport"
@ -115,7 +114,7 @@
<description control="migratingItems">&migrating.label;</description>
<vbox id="migratingItems" style="overflow-y: auto;" align="left"
xhtml2:role="wairole:groupbox"/>
xhtml:role="group"/>
<hbox>
<progressmeter class="progressmeter-statusbar" id="progressBar"
@ -128,6 +127,6 @@
<description control="doneItems">&done.label;</description>
<vbox id="doneItems" style="overflow-y: auto;" align="left"
xhtml2:role="wairole:groupbox"/>
xhtml:role="group"/>
</wizardpage>
</wizard>

Просмотреть файл

@ -41,9 +41,8 @@
<window id="alertNotification"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
windowtype="alert:alert"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xhtml2:role="wairole:alert"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xhtml:role="alert"
pack="start"
onload="onAlertLoad()">

Просмотреть файл

@ -6,9 +6,8 @@
<dialog id="commonDialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xhtml2:role="wairole:alert"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xhtml:role="alert"
onload="commonDialogOnLoad();"
ondialogaccept="return commonDialogOnAccept();"
ondialogextra1="return commonDialogOnExtra1();"

Просмотреть файл

@ -848,7 +848,6 @@
<content>
<vbox class="datepicker-mainbox"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<hbox class="datepicker-monthbox" align="center">
<button class="datepicker-previous datepicker-button" type="repeat"
@ -875,7 +874,7 @@
chromedir="&locale.dir;" xbl:inherits="disabled"
oncommand="document.getBindingParent(this)._increaseOrDecreaseMonth(1);"/>
</hbox>
<grid class="datepicker-grid" html:role="wairole:grid">
<grid class="datepicker-grid" html:role="grid">
<columns>
<column class="datepicker-gridrow" flex="1"/>
<column class="datepicker-gridrow" flex="1"/>
@ -887,67 +886,67 @@
</columns>
<rows anonid="datebox">
<row anonid="dayofweekbox">
<label class="datepicker-weeklabel" html:role="wairole:columnheader"/>
<label class="datepicker-weeklabel" html:role="wairole:columnheader"/>
<label class="datepicker-weeklabel" html:role="wairole:columnheader"/>
<label class="datepicker-weeklabel" html:role="wairole:columnheader"/>
<label class="datepicker-weeklabel" html:role="wairole:columnheader"/>
<label class="datepicker-weeklabel" html:role="wairole:columnheader"/>
<label class="datepicker-weeklabel" html:role="wairole:columnheader"/>
<label class="datepicker-weeklabel" html:role="columnheader"/>
<label class="datepicker-weeklabel" html:role="columnheader"/>
<label class="datepicker-weeklabel" html:role="columnheader"/>
<label class="datepicker-weeklabel" html:role="columnheader"/>
<label class="datepicker-weeklabel" html:role="columnheader"/>
<label class="datepicker-weeklabel" html:role="columnheader"/>
<label class="datepicker-weeklabel" html:role="columnheader"/>
</row>
<row>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
</row>
<row>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
</row>
<row>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
</row>
<row>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
</row>
<row>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
</row>
<row>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="wairole:gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
<label class="datepicker-gridlabel" html:role="gridcell"/>
</row>
</rows>
</grid>

Просмотреть файл

@ -508,16 +508,15 @@
<content dlgbuttons="accept,cancel" persist="lastSelected screenX screenY"
closebuttonlabel="&preferencesCloseButton.label;"
closebuttonaccesskey="&preferencesCloseButton.accesskey;"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xhtml2:role="wairole:dialog"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xhtml:role="dialog"
#ifdef XP_WIN
title="&preferencesDefaultTitleWin.title;">
#else
title="&preferencesDefaultTitleMac.title;">
#endif
<xul:radiogroup anonid="selector" orient="horizontal" class="paneSelector chromeclass-toolbar"
xhtml2:role="wairole:list"/> <!-- Expose to accessibility APIs as a list -->
xhtml:role="listbox"/> <!-- Expose to accessibility APIs as a listbox -->
<xul:hbox flex="1" class="paneDeckContainer">
<xul:deck anonid="paneDeck" flex="1">
<children includes="prefpane"/>

Просмотреть файл

@ -52,8 +52,7 @@
<window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
id="extensionsManager" windowtype="Extension:Manager"
orient="vertical" title="&addons.title;"
screenX="10" screenY="10" width="&em.width;" height="&em.height;"
@ -152,7 +151,7 @@
<popup id="addonContextMenu" onpopupshowing="return buildContextMenu(event);"/>
<stack id="topStackBar">
<radiogroup id="viewGroup" xhtml2:role="wairole:list" persist="last-selected"
<radiogroup id="viewGroup" xhtml:role="listbox" persist="last-selected"
class="viewSelector chromeclass-toolbar" orient="horizontal">
<radio id="extensions-view" label="&extensions.label;" oncommand="showView('extensions');" persist="last-selected"/>
<radio id="themes-view" label="&themes.label;" oncommand="showView('themes');" persist="last-selected"/>

Просмотреть файл

@ -14,8 +14,6 @@
style="width: 35em;"
ondialogaccept="gRemovePasswordDialog.removePassword();"
onload="gRemovePasswordDialog.init()"
xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
xmlns:aaa="http://www.w3.org/2005/07/aaa">
<script type="application/javascript" src="chrome://mozapps/content/preferences/removemp.js"/>
@ -36,7 +34,7 @@
<label control="password" value="&setPassword.oldPassword.label;"/>
<textbox id="password" type="password"
oninput="gRemovePasswordDialog.validateInput();"
xhtml2:role="textfield" aaa:describedby="warnings"/>
aaa:describedby="warnings"/>
</hbox>
</groupbox>