KangoExtensions / kango

Kango framework issue tracker
74 stars 7 forks source link

Version 1.3.3, kango.browser.getCookies, cannot call method 'getAll' of undefined #80

Closed smartvault-abbott closed 10 years ago

smartvault-abbott commented 10 years ago

Cannot call method 'getAll' of undefined at Array. (chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/background/main.js:490:19) at Array. (chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/kango/message_target.js:3:124) at Object.kango.EventTarget.dispatchEvent (chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/kango/base.js:3:272) at Object.kango.EventTarget.fireEvent (chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/kango/base.js:3:502) at Object.kango.MessageRouterBase.fireMessageEvent (chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/kango/messaging.js:2:470) at Object.kango.MessageRouter.kango.oop.extend._onMessage (chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/kango/messaging.js:15:155) at Object. (chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/kango/messaging.js:14:262) at chrome-extension://bmfgbmkceiakohhomagcddagimapkpdo/kango/utils.js:7:216 at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14) at Event.dispatchToListener (extensions::event_bindings:386:22) extensions::eventbindings:375 Event.dispatch extensions::event_bindings:375 Event.dispatch extensions::event_bindings:392 dispatchOnMessage extensions::messaging:29

akrylysov commented 10 years ago

Please use kango.browser.cookies.*

smartvault-abbott commented 10 years ago

Using kango.browser.cookies.getCookies yielded a very similar message. Is this not the correct name?

Cannot call method 'getAll' of undefined at Array. (chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/background/main.js:488:19) at Array. (chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/kango/message_target.js:3:124) at Object.kango.EventTarget.dispatchEvent (chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/kango/base.js:3:272) at Object.kango.EventTarget.fireEvent (chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/kango/base.js:3:502) at Object.kango.MessageRouterBase.fireMessageEvent (chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/kango/messaging.js:2:470) at Object.kango.MessageRouter.kango.oop.extend._onMessage (chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/kango/messaging.js:15:155) at Object. (chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/kango/messaging.js:14:262) at chrome-extension://bnpleppdaihamhdmhbcmidcjhbceljfb/kango/utils.js:7:216 at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14) at Event.dispatchToListener (extensions::event_bindings:386:22)

akrylysov commented 10 years ago

Please use kango.browser.cookies.getCookies, kango.browser.cookies.getCookie and kango.browser.cookies.setCookie.

smartvault-abbott commented 10 years ago

Hello Artem,

As I explained, those APIs gave the same result as the previous. I sent a demo plugin to Andrey that exercises the problem. Please review the plugin and let me know how to proceed.

John Abbott SmartVault Corporation

Artem Krylysov notifications@github.com wrote:

Please use kango.browser.cookies.getCookies, kango.browser.cookies.getCookie and kango.browser.cookies.setCookie.

— Reply to this email directly or view it on GitHubhttps://github.com/KangoExtensions/kango/issues/80#issuecomment-33873263.

akrylysov commented 10 years ago

Sorry for this issue, please add

"permissions": {
        "cookies": true
    }

to your extension_info.json.