Lines Matching refs:aHandler

246    * @param {nsIHandlerInfo} aHandler - Info about protocol and handlers.
254 aHandler,
261 aHandler.type,
272 aHandler.preferredAction == Ci.nsIHandlerInfo.useHelperApp &&
273 aHandler.preferredApplicationHandler instanceof Ci.nsIWebHandlerApp
276 aHandler.alwaysAskBeforeHandling = true;
283 !aHandler.alwaysAskBeforeHandling &&
284 (aHandler.preferredAction == Ci.nsIHandlerInfo.useHelperApp ||
285 aHandler.preferredAction == Ci.nsIHandlerInfo.useSystemDefault)
288 aHandler.launchWithURI(aURI, aBrowsingContext);
294 aHandler.alwaysAskBeforeHandling = true;
304 aHandler.type,
315 aHandler,
330 aHandler.launchWithURI(aURI, aBrowsingContext);
335 * @param {nsIHandlerInfo} aHandler - Info about protocol and handlers.
339 _getHandlerName(aHandler) {
340 if (aHandler.alwaysAskBeforeHandling) {
344 aHandler.preferredAction == Ci.nsIHandlerInfo.useSystemDefault &&
345 aHandler.hasDefaultHandler
347 return aHandler.defaultDescription;
349 return aHandler.preferredApplicationHandler?.name;
354 * @param {nsIHandlerInfo} aHandler - Info about protocol and handlers.
361 async _prompt(aHandler, aPrincipal, aHasPermission, aBrowsingContext) {
383 handler: aHandler,
388 preferredHandlerName: this._getHandlerName(aHandler),
403 this._updatePermission(aPrincipal, aHandler.type, remember);
410 if (aHandler.alwaysAskBeforeHandling || resetHandlerChoice) {
417 outArgs.setProperty("preferredAction", aHandler.preferredAction);
420 aHandler.preferredApplicationHandler
424 aHandler.alwaysAskBeforeHandling
430 handler: aHandler,
447 aHandler[prop] = outArgs.getProperty(prop);
453 .store(aHandler);