bug 438784 - URL of loaded page no longer exposed as the accValue for the Doc accessible, r=surkov

This commit is contained in:
Marco Zehe 2008-06-25 09:27:45 +02:00
parent 4dad566903
commit ae73e2fa31

View File

@ -333,6 +333,12 @@ __try {
if (NS_FAILED(xpAccessible->GetValue(value)))
return E_FAIL;
// see bug 438784: Need to expose URL on doc's value attribute.
// For this, reverting part of fix for bug 425693 to make this MSAA method
// behave IAccessible2-style.
if (value.IsEmpty())
return S_FALSE;
*pszValue = ::SysAllocStringLen(value.get(), value.Length());
if (!*pszValue)
return E_OUTOFMEMORY;