{"action":"created","issue":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/536","labels_url":"https://api.github.com/repos/gorhill/uBlock/issues/536/labels{/name}","comments_url":"https://api.github.com/repos/gorhill/uBlock/issues/536/comments","events_url":"https://api.github.com/repos/gorhill/uBlock/issues/536/events","html_url":"https://github.com/gorhill/uBlock/issues/536","id":54693368,"number":536,"title":"Move ` µBlock.transposeType()` to Chromium's platform-specific code","user":{"login":"gorhill","id":585534,"avatar_url":"https://avatars.githubusercontent.com/u/585534?v=3","gravatar_id":"","url":"https://api.github.com/users/gorhill","html_url":"https://github.com/gorhill","followers_url":"https://api.github.com/users/gorhill/followers","following_url":"https://api.github.com/users/gorhill/following{/other_user}","gists_url":"https://api.github.com/users/gorhill/gists{/gist_id}","starred_url":"https://api.github.com/users/gorhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorhill/subscriptions","organizations_url":"https://api.github.com/users/gorhill/orgs","repos_url":"https://api.github.com/users/gorhill/repos","events_url":"https://api.github.com/users/gorhill/events{/privacy}","received_events_url":"https://api.github.com/users/gorhill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-18T11:14:43Z","updated_at":"2015-01-18T12:57:02Z","closed_at":null,"body":"This code needs to be platform-specific. For examples, some platforms may be able to identify font objects and thus there is no need to try to guess fonts in the platform-independent code. Also, the workaround Chromium bug to transpose `image`, `stylesheet` or `other` should not be applied to other platform not suffering the bug."},"comment":{"url":"https://api.github.com/repos/gorhill/uBlock/issues/comments/70407339","html_url":"https://github.com/gorhill/uBlock/issues/536#issuecomment-70407339","issue_url":"https://api.github.com/repos/gorhill/uBlock/issues/536","id":70407339,"user":{"login":"gorhill","id":585534,"avatar_url":"https://avatars.githubusercontent.com/u/585534?v=3","gravatar_id":"","url":"https://api.github.com/users/gorhill","html_url":"https://github.com/gorhill","followers_url":"https://api.github.com/users/gorhill/followers","following_url":"https://api.github.com/users/gorhill/following{/other_user}","gists_url":"https://api.github.com/users/gorhill/gists{/gist_id}","starred_url":"https://api.github.com/users/gorhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorhill/subscriptions","organizations_url":"https://api.github.com/users/gorhill/orgs","repos_url":"https://api.github.com/users/gorhill/repos","events_url":"https://api.github.com/users/gorhill/events{/privacy}","received_events_url":"https://api.github.com/users/gorhill/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T12:57:02Z","updated_at":"2015-01-18T12:57:02Z","body":"Yes, it's possible but this will require careful revision of entry points to be sure that wherever a specific set of types is expected that it redirects the type to `other` if the type is outside the specific set. For later reference when the issue is fixed, changed needed:\r\n\r\n- https://github.com/gorhill/uBlock/blob/master/src/js/static-net-filtering.js#L59\r\n- ...\r\n\r\n[add more as we identify these places]"}}