@lwrjs/client-modules 0.11.0-alpha.9 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle/prod/lwr/lockerDefine/lockerDefine.js +1 -1
- package/build/bundle/prod/lwr/servicesESM/servicesESM.js +1 -1
- package/build/modules/lwr/environment/environment.js +10 -1
- package/build/modules/lwr/lockerDefine/lockerDefine.js +347 -92
- package/build/modules/lwr/lockerSandbox/lockerSandbox.js +347 -92
- package/build/modules/lwr/servicesESM/servicesESM.js +5 -1
- package/package.json +7 -7
|
@@ -1453,7 +1453,7 @@ const {
|
|
|
1453
1453
|
} = PromiseCtor$LWS.prototype;
|
|
1454
1454
|
const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
|
|
1455
1455
|
const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
|
|
1456
|
-
/*! version: 0.20.
|
|
1456
|
+
/*! version: 0.20.5 */
|
|
1457
1457
|
|
|
1458
1458
|
/*!
|
|
1459
1459
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2112,7 +2112,7 @@ const {
|
|
|
2112
2112
|
const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'responseText');
|
|
2113
2113
|
const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'status');
|
|
2114
2114
|
ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
|
|
2115
|
-
/*! version: 0.20.
|
|
2115
|
+
/*! version: 0.20.5 */
|
|
2116
2116
|
|
|
2117
2117
|
/*!
|
|
2118
2118
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -2171,7 +2171,7 @@ function sanitizeURLForElement$LWS(url$LWS) {
|
|
|
2171
2171
|
function sanitizeURLString$LWS(urlString$LWS) {
|
|
2172
2172
|
return urlString$LWS === '' ? urlString$LWS : ReflectApply$LWS$1(StringProtoReplace$LWS, urlString$LWS, [newlinesAndTabsRegExp$LWS, '']);
|
|
2173
2173
|
}
|
|
2174
|
-
/*! version: 0.20.
|
|
2174
|
+
/*! version: 0.20.5 */
|
|
2175
2175
|
|
|
2176
2176
|
/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
|
|
2177
2177
|
|
|
@@ -3857,7 +3857,7 @@ try {
|
|
|
3857
3857
|
// swallow
|
|
3858
3858
|
}
|
|
3859
3859
|
const trusted = createPolicy('trusted', policyOptions);
|
|
3860
|
-
/*! version: 0.20.
|
|
3860
|
+
/*! version: 0.20.5 */
|
|
3861
3861
|
|
|
3862
3862
|
/*!
|
|
3863
3863
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -4106,7 +4106,7 @@ function blobSanitizer$LWS(sandboxKey$LWS) {
|
|
|
4106
4106
|
}
|
|
4107
4107
|
return getSanitizerForConfig$LWS(sandboxKey$LWS, 'STRING_BLOB_HTML');
|
|
4108
4108
|
}
|
|
4109
|
-
/*! version: 0.20.
|
|
4109
|
+
/*! version: 0.20.5 */
|
|
4110
4110
|
|
|
4111
4111
|
/*!
|
|
4112
4112
|
* Copyright (C) 2023 salesforce.com, inc.
|
|
@@ -4304,7 +4304,7 @@ function encloseSrcSetter$LWS(targetElement$LWS) {
|
|
|
4304
4304
|
ReflectApply$LWS$1(ElementProtoSetAttributeNS$LWS, targetElement$LWS, [attributeNamespaceURI$LWS, attributeName$LWS, src$LWS]);
|
|
4305
4305
|
};
|
|
4306
4306
|
}
|
|
4307
|
-
/*! version: 0.20.
|
|
4307
|
+
/*! version: 0.20.5 */
|
|
4308
4308
|
|
|
4309
4309
|
/*!
|
|
4310
4310
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -4492,7 +4492,7 @@ class VirtualRegistry$LWS {
|
|
|
4492
4492
|
this._pendingRegistryByElement.set(instance$LWS, originalDefinition$LWS);
|
|
4493
4493
|
// We need to install the minimum HTMLElement prototype so that
|
|
4494
4494
|
// this instance works like a regular element without a registered
|
|
4495
|
-
// definition. `this
|
|
4495
|
+
// definition. `instanceRegistryMap.get(this)!.upgrade()` will eventually
|
|
4496
4496
|
// install the full custom element prototype.
|
|
4497
4497
|
ReflectSetPrototypeOf$LWS$1(instance$LWS, this._originalHTMLElementCtor.prototype);
|
|
4498
4498
|
}
|
|
@@ -4597,6 +4597,7 @@ function createDefinitionRecord$LWS(LocalCtor$LWS) {
|
|
|
4597
4597
|
formStateRestoreCallback: typeof formStateRestoreCallback$LWS === 'function' ? formStateRestoreCallback$LWS : undefined
|
|
4598
4598
|
};
|
|
4599
4599
|
}
|
|
4600
|
+
const instanceRegistryMap$LWS = toSafeWeakMap$LWS$1(new WeakMapCtor$LWS$1());
|
|
4600
4601
|
// Helper to create stand-in element for each tagName registered that delegates
|
|
4601
4602
|
// out to the registry for the given element.
|
|
4602
4603
|
function createPivotingClass$LWS(document$LWS, originalHTMLElementCtor$LWS,
|
|
@@ -4612,11 +4613,12 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4612
4613
|
// b) A `new LocalCtor()` call from the blue realm (system mode).
|
|
4613
4614
|
// c) A `new LocalCtor()` call from the red realm (sandbox).
|
|
4614
4615
|
super();
|
|
4616
|
+
let instanceRegistry$LWS;
|
|
4615
4617
|
if (localRegistry$LWS && definition$LWS) {
|
|
4616
|
-
|
|
4618
|
+
instanceRegistry$LWS = localRegistry$LWS;
|
|
4617
4619
|
localRegistry$LWS.setDefinition(this, definition$LWS);
|
|
4618
4620
|
} else {
|
|
4619
|
-
|
|
4621
|
+
instanceRegistry$LWS =
|
|
4620
4622
|
// Usually `el.innerHTML` or any other parsing driven
|
|
4621
4623
|
// initialization.
|
|
4622
4624
|
getNodeRegistry$LWS(document$LWS, this) ||
|
|
@@ -4627,11 +4629,12 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4627
4629
|
getCurrentRegistry$LWS() ||
|
|
4628
4630
|
// Global stuff.
|
|
4629
4631
|
getGlobalCustomElementRegistry$LWS(document$LWS, originalHTMLElementCtor$LWS);
|
|
4630
|
-
|
|
4632
|
+
instanceRegistry$LWS.scheduleOrUpgrade(this, tagName$LWS, originalDefinition$LWS);
|
|
4631
4633
|
}
|
|
4634
|
+
instanceRegistryMap$LWS.set(this, instanceRegistry$LWS);
|
|
4632
4635
|
}
|
|
4633
4636
|
adoptedCallback() {
|
|
4634
|
-
const definition$LWS = this.
|
|
4637
|
+
const definition$LWS = instanceRegistryMap$LWS.get(this).getDefinition(this);
|
|
4635
4638
|
const adoptedCallback$LWS = definition$LWS && definition$LWS.adoptedCallback;
|
|
4636
4639
|
// istanbul ignore else: currently unreachable via tests
|
|
4637
4640
|
if (adoptedCallback$LWS) {
|
|
@@ -4639,7 +4642,7 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4639
4642
|
}
|
|
4640
4643
|
}
|
|
4641
4644
|
attributeChangedCallback(attrName$LWS, oldValue$LWS, newValue$LWS) {
|
|
4642
|
-
const definition$LWS = this.
|
|
4645
|
+
const definition$LWS = instanceRegistryMap$LWS.get(this).getDefinition(this);
|
|
4643
4646
|
const attributeChangedCallback$LWS = definition$LWS && definition$LWS.attributeChangedCallback;
|
|
4644
4647
|
if (attributeChangedCallback$LWS && (
|
|
4645
4648
|
// If both definitions are the same, then the observedAttributes
|
|
@@ -4651,9 +4654,7 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4651
4654
|
}
|
|
4652
4655
|
}
|
|
4653
4656
|
connectedCallback() {
|
|
4654
|
-
const
|
|
4655
|
-
instanceRegistry: instanceRegistry$LWS
|
|
4656
|
-
} = this;
|
|
4657
|
+
const instanceRegistry$LWS = instanceRegistryMap$LWS.get(this);
|
|
4657
4658
|
const definition$LWS = instanceRegistry$LWS.getDefinition(this);
|
|
4658
4659
|
if (definition$LWS) {
|
|
4659
4660
|
const {
|
|
@@ -4667,9 +4668,7 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4667
4668
|
}
|
|
4668
4669
|
}
|
|
4669
4670
|
disconnectedCallback() {
|
|
4670
|
-
const
|
|
4671
|
-
instanceRegistry: instanceRegistry$LWS
|
|
4672
|
-
} = this;
|
|
4671
|
+
const instanceRegistry$LWS = instanceRegistryMap$LWS.get(this);
|
|
4673
4672
|
const definition$LWS = instanceRegistry$LWS.getDefinition(this);
|
|
4674
4673
|
if (definition$LWS) {
|
|
4675
4674
|
const {
|
|
@@ -4683,21 +4682,21 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4683
4682
|
}
|
|
4684
4683
|
}
|
|
4685
4684
|
formAssociatedCallback(form$LWS) {
|
|
4686
|
-
const definition$LWS = this.
|
|
4685
|
+
const definition$LWS = instanceRegistryMap$LWS.get(this).getDefinition(this);
|
|
4687
4686
|
const formAssociatedCallback$LWS = definition$LWS && definition$LWS.formAssociatedCallback;
|
|
4688
4687
|
if (formAssociatedCallback$LWS) {
|
|
4689
4688
|
ReflectApply$LWS$1(formAssociatedCallback$LWS, this, [form$LWS]);
|
|
4690
4689
|
}
|
|
4691
4690
|
}
|
|
4692
4691
|
formDisabledCallback(disabled$LWS) {
|
|
4693
|
-
const definition$LWS = this.
|
|
4692
|
+
const definition$LWS = instanceRegistryMap$LWS.get(this).getDefinition(this);
|
|
4694
4693
|
const formDisabledCallback$LWS = definition$LWS && definition$LWS.formDisabledCallback;
|
|
4695
4694
|
if (formDisabledCallback$LWS) {
|
|
4696
4695
|
ReflectApply$LWS$1(formDisabledCallback$LWS, this, [disabled$LWS]);
|
|
4697
4696
|
}
|
|
4698
4697
|
}
|
|
4699
4698
|
formResetCallback() {
|
|
4700
|
-
const definition$LWS = this.
|
|
4699
|
+
const definition$LWS = instanceRegistryMap$LWS.get(this).getDefinition(this);
|
|
4701
4700
|
const formResetCallback$LWS = definition$LWS && definition$LWS.formResetCallback;
|
|
4702
4701
|
if (formResetCallback$LWS) {
|
|
4703
4702
|
ReflectApply$LWS$1(formResetCallback$LWS, this, []);
|
|
@@ -4705,7 +4704,7 @@ originalDefinition$LWS, tagName$LWS) {
|
|
|
4705
4704
|
}
|
|
4706
4705
|
// istanbul ignore next: currently unreachable via tests because the browser mechanics that would result in its execution cannot be simulated or reproduced.
|
|
4707
4706
|
formStateRestoreCallback(state$LWS, reason$LWS) {
|
|
4708
|
-
const definition$LWS = this.
|
|
4707
|
+
const definition$LWS = instanceRegistryMap$LWS.get(this).getDefinition(this);
|
|
4709
4708
|
const formStateRestoreCallback$LWS = definition$LWS && definition$LWS.formStateRestoreCallback;
|
|
4710
4709
|
if (formStateRestoreCallback$LWS) {
|
|
4711
4710
|
ReflectApply$LWS$1(formStateRestoreCallback$LWS, this, [state$LWS, reason$LWS]);
|
|
@@ -5859,8 +5858,11 @@ function initDistortionDocumentDomainSetter$LWS({
|
|
|
5859
5858
|
};
|
|
5860
5859
|
}
|
|
5861
5860
|
const {
|
|
5862
|
-
isSharedElement: isSharedElement$
|
|
5861
|
+
isSharedElement: isSharedElement$r$LWS
|
|
5863
5862
|
} = rootValidator$LWS;
|
|
5863
|
+
function throwLockerSecurityError$LWS(command$LWS, target$LWS) {
|
|
5864
|
+
throw new LockerSecurityError$LWS(`Cannot execute command '${command$LWS}' on ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, target$LWS, [])}.`);
|
|
5865
|
+
}
|
|
5864
5866
|
function initDistortionDocumentExecCommand$LWS({
|
|
5865
5867
|
document: document$LWS,
|
|
5866
5868
|
globalObject: {
|
|
@@ -5879,29 +5881,38 @@ function initDistortionDocumentExecCommand$LWS({
|
|
|
5879
5881
|
type: type$LWS
|
|
5880
5882
|
}) {
|
|
5881
5883
|
return [originalExecCommand$LWS, function execCommand$LWS(...args$LWS) {
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5884
|
+
const {
|
|
5885
|
+
length: length$LWS
|
|
5886
|
+
} = args$LWS;
|
|
5887
|
+
if (length$LWS >= 1) {
|
|
5888
|
+
const command$LWS = toString$LWS(args$LWS[0]);
|
|
5889
|
+
const loweredCommand$LWS = ReflectApply$LWS$1(StringProtoToLowerCase$LWS, command$LWS, []);
|
|
5890
|
+
if (length$LWS === 1 && loweredCommand$LWS === 'selectall' && this === rootDocument$LWS) {
|
|
5891
|
+
throwLockerSecurityError$LWS(command$LWS, this);
|
|
5892
|
+
}
|
|
5893
|
+
if (length$LWS > 2) {
|
|
5894
|
+
const {
|
|
5895
|
+
2: unsanitizedValue$LWS
|
|
5896
|
+
} = args$LWS;
|
|
5897
|
+
// istanbul ignore else: needs default platform behavior test
|
|
5898
|
+
if (unsanitizedValue$LWS !== null && unsanitizedValue$LWS !== undefined) {
|
|
5899
|
+
// istanbul ignore else: LWS does not test for all possible commands
|
|
5900
|
+
if (loweredCommand$LWS === 'inserthtml') {
|
|
5901
|
+
// istanbul ignore else: external is the default sandbox type for coverage runs
|
|
5902
|
+
if (type$LWS === 0 /* SandboxType.External */) {
|
|
5903
|
+
const activeElement$LWS = ReflectApply$LWS$1(originalActiveElement$LWS, this, []);
|
|
5904
|
+
if (isSharedElement$r$LWS(activeElement$LWS) && ReflectApply$LWS$1(originalIsContentEditable$LWS, activeElement$LWS, [])) {
|
|
5905
|
+
throwLockerSecurityError$LWS(command$LWS, activeElement$LWS);
|
|
5906
|
+
}
|
|
5896
5907
|
}
|
|
5908
|
+
// This must be called to signal to the virtual
|
|
5909
|
+
// CustomElementRegistry that the next thing created
|
|
5910
|
+
// MAY CONTAIN a custom element, which must be marked
|
|
5911
|
+
// for association to this sandbox.
|
|
5912
|
+
setCustomElementsRegistry$LWS(document$LWS, key$LWS);
|
|
5913
|
+
args$LWS[0] = command$LWS;
|
|
5914
|
+
args$LWS[2] = lwsInternalPolicy$LWS.createHTML(unsanitizedValue$LWS, key$LWS, ContentType$LWS.HTML);
|
|
5897
5915
|
}
|
|
5898
|
-
// This must be called to signal to the virtual
|
|
5899
|
-
// CustomElementRegistry that the next thing created
|
|
5900
|
-
// MAY CONTAIN a custom element, which must be marked
|
|
5901
|
-
// for association to this sandbox.
|
|
5902
|
-
setCustomElementsRegistry$LWS(document$LWS, key$LWS);
|
|
5903
|
-
args$LWS[0] = command$LWS;
|
|
5904
|
-
args$LWS[2] = lwsInternalPolicy$LWS.createHTML(unsanitizedValue$LWS, key$LWS, ContentType$LWS.HTML);
|
|
5905
5916
|
}
|
|
5906
5917
|
}
|
|
5907
5918
|
}
|
|
@@ -6025,7 +6036,7 @@ function initDistortionDOMParserParseFromString$LWS({
|
|
|
6025
6036
|
};
|
|
6026
6037
|
}
|
|
6027
6038
|
const {
|
|
6028
|
-
isSharedElement: isSharedElement$
|
|
6039
|
+
isSharedElement: isSharedElement$q$LWS,
|
|
6029
6040
|
isAllowedSharedElementChild: isAllowedSharedElementChild$6$LWS
|
|
6030
6041
|
} = rootValidator$LWS;
|
|
6031
6042
|
function initDistortionElementAfter$LWS({
|
|
@@ -6040,7 +6051,7 @@ function initDistortionElementAfter$LWS({
|
|
|
6040
6051
|
}) {
|
|
6041
6052
|
const distortionEntry$LWS = [originalAfter$LWS, function after$LWS(...args$LWS) {
|
|
6042
6053
|
// istanbul ignore else: needs default platform behavior test
|
|
6043
|
-
if (isSharedElement$
|
|
6054
|
+
if (isSharedElement$q$LWS(this)) {
|
|
6044
6055
|
for (let i$LWS = 0, {
|
|
6045
6056
|
length: length$LWS
|
|
6046
6057
|
} = args$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
@@ -6058,7 +6069,7 @@ function initDistortionElementAfter$LWS({
|
|
|
6058
6069
|
};
|
|
6059
6070
|
}
|
|
6060
6071
|
const {
|
|
6061
|
-
isSharedElement: isSharedElement$
|
|
6072
|
+
isSharedElement: isSharedElement$p$LWS,
|
|
6062
6073
|
isAllowedSharedElementChild: isAllowedSharedElementChild$5$LWS
|
|
6063
6074
|
} = rootValidator$LWS;
|
|
6064
6075
|
function initDistortionElementAppend$LWS({
|
|
@@ -6073,7 +6084,7 @@ function initDistortionElementAppend$LWS({
|
|
|
6073
6084
|
}) {
|
|
6074
6085
|
const distortionEntry$LWS = [originalAppend$LWS, function append$LWS(...args$LWS) {
|
|
6075
6086
|
// istanbul ignore else: needs default platform behavior test
|
|
6076
|
-
if (isSharedElement$
|
|
6087
|
+
if (isSharedElement$p$LWS(this)) {
|
|
6077
6088
|
// Element.prototype.append(...args) accepts an arbitrary number
|
|
6078
6089
|
// of arguments which can be comprised of Nodes and DOMStrings.
|
|
6079
6090
|
for (let i$LWS = 0, {
|
|
@@ -6168,7 +6179,7 @@ function initDistortionElementAttributesGetter$LWS({
|
|
|
6168
6179
|
};
|
|
6169
6180
|
}
|
|
6170
6181
|
const {
|
|
6171
|
-
isSharedElement: isSharedElement$
|
|
6182
|
+
isSharedElement: isSharedElement$o$LWS,
|
|
6172
6183
|
isAllowedSharedElementChild: isAllowedSharedElementChild$4$LWS
|
|
6173
6184
|
} = rootValidator$LWS;
|
|
6174
6185
|
function initDistortionElementBefore$LWS({
|
|
@@ -6183,7 +6194,7 @@ function initDistortionElementBefore$LWS({
|
|
|
6183
6194
|
}) {
|
|
6184
6195
|
const distortionEntry$LWS = [originalBefore$LWS, function before$LWS(...args$LWS) {
|
|
6185
6196
|
// istanbul ignore else: needs default platform behavior test
|
|
6186
|
-
if (isSharedElement$
|
|
6197
|
+
if (isSharedElement$o$LWS(this)) {
|
|
6187
6198
|
for (let i$LWS = 0, {
|
|
6188
6199
|
length: length$LWS
|
|
6189
6200
|
} = args$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
@@ -6267,7 +6278,7 @@ function scriptPropertySetters$LWS(incomingThis$LWS, property$LWS, valueAsTruste
|
|
|
6267
6278
|
return false;
|
|
6268
6279
|
}
|
|
6269
6280
|
const {
|
|
6270
|
-
isSharedElement: isSharedElement$
|
|
6281
|
+
isSharedElement: isSharedElement$n$LWS
|
|
6271
6282
|
} = rootValidator$LWS;
|
|
6272
6283
|
function initDistortionElementInnerHTMLSetter$LWS({
|
|
6273
6284
|
document: document$LWS,
|
|
@@ -6293,7 +6304,7 @@ function initDistortionElementInnerHTMLSetter$LWS({
|
|
|
6293
6304
|
const isOwnerXMLDocument$LWS = ReflectApply$LWS$1(NodeProtoOwnerDocumentGetter$LWS, this, []) instanceof XMLDocument$LWS;
|
|
6294
6305
|
if (!isOwnerXMLDocument$LWS) {
|
|
6295
6306
|
// istanbul ignore else: needs default platform behavior test
|
|
6296
|
-
if (isSharedElement$
|
|
6307
|
+
if (isSharedElement$n$LWS(this)) {
|
|
6297
6308
|
throw new LockerSecurityError$LWS(`Cannot set innerHTML of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
6298
6309
|
}
|
|
6299
6310
|
if (this instanceof HTMLScriptElement$LWS || this instanceof SVGScriptElement) {
|
|
@@ -6315,7 +6326,7 @@ function initDistortionElementInnerHTMLSetter$LWS({
|
|
|
6315
6326
|
};
|
|
6316
6327
|
}
|
|
6317
6328
|
const {
|
|
6318
|
-
isSharedElement: isSharedElement$
|
|
6329
|
+
isSharedElement: isSharedElement$m$LWS,
|
|
6319
6330
|
isAllowedSharedElementChild: isAllowedSharedElementChild$3$LWS
|
|
6320
6331
|
} = rootValidator$LWS;
|
|
6321
6332
|
function initDistortionElementInsertAdjacentElement$LWS({
|
|
@@ -6334,7 +6345,7 @@ function initDistortionElementInsertAdjacentElement$LWS({
|
|
|
6334
6345
|
1: element$LWS
|
|
6335
6346
|
} = args$LWS;
|
|
6336
6347
|
// istanbul ignore else: needs default platform behavior test
|
|
6337
|
-
if (isSharedElement$
|
|
6348
|
+
if (isSharedElement$m$LWS(this) && !isAllowedSharedElementChild$3$LWS(element$LWS)) {
|
|
6338
6349
|
throw new LockerSecurityError$LWS(`Cannot insert ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, element$LWS, [])} adjacent to ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
6339
6350
|
}
|
|
6340
6351
|
}
|
|
@@ -6345,7 +6356,7 @@ function initDistortionElementInsertAdjacentElement$LWS({
|
|
|
6345
6356
|
};
|
|
6346
6357
|
}
|
|
6347
6358
|
const {
|
|
6348
|
-
isSharedElement: isSharedElement$
|
|
6359
|
+
isSharedElement: isSharedElement$l$LWS
|
|
6349
6360
|
} = rootValidator$LWS;
|
|
6350
6361
|
const allowedElementHTMLRegExp$LWS = /^\s*<(link|script|style)/i;
|
|
6351
6362
|
function initDistortionElementInsertAdjacentHTML$LWS({
|
|
@@ -6365,7 +6376,7 @@ function initDistortionElementInsertAdjacentHTML$LWS({
|
|
|
6365
6376
|
// istanbul ignore else: needs default platform behavior test
|
|
6366
6377
|
if (args$LWS.length > 1) {
|
|
6367
6378
|
const match$LWS = ReflectApply$LWS$1(StringProtoMatch$LWS, args$LWS[1], [allowedElementHTMLRegExp$LWS]);
|
|
6368
|
-
if (isSharedElement$
|
|
6379
|
+
if (isSharedElement$l$LWS(this) && match$LWS === null) {
|
|
6369
6380
|
throw new LockerSecurityError$LWS(`Cannot insert adjacent HTML to ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}`);
|
|
6370
6381
|
}
|
|
6371
6382
|
// This must be called to signal to the virtual
|
|
@@ -6381,7 +6392,7 @@ function initDistortionElementInsertAdjacentHTML$LWS({
|
|
|
6381
6392
|
};
|
|
6382
6393
|
}
|
|
6383
6394
|
const {
|
|
6384
|
-
isSharedElement: isSharedElement$
|
|
6395
|
+
isSharedElement: isSharedElement$k$LWS
|
|
6385
6396
|
} = rootValidator$LWS;
|
|
6386
6397
|
function initDistortionElementOuterHTMLSetter$LWS({
|
|
6387
6398
|
document: document$LWS,
|
|
@@ -6395,7 +6406,7 @@ function initDistortionElementOuterHTMLSetter$LWS({
|
|
|
6395
6406
|
}) {
|
|
6396
6407
|
return [originalOuterHTMLSetter$LWS, function outerHTML$LWS(value$LWS) {
|
|
6397
6408
|
// istanbul ignore else: needs default platform behavior test
|
|
6398
|
-
if (isSharedElement$
|
|
6409
|
+
if (isSharedElement$k$LWS(this)) {
|
|
6399
6410
|
throw new LockerSecurityError$LWS(`Cannot set outerHTML of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
6400
6411
|
}
|
|
6401
6412
|
// This must be called to signal to the virtual
|
|
@@ -6408,7 +6419,7 @@ function initDistortionElementOuterHTMLSetter$LWS({
|
|
|
6408
6419
|
};
|
|
6409
6420
|
}
|
|
6410
6421
|
const {
|
|
6411
|
-
isSharedElement: isSharedElement$
|
|
6422
|
+
isSharedElement: isSharedElement$j$LWS,
|
|
6412
6423
|
isAllowedSharedElementChild: isAllowedSharedElementChild$2$LWS
|
|
6413
6424
|
} = rootValidator$LWS;
|
|
6414
6425
|
function initDistortionElementPrepend$LWS({
|
|
@@ -6423,7 +6434,7 @@ function initDistortionElementPrepend$LWS({
|
|
|
6423
6434
|
}) {
|
|
6424
6435
|
const distortionEntry$LWS = [originalPrepend$LWS, function prepend$LWS(...args$LWS) {
|
|
6425
6436
|
// istanbul ignore else: needs default platform behavior test
|
|
6426
|
-
if (isSharedElement$
|
|
6437
|
+
if (isSharedElement$j$LWS(this)) {
|
|
6427
6438
|
// Element.prototype.prepend(...args) accepts an arbitrary
|
|
6428
6439
|
// number of arguments which can be comprised of Nodes and
|
|
6429
6440
|
// DOMStrings.
|
|
@@ -6447,7 +6458,7 @@ function initDistortionElementPrepend$LWS({
|
|
|
6447
6458
|
};
|
|
6448
6459
|
}
|
|
6449
6460
|
const {
|
|
6450
|
-
isSharedElement: isSharedElement$
|
|
6461
|
+
isSharedElement: isSharedElement$i$LWS
|
|
6451
6462
|
} = rootValidator$LWS;
|
|
6452
6463
|
function initDistortionElementRemove$LWS({
|
|
6453
6464
|
globalObject: {
|
|
@@ -6460,7 +6471,7 @@ function initDistortionElementRemove$LWS({
|
|
|
6460
6471
|
}) {
|
|
6461
6472
|
const distortionEntry$LWS = [originalRemove$LWS, function remove$LWS() {
|
|
6462
6473
|
// istanbul ignore else: needs default platform behavior test
|
|
6463
|
-
if (isSharedElement$
|
|
6474
|
+
if (isSharedElement$i$LWS(this)) {
|
|
6464
6475
|
throw new LockerSecurityError$LWS(`Cannot remove ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
6465
6476
|
}
|
|
6466
6477
|
ReflectApply$LWS$1(originalRemove$LWS, this, []);
|
|
@@ -6470,7 +6481,7 @@ function initDistortionElementRemove$LWS({
|
|
|
6470
6481
|
};
|
|
6471
6482
|
}
|
|
6472
6483
|
const {
|
|
6473
|
-
isSharedElement: isSharedElement$
|
|
6484
|
+
isSharedElement: isSharedElement$h$LWS
|
|
6474
6485
|
} = rootValidator$LWS;
|
|
6475
6486
|
function initDistortionElementReplaceChildren$LWS({
|
|
6476
6487
|
globalObject: {
|
|
@@ -6483,7 +6494,7 @@ function initDistortionElementReplaceChildren$LWS({
|
|
|
6483
6494
|
}) {
|
|
6484
6495
|
const distortionEntry$LWS = [originalReplaceChildren$LWS, function replaceChildren$LWS(...args$LWS) {
|
|
6485
6496
|
// istanbul ignore else: needs default platform behavior test
|
|
6486
|
-
if (isSharedElement$
|
|
6497
|
+
if (isSharedElement$h$LWS(this)) {
|
|
6487
6498
|
throw new LockerSecurityError$LWS(`Cannot replace children of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
6488
6499
|
}
|
|
6489
6500
|
return ReflectApply$LWS$1(originalReplaceChildren$LWS, this, args$LWS);
|
|
@@ -6493,7 +6504,7 @@ function initDistortionElementReplaceChildren$LWS({
|
|
|
6493
6504
|
};
|
|
6494
6505
|
}
|
|
6495
6506
|
const {
|
|
6496
|
-
isSharedElement: isSharedElement$
|
|
6507
|
+
isSharedElement: isSharedElement$g$LWS
|
|
6497
6508
|
} = rootValidator$LWS;
|
|
6498
6509
|
function initDistortionElementReplaceWith$LWS({
|
|
6499
6510
|
globalObject: {
|
|
@@ -6506,7 +6517,7 @@ function initDistortionElementReplaceWith$LWS({
|
|
|
6506
6517
|
}) {
|
|
6507
6518
|
const distortionEntry$LWS = [originalReplaceWith$LWS, function replaceWith$LWS(...args$LWS) {
|
|
6508
6519
|
// istanbul ignore else: needs default platform behavior test
|
|
6509
|
-
if (isSharedElement$
|
|
6520
|
+
if (isSharedElement$g$LWS(this)) {
|
|
6510
6521
|
throw new LockerSecurityError$LWS(`Cannot replace ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
6511
6522
|
}
|
|
6512
6523
|
return ReflectApply$LWS$1(originalReplaceWith$LWS, this, args$LWS);
|
|
@@ -6712,7 +6723,7 @@ function initDistortionElementSetAttributeNS$LWS({
|
|
|
6712
6723
|
};
|
|
6713
6724
|
}
|
|
6714
6725
|
const {
|
|
6715
|
-
isSharedElement: isSharedElement$
|
|
6726
|
+
isSharedElement: isSharedElement$f$LWS
|
|
6716
6727
|
} = rootValidator$LWS;
|
|
6717
6728
|
function initDistortionElementSetHTML$LWS({
|
|
6718
6729
|
document: document$LWS,
|
|
@@ -6737,7 +6748,7 @@ function initDistortionElementSetHTML$LWS({
|
|
|
6737
6748
|
const isOwnerXMLDocument$LWS = ReflectApply$LWS$1(NodeProtoOwnerDocumentGetter$LWS, this, []) instanceof XMLDocument$LWS;
|
|
6738
6749
|
if (!isOwnerXMLDocument$LWS) {
|
|
6739
6750
|
// istanbul ignore else: needs default platform behavior test
|
|
6740
|
-
if (isSharedElement$
|
|
6751
|
+
if (isSharedElement$f$LWS(this)) {
|
|
6741
6752
|
throw new LockerSecurityError$LWS(`Cannot setHTML of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
6742
6753
|
}
|
|
6743
6754
|
// This must be called to signal to the virtual
|
|
@@ -7068,7 +7079,7 @@ function initDistortionHTMLElementDatasetGetter$LWS({
|
|
|
7068
7079
|
};
|
|
7069
7080
|
}
|
|
7070
7081
|
const {
|
|
7071
|
-
isSharedElement: isSharedElement$
|
|
7082
|
+
isSharedElement: isSharedElement$e$LWS
|
|
7072
7083
|
} = rootValidator$LWS;
|
|
7073
7084
|
function initDistortionHTMLElementInnerTextSetter$LWS({
|
|
7074
7085
|
globalObject: {
|
|
@@ -7082,7 +7093,7 @@ function initDistortionHTMLElementInnerTextSetter$LWS({
|
|
|
7082
7093
|
}
|
|
7083
7094
|
const distortionEntry$LWS = [originalInnerTextSetter$LWS, function innerText$LWS(value$LWS) {
|
|
7084
7095
|
// istanbul ignore else: needs default platform behavior test
|
|
7085
|
-
if (isSharedElement$
|
|
7096
|
+
if (isSharedElement$e$LWS(this)) {
|
|
7086
7097
|
throw new LockerSecurityError$LWS(`Cannot set innerText of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
7087
7098
|
}
|
|
7088
7099
|
ReflectApply$LWS$1(originalInnerTextSetter$LWS, this, [value$LWS]);
|
|
@@ -7092,7 +7103,7 @@ function initDistortionHTMLElementInnerTextSetter$LWS({
|
|
|
7092
7103
|
};
|
|
7093
7104
|
}
|
|
7094
7105
|
const {
|
|
7095
|
-
isSharedElement: isSharedElement$
|
|
7106
|
+
isSharedElement: isSharedElement$d$LWS
|
|
7096
7107
|
} = rootValidator$LWS;
|
|
7097
7108
|
// The outerText property is non-standard, so the descriptor could be undefined,
|
|
7098
7109
|
// like in the case of Firefox.
|
|
@@ -7109,7 +7120,7 @@ function initDistortionHTMLElementOuterTextSetter$LWS({
|
|
|
7109
7120
|
}
|
|
7110
7121
|
const distortionEntry$LWS = [originalOuterTextSetter$LWS, function outerText$LWS(value$LWS) {
|
|
7111
7122
|
// istanbul ignore else: needs default platform behavior test
|
|
7112
|
-
if (isSharedElement$
|
|
7123
|
+
if (isSharedElement$d$LWS(this)) {
|
|
7113
7124
|
throw new LockerSecurityError$LWS(`Cannot set outerText of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])}.`);
|
|
7114
7125
|
}
|
|
7115
7126
|
ReflectApply$LWS$1(originalOuterTextSetter$LWS, this, [value$LWS]);
|
|
@@ -7671,7 +7682,7 @@ function initDistortionNavigatorServiceWorkerGetter$LWS({
|
|
|
7671
7682
|
};
|
|
7672
7683
|
}
|
|
7673
7684
|
const {
|
|
7674
|
-
isSharedElement: isSharedElement$
|
|
7685
|
+
isSharedElement: isSharedElement$c$LWS,
|
|
7675
7686
|
isAllowedSharedElementChild: isAllowedSharedElementChild$1$LWS
|
|
7676
7687
|
} = rootValidator$LWS;
|
|
7677
7688
|
function initDistortionNodeInsertBefore$LWS({
|
|
@@ -7694,7 +7705,7 @@ function initDistortionNodeInsertBefore$LWS({
|
|
|
7694
7705
|
0: node$LWS
|
|
7695
7706
|
} = args$LWS;
|
|
7696
7707
|
// istanbul ignore else: needs default platform behavior test
|
|
7697
|
-
if (isSharedElement$
|
|
7708
|
+
if (isSharedElement$c$LWS(this) && !isAllowedSharedElementChild$1$LWS(node$LWS)) {
|
|
7698
7709
|
throw new LockerSecurityError$LWS(`Cannot insert child ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, node$LWS, [])} into ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])},`);
|
|
7699
7710
|
}
|
|
7700
7711
|
}
|
|
@@ -7739,7 +7750,7 @@ function initDistortionNodeValueSetter$LWS({
|
|
|
7739
7750
|
};
|
|
7740
7751
|
}
|
|
7741
7752
|
const {
|
|
7742
|
-
isSharedElement: isSharedElement$
|
|
7753
|
+
isSharedElement: isSharedElement$b$LWS
|
|
7743
7754
|
} = rootValidator$LWS;
|
|
7744
7755
|
function initDistortionNodeRemoveChild$LWS({
|
|
7745
7756
|
globalObject: {
|
|
@@ -7760,7 +7771,7 @@ function initDistortionNodeRemoveChild$LWS({
|
|
|
7760
7771
|
0: child$LWS
|
|
7761
7772
|
} = args$LWS;
|
|
7762
7773
|
// istanbul ignore else: needs default platform behavior test
|
|
7763
|
-
if (isSharedElement$
|
|
7774
|
+
if (isSharedElement$b$LWS(child$LWS)) {
|
|
7764
7775
|
throw new LockerSecurityError$LWS(`Cannot remove ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, child$LWS, [])}.`);
|
|
7765
7776
|
}
|
|
7766
7777
|
}
|
|
@@ -7772,7 +7783,7 @@ function initDistortionNodeRemoveChild$LWS({
|
|
|
7772
7783
|
};
|
|
7773
7784
|
}
|
|
7774
7785
|
const {
|
|
7775
|
-
isSharedElement: isSharedElement$
|
|
7786
|
+
isSharedElement: isSharedElement$a$LWS
|
|
7776
7787
|
} = rootValidator$LWS;
|
|
7777
7788
|
function initDistortionNodeReplaceChild$LWS({
|
|
7778
7789
|
globalObject: {
|
|
@@ -7796,7 +7807,7 @@ function initDistortionNodeReplaceChild$LWS({
|
|
|
7796
7807
|
1: child$LWS
|
|
7797
7808
|
} = args$LWS;
|
|
7798
7809
|
// istanbul ignore else: needs default platform behavior test
|
|
7799
|
-
if (isSharedElement$
|
|
7810
|
+
if (isSharedElement$a$LWS(child$LWS)) {
|
|
7800
7811
|
throw new LockerSecurityError$LWS(`Cannot replace ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, child$LWS, [])}.`);
|
|
7801
7812
|
}
|
|
7802
7813
|
}
|
|
@@ -7835,7 +7846,7 @@ function initDistortionNodeTextContentGetter$LWS({
|
|
|
7835
7846
|
// magenta global object, which would erroneously prevent code from interacting
|
|
7836
7847
|
// with that document's <html>, <head> and <body>.
|
|
7837
7848
|
const {
|
|
7838
|
-
isSharedElement: isSharedElement$
|
|
7849
|
+
isSharedElement: isSharedElement$9$LWS
|
|
7839
7850
|
} = rootValidator$LWS;
|
|
7840
7851
|
function initDistortionNodeTextContentSetter$LWS({
|
|
7841
7852
|
globalObject: {
|
|
@@ -7890,7 +7901,7 @@ function initDistortionNodeTextContentSetter$LWS({
|
|
|
7890
7901
|
}
|
|
7891
7902
|
}
|
|
7892
7903
|
// istanbul ignore else: needs default platform behavior test
|
|
7893
|
-
else if (isSharedElement$
|
|
7904
|
+
else if (isSharedElement$9$LWS(this)) {
|
|
7894
7905
|
throw new LockerSecurityError$LWS(`Cannot set textContent of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, this, [])} elements.`);
|
|
7895
7906
|
}
|
|
7896
7907
|
ReflectApply$LWS$1(originalTextContentSetter$LWS, this, [valueAsString$LWS]);
|
|
@@ -7936,6 +7947,88 @@ function initDistortionNotificationCtor$LWS({
|
|
|
7936
7947
|
return distortionEntry$LWS;
|
|
7937
7948
|
};
|
|
7938
7949
|
}
|
|
7950
|
+
function initDistortionPerformanceMark$LWS({
|
|
7951
|
+
globalObject: {
|
|
7952
|
+
Performance: {
|
|
7953
|
+
prototype: {
|
|
7954
|
+
mark: originalMark$LWS
|
|
7955
|
+
}
|
|
7956
|
+
}
|
|
7957
|
+
}
|
|
7958
|
+
}) {
|
|
7959
|
+
const distortionEntry$LWS = [originalMark$LWS, function mark$LWS(...args$LWS) {
|
|
7960
|
+
try {
|
|
7961
|
+
return ReflectApply$LWS$1(originalMark$LWS, this, args$LWS);
|
|
7962
|
+
} catch (error) {
|
|
7963
|
+
if (args$LWS.length > 1 && error instanceof DOMException) {
|
|
7964
|
+
const providedOptions$LWS = args$LWS[1];
|
|
7965
|
+
if (isObject$LWS$1(providedOptions$LWS)) {
|
|
7966
|
+
args$LWS[1] = partialStructuredClone$LWS(providedOptions$LWS);
|
|
7967
|
+
return ReflectApply$LWS$1(originalMark$LWS, this, args$LWS);
|
|
7968
|
+
}
|
|
7969
|
+
}
|
|
7970
|
+
throw error;
|
|
7971
|
+
}
|
|
7972
|
+
}];
|
|
7973
|
+
return function distortionPerformanceMark$LWS() {
|
|
7974
|
+
return distortionEntry$LWS;
|
|
7975
|
+
};
|
|
7976
|
+
}
|
|
7977
|
+
function initDistortionPerformanceMeasure$LWS({
|
|
7978
|
+
globalObject: {
|
|
7979
|
+
Performance: {
|
|
7980
|
+
prototype: {
|
|
7981
|
+
measure: originalMeasure$LWS
|
|
7982
|
+
}
|
|
7983
|
+
}
|
|
7984
|
+
}
|
|
7985
|
+
}) {
|
|
7986
|
+
const distortionEntry$LWS = [originalMeasure$LWS, function measure$LWS(...args$LWS) {
|
|
7987
|
+
try {
|
|
7988
|
+
return ReflectApply$LWS$1(originalMeasure$LWS, this, args$LWS);
|
|
7989
|
+
} catch (error) {
|
|
7990
|
+
if (args$LWS.length > 1 && error instanceof DOMException) {
|
|
7991
|
+
const providedOptions$LWS = args$LWS[1];
|
|
7992
|
+
if (isObject$LWS$1(providedOptions$LWS)) {
|
|
7993
|
+
args$LWS[1] = partialStructuredClone$LWS(providedOptions$LWS);
|
|
7994
|
+
return ReflectApply$LWS$1(originalMeasure$LWS, this, args$LWS);
|
|
7995
|
+
}
|
|
7996
|
+
}
|
|
7997
|
+
throw error;
|
|
7998
|
+
}
|
|
7999
|
+
}];
|
|
8000
|
+
return function distortionPerformanceMark$LWS() {
|
|
8001
|
+
return distortionEntry$LWS;
|
|
8002
|
+
};
|
|
8003
|
+
}
|
|
8004
|
+
function initDistortionPerformanceMarkCtor$LWS({
|
|
8005
|
+
globalObject: {
|
|
8006
|
+
DOMException: DOMException$LWS,
|
|
8007
|
+
PerformanceMark: originalPerformanceMarkCtor$LWS
|
|
8008
|
+
}
|
|
8009
|
+
}) {
|
|
8010
|
+
// istanbul ignore if: needs default platform behavior test
|
|
8011
|
+
if (typeof originalPerformanceMarkCtor$LWS !== 'function') {
|
|
8012
|
+
return noop$LWS$1;
|
|
8013
|
+
}
|
|
8014
|
+
const distortionEntry$LWS = [originalPerformanceMarkCtor$LWS, function PerformanceMark$LWS(...args$LWS) {
|
|
8015
|
+
try {
|
|
8016
|
+
return ReflectConstruct$LWS(originalPerformanceMarkCtor$LWS, args$LWS);
|
|
8017
|
+
} catch (error) {
|
|
8018
|
+
if (args$LWS.length > 1 && error instanceof DOMException$LWS) {
|
|
8019
|
+
const providedOptions$LWS = args$LWS[1];
|
|
8020
|
+
if (isObject$LWS$1(providedOptions$LWS)) {
|
|
8021
|
+
args$LWS[1] = partialStructuredClone$LWS(providedOptions$LWS);
|
|
8022
|
+
return ReflectConstruct$LWS(originalPerformanceMarkCtor$LWS, args$LWS);
|
|
8023
|
+
}
|
|
8024
|
+
}
|
|
8025
|
+
throw error;
|
|
8026
|
+
}
|
|
8027
|
+
}];
|
|
8028
|
+
return function distortionPerformanceMarkCtor$LWS() {
|
|
8029
|
+
return distortionEntry$LWS;
|
|
8030
|
+
};
|
|
8031
|
+
}
|
|
7939
8032
|
function initDistortionRangeCreateContextualFragment$LWS({
|
|
7940
8033
|
document: document$LWS,
|
|
7941
8034
|
globalObject: {
|
|
@@ -7968,7 +8061,7 @@ function initDistortionRangeCreateContextualFragment$LWS({
|
|
|
7968
8061
|
};
|
|
7969
8062
|
}
|
|
7970
8063
|
const {
|
|
7971
|
-
isSharedElement: isSharedElement$
|
|
8064
|
+
isSharedElement: isSharedElement$8$LWS
|
|
7972
8065
|
} = rootValidator$LWS;
|
|
7973
8066
|
function initDistortionRangeDeleteContents$LWS({
|
|
7974
8067
|
globalObject: {
|
|
@@ -7997,7 +8090,7 @@ function initDistortionRangeDeleteContents$LWS({
|
|
|
7997
8090
|
length: length$LWS
|
|
7998
8091
|
} = containers$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
7999
8092
|
const container$LWS = containers$LWS[i$LWS];
|
|
8000
|
-
if (isSharedElement$
|
|
8093
|
+
if (isSharedElement$8$LWS(container$LWS)) {
|
|
8001
8094
|
throw new LockerSecurityError$LWS(`Cannot delete contents of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, container$LWS, [])}.`);
|
|
8002
8095
|
}
|
|
8003
8096
|
}
|
|
@@ -8008,7 +8101,7 @@ function initDistortionRangeDeleteContents$LWS({
|
|
|
8008
8101
|
};
|
|
8009
8102
|
}
|
|
8010
8103
|
const {
|
|
8011
|
-
isSharedElement: isSharedElement$
|
|
8104
|
+
isSharedElement: isSharedElement$7$LWS
|
|
8012
8105
|
} = rootValidator$LWS;
|
|
8013
8106
|
function initDistortionRangeExtractContents$LWS({
|
|
8014
8107
|
globalObject: {
|
|
@@ -8037,7 +8130,7 @@ function initDistortionRangeExtractContents$LWS({
|
|
|
8037
8130
|
length: length$LWS
|
|
8038
8131
|
} = containers$LWS; i$LWS < length$LWS; i$LWS += 1) {
|
|
8039
8132
|
const container$LWS = containers$LWS[i$LWS];
|
|
8040
|
-
if (isSharedElement$
|
|
8133
|
+
if (isSharedElement$7$LWS(container$LWS)) {
|
|
8041
8134
|
throw new LockerSecurityError$LWS(`Cannot extract contents of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, container$LWS, [])}.`);
|
|
8042
8135
|
}
|
|
8043
8136
|
}
|
|
@@ -8048,7 +8141,7 @@ function initDistortionRangeExtractContents$LWS({
|
|
|
8048
8141
|
};
|
|
8049
8142
|
}
|
|
8050
8143
|
const {
|
|
8051
|
-
isSharedElement: isSharedElement$
|
|
8144
|
+
isSharedElement: isSharedElement$6$LWS,
|
|
8052
8145
|
isAllowedSharedElementChild: isAllowedSharedElementChild$LWS
|
|
8053
8146
|
} = rootValidator$LWS;
|
|
8054
8147
|
function initDistortionRangeInsertNode$LWS({
|
|
@@ -8068,7 +8161,7 @@ function initDistortionRangeInsertNode$LWS({
|
|
|
8068
8161
|
// istanbul ignore else: needs default platform behavior test
|
|
8069
8162
|
if (args$LWS.length) {
|
|
8070
8163
|
const commonAncestorContainer$LWS = ReflectApply$LWS$1(originalCommonAncestorContainerGetter$LWS, this, []);
|
|
8071
|
-
if (commonAncestorContainer$LWS && isSharedElement$
|
|
8164
|
+
if (commonAncestorContainer$LWS && isSharedElement$6$LWS(commonAncestorContainer$LWS) && !isAllowedSharedElementChild$LWS(args$LWS[0])) {
|
|
8072
8165
|
throw new LockerSecurityError$LWS(`Cannot insert a new child node of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, commonAncestorContainer$LWS, [])}.`);
|
|
8073
8166
|
}
|
|
8074
8167
|
}
|
|
@@ -8079,7 +8172,7 @@ function initDistortionRangeInsertNode$LWS({
|
|
|
8079
8172
|
};
|
|
8080
8173
|
}
|
|
8081
8174
|
const {
|
|
8082
|
-
isSharedElement: isSharedElement$LWS
|
|
8175
|
+
isSharedElement: isSharedElement$5$LWS
|
|
8083
8176
|
} = rootValidator$LWS;
|
|
8084
8177
|
function createRangeProtoMethodDistortionFactoryInitializer$LWS(methodName$LWS) {
|
|
8085
8178
|
return function initDistortionContentWindowGetter$LWS({
|
|
@@ -8104,7 +8197,7 @@ function createRangeProtoMethodDistortionFactoryInitializer$LWS(methodName$LWS)
|
|
|
8104
8197
|
0: node$LWS
|
|
8105
8198
|
} = args$LWS;
|
|
8106
8199
|
// istanbul ignore else: needs default platform behavior test
|
|
8107
|
-
if (isSharedElement$LWS(node$LWS)) {
|
|
8200
|
+
if (isSharedElement$5$LWS(node$LWS)) {
|
|
8108
8201
|
throw new LockerSecurityError$LWS(`Cannot call ${methodName$LWS} with ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, node$LWS, [])}.`);
|
|
8109
8202
|
}
|
|
8110
8203
|
}
|
|
@@ -8126,6 +8219,149 @@ const initDistortionRangeSetStart$LWS = createRangeProtoMethodDistortionFactoryI
|
|
|
8126
8219
|
const initDistortionRangeSetStartAfter$LWS = createRangeProtoMethodDistortionFactoryInitializer$LWS('setStartAfter');
|
|
8127
8220
|
const initDistortionRangeSetStartBefore$LWS = createRangeProtoMethodDistortionFactoryInitializer$LWS('setStartBefore');
|
|
8128
8221
|
const initDistortionRangeSurroundContents$LWS = createRangeProtoMethodDistortionFactoryInitializer$LWS('surroundContents');
|
|
8222
|
+
const {
|
|
8223
|
+
isSharedElement: isSharedElement$4$LWS
|
|
8224
|
+
} = rootValidator$LWS;
|
|
8225
|
+
function initDistortionSelectionCollapse$LWS({
|
|
8226
|
+
globalObject: {
|
|
8227
|
+
Selection: {
|
|
8228
|
+
prototype: {
|
|
8229
|
+
collapse: originalSelectionCollapse$LWS
|
|
8230
|
+
}
|
|
8231
|
+
}
|
|
8232
|
+
}
|
|
8233
|
+
}) {
|
|
8234
|
+
const distortionEntry$LWS = [originalSelectionCollapse$LWS, function collapse$LWS(...args$LWS) {
|
|
8235
|
+
if (args$LWS.length) {
|
|
8236
|
+
const {
|
|
8237
|
+
0: node$LWS
|
|
8238
|
+
} = args$LWS;
|
|
8239
|
+
// The first arg to Selection.prototype.collapse is "Node | null"
|
|
8240
|
+
if (node$LWS && isSharedElement$4$LWS(node$LWS)) {
|
|
8241
|
+
throw new LockerSecurityError$LWS(`Cannot collapse selection to ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, node$LWS, [])}`);
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8244
|
+
return ReflectApply$LWS$1(originalSelectionCollapse$LWS, this, args$LWS);
|
|
8245
|
+
}];
|
|
8246
|
+
return function distortionSelectionCollapse$LWS() {
|
|
8247
|
+
return distortionEntry$LWS;
|
|
8248
|
+
};
|
|
8249
|
+
}
|
|
8250
|
+
const {
|
|
8251
|
+
isSharedElement: isSharedElement$3$LWS
|
|
8252
|
+
} = rootValidator$LWS;
|
|
8253
|
+
function initDistortionSelectionExtend$LWS({
|
|
8254
|
+
globalObject: {
|
|
8255
|
+
Selection: {
|
|
8256
|
+
prototype: {
|
|
8257
|
+
extend: originalSelectionExtend$LWS
|
|
8258
|
+
}
|
|
8259
|
+
}
|
|
8260
|
+
}
|
|
8261
|
+
}) {
|
|
8262
|
+
const distortionEntry$LWS = [originalSelectionExtend$LWS, function extend$LWS(...args$LWS) {
|
|
8263
|
+
if (args$LWS.length) {
|
|
8264
|
+
const {
|
|
8265
|
+
0: node$LWS
|
|
8266
|
+
} = args$LWS;
|
|
8267
|
+
if (isSharedElement$3$LWS(node$LWS)) {
|
|
8268
|
+
throw new LockerSecurityError$LWS(`Cannot extend selection to ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, node$LWS, [])}`);
|
|
8269
|
+
}
|
|
8270
|
+
}
|
|
8271
|
+
return ReflectApply$LWS$1(originalSelectionExtend$LWS, this, args$LWS);
|
|
8272
|
+
}];
|
|
8273
|
+
return function distortionSelectionExtend$LWS() {
|
|
8274
|
+
return distortionEntry$LWS;
|
|
8275
|
+
};
|
|
8276
|
+
}
|
|
8277
|
+
const {
|
|
8278
|
+
isSharedElement: isSharedElement$2$LWS
|
|
8279
|
+
} = rootValidator$LWS;
|
|
8280
|
+
function initDistortionSelectionSelectAllChildren$LWS({
|
|
8281
|
+
globalObject: {
|
|
8282
|
+
Selection: {
|
|
8283
|
+
prototype: {
|
|
8284
|
+
selectAllChildren: originalSelectionSelectAllChildren$LWS
|
|
8285
|
+
}
|
|
8286
|
+
}
|
|
8287
|
+
}
|
|
8288
|
+
}) {
|
|
8289
|
+
const distortionEntry$LWS = [originalSelectionSelectAllChildren$LWS, function selectAllChildren$LWS(...args$LWS) {
|
|
8290
|
+
if (args$LWS.length) {
|
|
8291
|
+
const {
|
|
8292
|
+
0: node$LWS
|
|
8293
|
+
} = args$LWS;
|
|
8294
|
+
if (isSharedElement$2$LWS(node$LWS)) {
|
|
8295
|
+
throw new LockerSecurityError$LWS(`Cannot select all children of ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, node$LWS, [])}`);
|
|
8296
|
+
}
|
|
8297
|
+
}
|
|
8298
|
+
return ReflectApply$LWS$1(originalSelectionSelectAllChildren$LWS, this, args$LWS);
|
|
8299
|
+
}];
|
|
8300
|
+
return function distortionSelectionSelectAllChildren$LWS() {
|
|
8301
|
+
return distortionEntry$LWS;
|
|
8302
|
+
};
|
|
8303
|
+
}
|
|
8304
|
+
const {
|
|
8305
|
+
isSharedElement: isSharedElement$1$LWS
|
|
8306
|
+
} = rootValidator$LWS;
|
|
8307
|
+
function initDistortionSelectionSetBaseAndExtent$LWS({
|
|
8308
|
+
globalObject: {
|
|
8309
|
+
Selection: {
|
|
8310
|
+
prototype: {
|
|
8311
|
+
setBaseAndExtent: originalSelectionSetBaseAndExtent$LWS
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
}
|
|
8315
|
+
}) {
|
|
8316
|
+
const distortionEntry$LWS = [originalSelectionSetBaseAndExtent$LWS, function setBaseAndExtent$LWS(...args$LWS) {
|
|
8317
|
+
// All 4 arguments are required, if any are missing then defer to
|
|
8318
|
+
// the platform for error handling.
|
|
8319
|
+
if (args$LWS.length === 4) {
|
|
8320
|
+
const {
|
|
8321
|
+
0: anchorNode$LWS,
|
|
8322
|
+
2: focusNode$LWS
|
|
8323
|
+
} = args$LWS;
|
|
8324
|
+
const anchorNodeIsShared$LWS = isSharedElement$1$LWS(anchorNode$LWS);
|
|
8325
|
+
const focusNodeIsShared$LWS = isSharedElement$1$LWS(focusNode$LWS);
|
|
8326
|
+
if (anchorNodeIsShared$LWS || focusNodeIsShared$LWS) {
|
|
8327
|
+
const subject$LWS = anchorNodeIsShared$LWS ? anchorNode$LWS : focusNode$LWS;
|
|
8328
|
+
throw new LockerSecurityError$LWS(`Cannot set selection with ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, subject$LWS, [])}`);
|
|
8329
|
+
}
|
|
8330
|
+
}
|
|
8331
|
+
return ReflectApply$LWS$1(originalSelectionSetBaseAndExtent$LWS, this, args$LWS);
|
|
8332
|
+
}];
|
|
8333
|
+
return function distortionSelectionSetBaseAndExtent$LWS() {
|
|
8334
|
+
return distortionEntry$LWS;
|
|
8335
|
+
};
|
|
8336
|
+
}
|
|
8337
|
+
const {
|
|
8338
|
+
isSharedElement: isSharedElement$LWS
|
|
8339
|
+
} = rootValidator$LWS;
|
|
8340
|
+
function initDistortionSelectionSetPosition$LWS({
|
|
8341
|
+
globalObject: {
|
|
8342
|
+
Selection: {
|
|
8343
|
+
prototype: {
|
|
8344
|
+
setPosition: originalSelectionSetPosition$LWS
|
|
8345
|
+
}
|
|
8346
|
+
}
|
|
8347
|
+
}
|
|
8348
|
+
}) {
|
|
8349
|
+
const distortionEntry$LWS = [originalSelectionSetPosition$LWS, function setPosition$LWS(...args$LWS) {
|
|
8350
|
+
if (args$LWS.length) {
|
|
8351
|
+
const {
|
|
8352
|
+
0: node$LWS
|
|
8353
|
+
} = args$LWS;
|
|
8354
|
+
// The first arg to Selection.prototype.setPosition is "Node | null"
|
|
8355
|
+
if (node$LWS && isSharedElement$LWS(node$LWS)) {
|
|
8356
|
+
throw new LockerSecurityError$LWS(`Cannot set position with ${ReflectApply$LWS$1(NodeProtoNodeNameGetter$LWS, node$LWS, [])}`);
|
|
8357
|
+
}
|
|
8358
|
+
}
|
|
8359
|
+
return ReflectApply$LWS$1(originalSelectionSetPosition$LWS, this, args$LWS);
|
|
8360
|
+
}];
|
|
8361
|
+
return function distortionSelectionSetPosition$LWS() {
|
|
8362
|
+
return distortionEntry$LWS;
|
|
8363
|
+
};
|
|
8364
|
+
}
|
|
8129
8365
|
function initDistortionServiceWorkerContainerProto$LWS({
|
|
8130
8366
|
globalObject: {
|
|
8131
8367
|
ServiceWorkerContainer: ServiceWorkerContainer$LWS
|
|
@@ -9218,6 +9454,19 @@ function initDistortionWindowOpen$LWS({
|
|
|
9218
9454
|
const distortionEntry$LWS = [originalWindowOpen$LWS, function open$LWS(...args$LWS) {
|
|
9219
9455
|
const normalizedArgs$LWS = normalizeWindowOpenArguments$LWS(args$LWS);
|
|
9220
9456
|
const childWindow$LWS = ReflectApply$LWS$1(originalWindowOpen$LWS, this, normalizedArgs$LWS);
|
|
9457
|
+
// W-14218118
|
|
9458
|
+
// If the target is '_self', '_parent', or '_top', only makes one request
|
|
9459
|
+
if (normalizedArgs$LWS.length > 1) {
|
|
9460
|
+
const {
|
|
9461
|
+
1: target$LWS
|
|
9462
|
+
} = normalizedArgs$LWS;
|
|
9463
|
+
const willOpenInSameBrowsingContext$LWS = target$LWS === '_self' || target$LWS === '_parent' || target$LWS === '_top';
|
|
9464
|
+
if (willOpenInSameBrowsingContext$LWS) {
|
|
9465
|
+
return childWindow$LWS;
|
|
9466
|
+
}
|
|
9467
|
+
}
|
|
9468
|
+
// W-13552831
|
|
9469
|
+
// If the target is anything else, two requests are made
|
|
9221
9470
|
if (childWindow$LWS && normalizedArgs$LWS.length) {
|
|
9222
9471
|
initWindowOpenChildWindow$LWS(childWindow$LWS, normalizedArgs$LWS[0]);
|
|
9223
9472
|
}
|
|
@@ -9520,10 +9769,16 @@ initDistortionMessagePortPostMessage$LWS,
|
|
|
9520
9769
|
initDistortionNavigatorSendBeacon$LWS, initDistortionNavigatorServiceWorkerGetter$LWS,
|
|
9521
9770
|
// Node
|
|
9522
9771
|
initDistortionNodeRemoveChild$LWS, initDistortionNodeReplaceChild$LWS,
|
|
9772
|
+
// Performance
|
|
9773
|
+
initDistortionPerformanceMark$LWS, initDistortionPerformanceMeasure$LWS,
|
|
9774
|
+
// PerformanceMark
|
|
9775
|
+
initDistortionPerformanceMarkCtor$LWS,
|
|
9523
9776
|
// Notification
|
|
9524
9777
|
initDistortionNotificationCtor$LWS,
|
|
9525
9778
|
// Range
|
|
9526
9779
|
initDistortionRangeDeleteContents$LWS, initDistortionRangeExtractContents$LWS, initDistortionRangeInsertNode$LWS, initDistortionRangeSelectNode$LWS, initDistortionRangeSelectNodeContents$LWS, initDistortionRangeSetEnd$LWS, initDistortionRangeSetEndAfter$LWS, initDistortionRangeSetEndBefore$LWS, initDistortionRangeSetStart$LWS, initDistortionRangeSetStartAfter$LWS, initDistortionRangeSetStartBefore$LWS, initDistortionRangeSurroundContents$LWS,
|
|
9780
|
+
// Selection
|
|
9781
|
+
initDistortionSelectionCollapse$LWS, initDistortionSelectionExtend$LWS, initDistortionSelectionSelectAllChildren$LWS, initDistortionSelectionSetBaseAndExtent$LWS, initDistortionSelectionSetPosition$LWS,
|
|
9527
9782
|
// ServiceWorkerContainer
|
|
9528
9783
|
initDistortionServiceWorkerContainerProto$LWS,
|
|
9529
9784
|
// ShadowRoot
|
|
@@ -9618,8 +9873,8 @@ const HTMLElementBlockedProperties$LWS = ['nonce', 'onrejectionhandled', 'onunha
|
|
|
9618
9873
|
const HTMLEmbedElementBlockedProperties$LWS = ['getSVGDocument'];
|
|
9619
9874
|
|
|
9620
9875
|
// https://www.w3schools.com/tags/tag_iframe.asp
|
|
9621
|
-
const HTMLIFrameElementBlockedAttributes$LWS = ['
|
|
9622
|
-
const HTMLIFrameElementBlockedProperties$LWS = ['
|
|
9876
|
+
const HTMLIFrameElementBlockedAttributes$LWS = ['srcdoc'];
|
|
9877
|
+
const HTMLIFrameElementBlockedProperties$LWS = ['getSVGDocument', 'srcdoc'];
|
|
9623
9878
|
const HTMLObjectElementBlockedProperties$LWS = ['getSVGDocument'];
|
|
9624
9879
|
const HTMLScriptElementBlockedAttributes$LWS = ['nonce'];
|
|
9625
9880
|
const HTMLScriptElementBlockedProperties$LWS = ['nonce'];
|
|
@@ -9628,7 +9883,7 @@ const SVGElementBlockedProperties$LWS = ['nonce'];
|
|
|
9628
9883
|
const UIEventBlockedProperties$LWS = ['rangeParent'];
|
|
9629
9884
|
const WindowBlockedProperties$LWS = ['find'];
|
|
9630
9885
|
const XSLTProcessorBlockedProperties$LWS = ['transformToDocument', 'transformToFragment'];
|
|
9631
|
-
/*! version: 0.20.
|
|
9886
|
+
/*! version: 0.20.5 */
|
|
9632
9887
|
|
|
9633
9888
|
/*!
|
|
9634
9889
|
* Copyright (C) 2019 salesforce.com, inc.
|
|
@@ -15480,7 +15735,7 @@ function wrapPlatformResourceLoader$LWS(dep$LWS, key$LWS) {
|
|
|
15480
15735
|
depRegistry$LWS.set(dep$LWS, secureDep$LWS);
|
|
15481
15736
|
return secureDep$LWS;
|
|
15482
15737
|
}
|
|
15483
|
-
/*! version: 0.20.
|
|
15738
|
+
/*! version: 0.20.5 */
|
|
15484
15739
|
|
|
15485
15740
|
const loaderDefine = globalThis.LWR.define;
|
|
15486
15741
|
|