Skip to content

Remove polyfill.io #54

@danielmarschall

Description

@danielmarschall

There seems to be a supply chain attach which affects OIDplus.

polyfill.io seems to server malware: https://www.borncity.com/blog/2024/06/28/polyfill-lieferkettenangriff-gefhrdet-100-000-webseiten/

(And this is one reason why I hate dependencies so much!)

TODO:

  1. We must remove polyfill.io from our source.
  2. We must check: How big will the impact be? Are some important methods missing from Edge, Chrome, Firefox, Opera? (Note: Internet Explorer is not supported by OIDplus anymore). In case there is an important function/framework missing, then we must implement it ourselves without relying on polyfill.io

We are using the following polyfills at the moment:

const REQUIRED_POLYFILLS = array(
	// For various AJAX calls
	'fetch',
	'URL',

	// For OIDplusPagePublicWhois.js, OIDplusPageAdminSoftwareUpdate.js, and OIDplusPageAdminColors.js
	'String.prototype.includes',

	// For TinyMCE if it is included inside oidplus.min.js.php ( https://github.com/tinymce/tinymce/blob/5c1702a119e683f93e03ecc2231f11d17ce57395/modules/tinymce/src/core/main/ts/api/EditorManager.ts#L271 )
	'document.currentScript'
);

@wehowski Can you please test if these 4 things exist in

  • Chrome
  • Firefox
  • Edge
  • Opera

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions