mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 575653 - [e10s] string assignment to LossyCopyUTF16toASCII in nsHTMLCanvasElement r=bzbarsky, a=approval2.0
This commit is contained in:
parent
9df583f18e
commit
f84052b728
@ -373,8 +373,7 @@ nsHTMLCanvasElement::GetContextHelper(const nsAString& aContextId,
|
||||
{
|
||||
NS_ENSURE_ARG(aContext);
|
||||
|
||||
nsCString ctxId;
|
||||
ctxId.Assign(NS_LossyConvertUTF16toASCII(aContextId));
|
||||
NS_LossyConvertUTF16toASCII ctxId(aContextId);
|
||||
|
||||
// check that ctxId is clamped to A-Za-z0-9_-
|
||||
for (PRUint32 i = 0; i < ctxId.Length(); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user