[tor-bugs] #27537 [Applications/Tor Browser]: ExtensionContent.jsm, line 489: TypeError: Argument 1 of PrecompiledScript.executeInGlobal is not an object.

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Sep 7 11:28:46 UTC 2018


#27537: ExtensionContent.jsm, line 489: TypeError: Argument 1 of
PrecompiledScript.executeInGlobal is not an object.
------------------------------------------+----------------------
     Reporter:  traumschule               |      Owner:  tbb-team
         Type:  defect                    |     Status:  new
     Priority:  Medium                    |  Milestone:
    Component:  Applications/Tor Browser  |    Version:
     Severity:  Normal                    |   Keywords:
Actual Points:                            |  Parent ID:
       Points:                            |   Reviewer:
      Sponsor:                            |
------------------------------------------+----------------------
 (TB 8.5.a1 debian buster 32bit)

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

 {{{
 JavaScript error: resource://gre/modules/ExtensionContent.jsm, line 489:
 TypeError: Argument 1 of PrecompiledScript.executeInGlobal is not an
 object.
 }}}

 = code

 {{{
   /**
    * Tries to inject this script into the given window and sandbox, if
    * there are pending operations for the window's current load state.
    *
    * @param {BaseContext} context
    *        The content script context into which to inject the scripts.
    * @returns {Promise<any>}
    *        Resolves to the last value in the evaluated script, when
    *        execution is complete.
    */

 ...

     // The evaluations below may throw, in which case the promise will be
     // automatically rejected.
     TelemetryStopwatch.start(CONTENT_SCRIPT_INJECTION_HISTOGRAM, context);
     try {
       for (let script of scripts) {
         result = script.executeInGlobal(context.cloneScope);
       }

       if (this.matcher.jsCode) {
         result = Cu.evalInSandbox(this.matcher.jsCode, context.cloneScope,
 "latest");
       }
     } finally {
       TelemetryStopwatch.finish(CONTENT_SCRIPT_INJECTION_HISTOGRAM,
 context);
     }
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27537>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list