File tree Expand file tree Collapse file tree
nvdaHelper/vbufBackends/gecko_ia2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -532,9 +532,16 @@ VBufStorage_fieldNode_t* GeckoVBufBackend_t::fillVBuf(IAccessible2* pacc,
532532 // get IA2Attributes -- IAccessible2 attributes;
533533 BSTR IA2Attributes;
534534 map<wstring,wstring> IA2AttribsMap;
535+ map<wstring,wstring>::const_iterator IA2AttribsMapIt;
535536 if (pacc->get_attributes (&IA2Attributes)==S_OK ) {
536537 IA2AttribsToMap (IA2Attributes,IA2AttribsMap);
537538 SysFreeString (IA2Attributes);
539+ // Truncate the value of "src" if it contains data (eg. Base64)
540+ if ((IA2AttribsMapIt = IA2AttribsMap.find (L" src" )) != IA2AttribsMap.end ()) {
541+ if (IA2AttribsMapIt->second .substr (0 , 5 ) == L" data:" ) {
542+ IA2AttribsMap[L" src" ] = L" data:<truncated>" ;
543+ }
544+ }
538545 // Add each IA2 attribute as an attrib.
539546 for (map<wstring,wstring>::const_iterator it=IA2AttribsMap.begin ();it!=IA2AttribsMap.end ();++it) {
540547 s<<L" IAccessible2::attribute_" <<it->first ;
@@ -543,7 +550,6 @@ VBufStorage_fieldNode_t* GeckoVBufBackend_t::fillVBuf(IAccessible2* pacc,
543550 }
544551 } else
545552 LOG_DEBUG (L" pacc->get_attributes failed" );
546- map<wstring,wstring>::const_iterator IA2AttribsMapIt;
547553
548554 // Check IA2Attributes, and or the role etc to work out if this object is a block element
549555 bool isBlockElement=TRUE ;
You can’t perform that action at this time.
0 commit comments