browsh
browsh copied to clipboard
Using browsh with a gatsby.js server running on localhost seems to crash
Tested on MacOs Mojave (Version 10.14.6) in iTerm2 (Build 3.3.11).
I cloned the following Tina-cms starter project, ran yarn to install dependencies and then yarn develop to get a development server. When it's done loading it prompts you to open up http://localhost:8000/. This works fine in Chrome, but when testing it with browsh it crashes.
./debug.log:
Looking in /Users/knarf/Library/Application Support/browsh/config.toml for config.
Attempting to connect to Firefox Marionette
Sending `WebDriver:NewSession` to Firefox Marionette
Starting Firefox in headless mode
FF-MRNT: 50:{"applicationType":"gecko","marionetteProtocol":3}
Sending `Addon:Install` to Firefox Marionette
Starting Browsh CLI client
Starting websocket server...
FF-MRNT: 697:[1,0,null,{"sessionId":"ad630897-46bf-2c48-93d4-3a047db5ef8a","capabilities":{"browserName":"firefox","browserVersion":"78.0.2","platformName":"mac","platformVersion":"18.7.0","acceptInsecureCerts":false,"pageLoadStrategy":"normal","setWindowRect":true,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"strictFileInteractability":false,"unhandledPromptBehavior":"dismiss and notify","rotatable":false,"moz:accessibilityChecks":false,"moz:buildID":"20200708170202","moz:headless":true,"moz:processID":96833,"moz:profile":"/Users/knarf/Library/Application Support/browsh/firefox_profile","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}]
Webextension not connected. Message not sent: /tty_size,290,32
Using Firefox at: /Applications/Firefox.app/Contents/MacOS/firefox
FF-MRNT: 61:[1,1,null,{"value":"{8ff2d753-2dc8-46de-a837-fa28331d9fcf}"}]
Using default profile at: /Users/knarf/Library/Application Support/browsh/firefox_profile
Incoming web request from browser
Sending `Marionette:SetContext` to Firefox Marionette
TTY sending: /config,{"browsh":{"custom_css":"","use_experimental_text_visibility":false,"websocket-port":3334},"browsh_supporter":"♥","debug":true,"default_search_engine_base":"https://www.google.com/search?q=","firefox":{"path":"firefox","profile":"browsh-default","use-existing":false,"with-gui":false},"http-server":{"bind":"0.0.0.0","blocked-domains":null,"blocked-user-agents":null,"columns":100,"footer":"","header":"","jpeg_compression":0.9,"port":4333,"rate-limit":"100000000-M","render_delay":100,"rows":30,"timeout":30},"http-server-mode":false,"mobile_user_agent":"Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/58.0 Firefox/58.0","monochrome":false,"startup-url":"http://www.brow.sh","time-limit":0,"tty":{"keys":{"next-tab":["\u001c","28","2"]},"small_pixel_frame_rate":250},"validurl":["http://localhost:8000/"],"version":false}
Sending `WebDriver:ExecuteScript` to Firefox Marionette
WEBEXT: Webextension connected to the terminal's websocket server
Sending `Marionette:SetContext` to Firefox Marionette
WEBEXT: Starting to listen to TTY
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
Sending `WebDriver:ExecuteScript` to Firefox Marionette
Sending `Marionette:SetContext` to Firefox Marionette
TTY sending: /tty_size,290,32
FF-MRNT: 25:[1,2,null,{"value":null}]
TTY sending: /new_tab,http://localhost:8000/
FF-MRNT: 25:[1,3,null,{"value":null}]
WEBEXT: Message from terminal: /config,{"browsh":{"custom_css":"","use_experimental_text_visibility":false,"websocket-port":3334},"browsh_supporter":"♥","debug":true,"default_search_engine_base":"https://www.google.com/search?q=","firefox":{"path":"firefox","profile":"browsh-default","use-existing":false,"with-gui":false},"http-server":{"bind":"0.0.0.0","blocked-domains":null,"blocked-user-agents":null,"columns":100,"footer":"","header":"","jpeg_compression":0.9,"port":4333,"rate-limit":"100000000-M","render_delay":100,"rows":30,"timeout":30},"http-server-mode":false,"mobile_user_agent":"Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/58.0 Firefox/58.0","monochrome":false,"startup-url":"http://www.brow.sh","time-limit":0,"tty":{"keys":{"next-tab":["\u001c","28","2"]},"small_pixel_frame_rate":250},"validurl":["http://localhost:8000/"],"version":false}
FF-MRNT: 25:[1,4,null,{"value":null}]
FF-MRNT: 25:[1,5,null,{"value":null}]25:[1,6,null,{"value":null}]25:[1,7,null,{"value":null}]
FF-MRNT: 25:[1,8,null,{"value":null}]
FF-MRNT: 25:[1,9,null,{"value":null}]
FF-MRNT: 26:[1,10,null,{"value":null}]
FF-MRNT: 26:[1,11,null,{"value":null}]
WEBEXT: {"browsh":{"custom_css":"","use_experimental_text_visibility":false,"websocket-port":3334},"browsh_supporter":"♥","debug":true,"default_search_engine_base":"https://www.google.com/search?q=","firefox":{"path":"firefox","profile":"browsh-default","use-existing":false,"with-gui":false},"http-server":{"bind":"0.0.0.0","blocked-domains":null,"blocked-user-agents":null,"columns":100,"footer":"","header":"","jpeg_compression":0.9,"port":4333,"rate-limit":"100000000-M","render_delay":100,"rows":30,"timeout":30},"http-server-mode":false,"mobile_user_agent":"Mozilla/5.0 (Android 7.0; Mobile; rv:54.0) Gecko/58.0 Firefox/58.0","monochrome":false,"startup-url":"http://www.brow.sh","time-limit":0,"tty":{"keys":{"next-tab":["\u001c","28","2"]},"small_pixel_frame_rate":250},"validurl":["http://localhost:8000/"],"version":false}
FF-MRNT: 26:[1,12,null,{"value":null}]
FF-MRNT: 26:[1,13,null,{"value":null}]26:[1,14,null,{"value":null}]26:[1,15,null,{"value":null}]
FF-MRNT: 26:[1,16,null,{"value":null}]26:[1,17,null,{"value":null}]26:[1,18,null,{"value":null}]26:[1,19,null,{"value":null}]26:[1,20,null,{"value":null}]26:[1,21,null,{"value":null}]
FF-MRNT: 26:[1,22,null,{"value":null}]26:[1,23,null,{"value":null}]26:[1,24,null,{"value":null}]26:[1,25,null,{"value":null}]26:[1,26,null,{"value":null}]
FF-MRNT: 26:[1,27,null,{"value":null}]26:[1,28,null,{"value":null}]
FF-MRNT: 26:[1,29,null,{"value":null}]
FF-MRNT: 26:[1,30,null,{"value":null}]26:[1,31,null,{"value":null}]26:[1,32,null,{"value":null}]
WEBEXT: Message from terminal: /tty_size,290,32
FF-MRNT: 26:[1,33,null,{"value":null}]26:[1,34,null,{"value":null}]
WEBEXT: Requesting browser resize for new TTY dimensions: 290x32
WEBEXT: Not resizing browser window without all of the TTY and character dimensions
WEBEXT: Message from terminal: /new_tab,http://localhost:8000/
WEBEXT: Tab undefined received new focus
WEBEXT: New tab created: [object Object]
WEBEXT: Tab 4 (localhost:8000/) registered with background process
WEBEXT: Tab 4 connected for communication with background process
WEBEXT: BACKGROUND: Frame loop starting at 250ms intervals
WEBEXT: ["4","Webextension postCommsInit()"]
WEBEXT: ["4","Sending big frames..."]
WEBEXT: ["4","Using char dims 9x15"]
WEBEXT: ["4","Actual char dims 13.333328247070312x16"]
WEBEXT: Requesting browser resize for new char dimensions: 9x20 (old: undefinedxundefined)
WEBEXT: Resizing browser window successful (2610x660)
WEBEXT: ["4","Using char dims 9x15"]
WEBEXT: ["4","Actual char dims 13.333328247070312x16"]
WEBEXT: ["4",["get screenshot with text: 18ms"]]
WEBEXT: Tab 1 (Download Firefox for Android and iOS) registered with background process
WEBEXT: Tab 1 connected for communication with background process
WEBEXT: ["1","Webextension postCommsInit()"]
WEBEXT: ["1","Sending big frames..."]
WEBEXT: Resizing browser window successful (2610x660)
WEBEXT: ["1",["get screenshot without text: 46ms"]]
WEBEXT: ["1","Using char dims 9x15"]
WEBEXT: ["1","Actual char dims 13.333328247070312x16"]
WEBEXT: ["1",["position text nodes: 54ms"]]
WEBEXT: ["1",["get screenshot with text: 122ms"]]
WEBEXT: ["4","DOM LOADED"]
WEBEXT: ["4","PAGE LOADED"]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4",["get screenshot without text: 15ms"]]
WEBEXT: ["4",["position text nodes: 22ms"]]
WEBEXT: ["4",["get screenshot with text: 47ms"]]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","Sending big frames..."]
WEBEXT: ["4",["get screenshot without text: 12ms"]]
WEBEXT: ["4",["position text nodes: 13ms"]]
WEBEXT: ["4",["get screenshot with text: 36ms"]]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4","!!MUTATION!!",{}]
WEBEXT: ["4",["get screenshot without text: 17ms"]]
WEBEXT: ["4",["position text nodes: 13ms"]]
WEBEXT: ["4",["get screenshot with text: 49ms"]]
WEBEXT: ["1","Sending big frames..."]
WEBEXT: ["1",["get screenshot without text: 28ms"]]
WEBEXT: ["1",["position text nodes: 50ms"]]
WEBEXT: ["1",["get screenshot with text: 104ms"]]
Pretty sure browsh is not being maintained ... last update was over a year ago
Closing fo https://github.com/browsh-org/browsh/issues/76