Merge pull request #13417 from Snuffleupagus/xfa-URL-clone
[XFA] Send URLs as strings, rather than objects (issue 1773)
This commit is contained in:
commit
0df1a56619
@ -2257,7 +2257,7 @@ class Image extends StringObject {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (this.href) {
|
if (this.href) {
|
||||||
html.attributes.src = new URL(this.href);
|
html.attributes.src = new URL(this.href).href;
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1800,7 +1800,10 @@ class LoopbackPort {
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
result = Array.isArray(value) ? [] : {};
|
if (value instanceof URL) {
|
||||||
|
throw new Error(`LoopbackPort.postMessage - cannot clone: ${value}`);
|
||||||
|
}
|
||||||
|
result = Array.isArray(value) ? [] : Object.create(null);
|
||||||
cloned.set(value, result); // Adding to cache now for cyclic references.
|
cloned.set(value, result); // Adding to cache now for cyclic references.
|
||||||
// Cloning all value and object properties, however ignoring properties
|
// Cloning all value and object properties, however ignoring properties
|
||||||
// defined via getter.
|
// defined via getter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user