browser.windows.create(createData) sometimes not displayed
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:
- 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
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). Hello World!
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
Trac:
Username: NemoVoid