De-IDLify JS access to blocklist service

RESOLVED FIXED in Firefox 61

Status

()

enhancement
RESOLVED FIXED
Last year
Last year

People

(Reporter: kmag, Assigned: kmag)

Tracking

unspecified
mozilla61
Points:
---
Dependency tree / graph
Bug Flags:
qe-verify -

Firefox Tracking Flags

(firefox61 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

Last year
There's no reason for the JS-only side of the blocklist service to go through XPConnect. It just slows things down and makes maintenance harder.
Comment hidden (mozreview-request)

Comment 2

Last year
mozreview-review
Comment on attachment 8969489 [details]
Bug 1455458: De-XPIDLify the blocklist service.

https://reviewboard.mozilla.org/r/238238/#review244132

::: toolkit/mozapps/extensions/nsBlocklistService.js:1505
(Diff revision 1)
>    QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver,
>                                           Ci.nsIBlocklistService,
>                                           Ci.nsITimerCallback]),
>  };
>  
> -/**
> +/*

Out of interest, why de-jsdoc this?

::: tools/lint/eslint/eslint-plugin-mozilla/lib/rules/use-services.js:49
(Diff revision 1)
> +        if (property.value.elements.length > 1) {
> -        interfaces[property.key.name] = property.value.elements[1].value;
> +          interfaces[property.key.name] = property.value.elements[1].value;
> -      }
> +        }
> +      }

Can you add nsIBlocklistService to the list at the top of this file, given that we now won't detect people trying to use it in JS?
Attachment #8969489 - Flags: review?(gijskruitbosch+bugs) → review+
Assignee

Comment 3

Last year
mozreview-review-reply
Comment on attachment 8969489 [details]
Bug 1455458: De-XPIDLify the blocklist service.

https://reviewboard.mozilla.org/r/238238/#review244132

> Out of interest, why de-jsdoc this?

It failed the valid-jsdoc rule because it doesn't document the parameters or return value. Ideally, those should be documented, but we don't really lose anything by making this a non-jsdoc comment, and we gain a lot by turning on the valid-jsdoc rule and fixing the rest of the docs, so *shrug*.

Comment 5

Last year
bugherder
https://hg.mozilla.org/mozilla-central/rev/6ef55ab924d4
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla61

Comment 6

Last year
Is manual testing required on this bug? If Yes, please provide some STR and the proper webextension(if required), if No set the “qe-verify-“ flag.
Flags: needinfo?(kmaglione+bmo)
Assignee

Updated

Last year
Flags: needinfo?(kmaglione+bmo) → qe-verify-
Depends on: 1458215
You need to log in before you can comment on or make changes to this bug.