issue376: JavaScript Error: "get_caller_source_code_reference is not defined"

Priority: bug Status: resolved
Messages
msg948 (view) Author: retroj Date: 2011-11-04.17:18:09
1. with conkeror not running, start profile manager
 2. create a profile
 3. exit (without starting conkeror)

    $ xulrunner-6.0 ./application.ini -no-remote -ProfileManager
    Error initializing.
    NS_ERROR_XPC_GS_RETURNED_FAILURE: Component returned failure code: 0x80570016
(NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]
    null()@chrome://conkeror/content/services.js:22
    load1()@file:///mydoc/projects/conkeror/components/application.js:110
    null()@file:///mydoc/projects/conkeror/components/application.js:185
    null()@file:///mydoc/projects/conkeror/components/application.js:286
    null()@chrome://conkeror/content/conkeror.js:20
    load1()@file:///mydoc/projects/conkeror/components/application.js:110
    null()@file:///mydoc/projects/conkeror/components/application.js:185
    null()@file:///mydoc/projects/conkeror/components/application.js:286
    application()@file:///mydoc/projects/conkeror/components/application.js:43
    null()@resource://gre/modules/XPCOMUtils.jsm:256
    content_policy()@file:///mydoc/projects/conkeror/components/content-policy.js:15
    null()@file:///mydoc/projects/conkeror/components/content-policy.js:37
    null()@null:0
    Console error: [JavaScript Error: "get_caller_source_code_reference is not defined" {file:
"chrome://conkeror/content/hook.js" line: 119}]
      Category: XPConnect JavaScript
msg949 (view) Author: retroj Date: 2011-11-04.17:18:54
The content-policy component is getting loaded before the application
component, and somehow, when it calls add_hook, source-code.js still has
not been loaded.  Could asynchronous loading be responsible?
msg950 (view) Author: retroj Date: 2011-11-04.17:19:11
possible solution:

Don't auto-load the content-policy component, but have the content-policy
module load it.
msg951 (view) Author: retroj Date: 2011-11-06.18:00:56
Implemented solution described in msg950.
History
Date User Action Args
2011-11-06 18:00:56retrojsetstatus: chatting -> resolved
messages: + msg951
2011-11-04 17:19:11retrojsetmessages: + msg950
2011-11-04 17:18:54retrojsetstatus: unread -> chatting
messages: + msg949
2011-11-04 17:18:09retrojcreate