Skip to content

IA2 vbuf: IAccessible2::attribute_src: Truncate base64 data yet preserve the MIME type#10290

Merged
michaelDCurran merged 1 commit into
nvaccess:masterfrom
accessolutions:ia2Base64vbuf
Sep 30, 2019
Merged

IA2 vbuf: IAccessible2::attribute_src: Truncate base64 data yet preserve the MIME type#10290
michaelDCurran merged 1 commit into
nvaccess:masterfrom
accessolutions:ia2Base64vbuf

Conversation

@JulienCochuyt
Copy link
Copy Markdown
Contributor

Link to issue number:

Follow up of #10231

Summary of the issue:

When the src attribute of an img elements contains huge base64 data, the virtual buffer is uselessly filled with potentially lengthy content that impact performance.

Description of how this pull request fixes the issue:

When the value of the src starts with "data:", locate "base64," and truncate everything onward, replacing it with "<truncated>".

Testing performed:

Tested against the test case of #10227.

Known issues with pull request:

Change log entry:

I'm not sure this deserves to be announced.
Otherwise:

Section: Changes for developers

Firefox and Chrome: In the src attribute of an img element, base64 data are now truncated from the virtual buffer.

@michaelDCurran michaelDCurran merged commit 547712e into nvaccess:master Sep 30, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Sep 30, 2019
@JulienCochuyt JulienCochuyt deleted the ia2Base64vbuf branch September 30, 2019 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants