[tor-bugs] #13053 [Quality Assurance and Testing]: Write regression tests for new NoScript options

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 19 10:16:48 UTC 2015


#13053: Write regression tests for new NoScript options
-------------------------------------+-------------------------------------
     Reporter:  mikeperry            |      Owner:  boklm
         Type:  task                 |     Status:  needs_information
     Priority:  normal               |  Milestone:
    Component:  Quality Assurance    |    Version:
  and Testing                        |   Keywords:  tbb-testcase,
   Resolution:                       |  tbb-4.5-alpha
Actual Points:                       |  Parent ID:  #9387
       Points:                       |
-------------------------------------+-------------------------------------

Comment (by gk):

 Replying to [comment:24 boklm]:
 > The error "f.getNode(...) is null" probably means that javascript was
 not executed in the page when it should have. I will update the error to
 make that more clear.
 >
 > Which version or Tor Browser and noscript did you use for your test ?

 4.5a3.

 > If I test a 4.5a4 bundle I get two errors about "http src in https page"
 and "http iframe in https page".

 I am on commit 7c9eb3c52b009de4625cacd7a4a832b56fc919c3. If I take a
 default en-US bundle and start the test with `./tbb-testsuite --enable-
 tests=noscript tor-browser-linux64-4.5a4_en-US.tar.xz` I get:
 {{{
 ERROR | Test Failure | {
   "fail": {
     "message": "https src in https page",
     "fileName": "file:///path/to/your/TBB/tor-browser-bundle-testsuite
 /mozmill-tests/tbb-tests/noscript.js",
     "name": "testNoscript",
     "lineNumber": 50
   }
 }
 ERROR | Test Failure | {
   "fail": {
     "message": "https src in https page (alternate hostname)",
     "fileName": "file:///path/to/your/TBB/tor-browser-bundle-testsuite
 /mozmill-tests/tbb-tests/noscript.js",
     "name": "testNoscript",
     "lineNumber": 60
   }
 }
 ERROR | Test Failure | {
   "exception": {
     "message": "frame.getNode(...) is null",
     "lineNumber": 69,
     "name": "TypeError",
     "fileName": "resource://mozmill/modules/frame.js ->
 file:///path/to/your/TBB/tor-browser-bundle-testsuite/mozmill-tests/tbb-
 tests/noscript.js"
   }
 }

 > If I test a 4.5a4 bundle in which I manually installed noscript
 2.6.9.18rc3, I get no error.

 I get the same errors as above if I install NoScript 2.6.9.18.

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


More information about the tor-bugs mailing list