[tor-bugs] #28609 [Core Tor/Tor]: browser.windows.create(createData) sometimes not displayed

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Nov 24 13:29:10 UTC 2018


#28609: browser.windows.create(createData) sometimes not displayed
----------------------+------------------------------
 Reporter:  NemoVoid  |          Owner:  (none)
     Type:  defect    |         Status:  new
 Priority:  Medium    |      Component:  Core Tor/Tor
  Version:            |       Severity:  Normal
 Keywords:            |  Actual Points:
Parent ID:            |         Points:
 Reviewer:            |        Sponsor:
----------------------+------------------------------
 This concerns browser extensions - bug appears only in the TOR browser not
 firefox 60.3.0esr. A new window created using browser.windows.create does
 not display its html contents when the window being created is of type
 'panel', 'detached_panel' or 'popup' - unless a refresh is forced by
 manually changing its size.

 How to reproduce bug:
 1) Take the source for 'windows manipulator'
 https://github.com/mdn/webextensions-examples/tree/master/window-
 manipulator
 2)Create a file call it (say) hello.html in the source directory eg
 <!DOCTYPE html>
 <html>
   <head>
     <meta charset="utf-8">
   </head>
 <body>
   <h1>Hello World!</h1>
 </body>
 </html>
 3)Change the window.js so the createData contains the url for hello.html
 eg
 let createData = {
       type: "panel",url:"hello.html",
     };
 similarly for the other windows types.
 4)Only the normal window works. The others are blank until you resize the
 window. Though the incognito window never shows anything. (You might want
 to check the incognito flag in the returned windows.Window object I have a
 feeling its not set properly).

 5)I've tried programatically to get it to display automatically but
 without success. Only by grabbing one of the sides of the window and
 changing it does it suddenly display its contents.

 Reference:
 https://developer.mozilla.org/en-US/docs/Mozilla/Add-
 ons/WebExtensions/API/windows/create

 System:
 Windows 7 Ultimate; Tor browser 8.0.3

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


More information about the tor-bugs mailing list