Refractoring Stage 6.24 Moved the HTML sanitizer and remote-image policy API into window.epMailFeatures.contentSecurity, removing the separate window.epMailMailContentSecurity global. Bumped to 0.4.36 (Android version code 436) and updated REFACTOR_PLAN.md.
This commit is contained in:
@@ -28,6 +28,16 @@ test('core app shell uses the namespaced renderer state', () => {
|
||||
assert.match(app, /window\.epMailShell = Object\.freeze/);
|
||||
assert.match(app, /const state = window\.epMailState/);
|
||||
assert.doesNotMatch(app, /^\s*(?:const|let|var)\s+(?:messages|contacts|activeMessage|activeFolder|activeView|query|toastTimer|selectedIds)\b/m);
|
||||
assert.match(app, /window\.epMailFeatures\.contentSecurity/);
|
||||
assert.doesNotMatch(app, /epMailMailContentSecurity/);
|
||||
});
|
||||
|
||||
test('mail content security API is registered in the shared feature namespace', () => {
|
||||
const window = {};
|
||||
vm.runInNewContext(read('mail-content-security.js'), { window });
|
||||
assert.equal(typeof window.epMailFeatures.contentSecurity.safeRemoteImageUrl, 'function');
|
||||
assert.equal(typeof window.epMailFeatures.contentSecurity.sanitizeMailHtml, 'function');
|
||||
assert.equal(Object.hasOwn(window, 'epMailMailContentSecurity'), false);
|
||||
});
|
||||
|
||||
test('desktop, Android web generation, and offline cache include renderer support modules', () => {
|
||||
|
||||
Reference in New Issue
Block a user