Extension Blocklisting:Code Design: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 66: Line 66:
* All versions of the <tt>item_4@domain</tt> Extension Manager item will be blocklisted if the current application version is between <tt>1.5</tt> and <tt>1.5.*</tt> (e.g. less than <tt>1.6</tt>).
* All versions of the <tt>item_4@domain</tt> Extension Manager item will be blocklisted if the current application version is between <tt>1.5</tt> and <tt>1.5.*</tt> (e.g. less than <tt>1.6</tt>).
* All versions of the <tt>item_5@domain</tt> Extension Manager item will be blocklisted for all versions of the current application.
* All versions of the <tt>item_5@domain</tt> Extension Manager item will be blocklisted for all versions of the current application.
* <tt>pluginItem</tt> is a blocklist entry for plugins, that do not have UUIDs that can be blocklisted.  Since they do not have unique identifiers, they must be blocklisted with regular expressions used to pinpoint combinations of <tt>name</tt>, <tt>description</tt>, and <tt>filename</tt>.  It makes the entry much simpler.
* <tt>pluginItem</tt> is a blocklist entry for plugins, that do not have UUIDs that can be blocklisted.  Since they do not have unique identifiers, they must be blocklisted with regular expressions used to pinpoint combinations of <tt>name</tt>, <tt>description</tt>, and <tt>filename</tt>.  It makes the entry much simpler but a greedy regexp could spell doom for totally valid plugins so be careful, careful, careful.  Keep in mind that plugin blocklisting is application-agnostic as well.


As can be seen it is possible to blocklist all version of an extension for all versions of an application as well as any combination of application id's along with version ranges for both the extension id and application id. Also, by not specifying a value and instead using the default value it is possible to lessen the size of the blocklist xml file. This is possible by using the following defaults:
As can be seen it is possible to blocklist all version of an extension for all versions of an application as well as any combination of application id's along with version ranges for both the extension id and application id. Also, by not specifying a value and instead using the default value it is possible to lessen the size of the blocklist xml file. This is possible by using the following defaults:
3,035

edits

Navigation menu