mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 03:45:42 +00:00
Bug 575653 - [e10s] string assignment to LossyCopyUTF16toASCII in nsHTMLCanvasElement r=bzbarsky, a=approval2.0
This commit is contained in:
parent
110eddecd7
commit
c569048949
@ -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