issue508: Permission manager no longer works

Priority: bug Status: resolved
Messages
msg1312 (view) Author: madalu Date: 2016-05-21.14:05:48
- M-x permission-manager

Results in the following backtrace:

TypeError: host is undefined
chrome://conkeror/content/permission-manager.js:102
@chrome://conkeror/content/permission-manager.js:102:1
_co_impl__send@chrome://conkeror/content/coroutine.js:415:25
input_handle_command@chrome://conkeror/content/input.js:341:9
@chrome://conkeror/content/commands.js:162:13
timer_callback.prototype.notify@chrome://conkeror/content/timer.js:16:9

This occurs if there are any entries in the permissions.sqlite. 

My guess is that it is related to this controversial move (what decision of Mozilla's isn't controversial
or inexplicable these days?) to remove centralized control over permissions via the about:permissions page:

https://bugzilla.mozilla.org/show_bug.cgi?id=933917
msg1313 (view) Author: madalu Date: 2016-05-21.20:19:33
My mistake: this is not related to the removal of about:permissions, but to a new api for nsiPermission:

https://bugzilla.mozilla.org/show_bug.cgi?id=1173523

Unfortunately, as the thread above indicates the API changed in late 2015 but the documentation not yet
been updated:

https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIPermission
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIPermissionManager
msg1319 (view) Author: madalu Date: 2016-06-29.01:31:07
Resolved with patch updating permission-manager.js to use the new api.
History
Date User Action Args
2016-06-29 01:31:07madalusetstatus: chatting -> resolved
messages: + msg1319
2016-05-21 20:19:33madalusetstatus: unread -> chatting
messages: + msg1313
2016-05-21 14:05:49madalucreate