Post

Replies

Boosts

Views

Activity

Safari movemove event is not fired when mouse is over disabled element (whereas it is triggered in Firefox and Chrome)
In a web extension, I am trying to highlight and capture the element over which the mouse is currently hovering. However, the mousemove event does not trigger in Safari when the mouse is over a disabled element. This code will print the mousemove event details in Firefox and Chrome, but print nothing in Safari: document.addEventListener("mousemove", (event) => console.log(event)); I've also tried putting the event listener on window instead with the same result :( Related SO question https://stackoverflow.com/posts/65161714/edit
0
0
1k
Dec ’20
After converting a Web Extension using safari-web-extension-converter, running extension fails with SFErrorDomain code 1
I have a web extension https://github.com/david-shortman/clickster In the directory for that extension, I ran david@Davids-Mac-mini clickster % xcrun safari-web-extension-converter . Xcode Project Location: /Volumes/Samsung_T5/dev/GitHub/clickster App Name: Clickster App Bundle Identifier: com.yourCompany.Clickster Language: Swift Is this correct? [yes]: no Xcode Project Location [/Volumes/Samsung_T5/dev/GitHub/clickster]: App Name [Clickster]: App Bundle Identifier [com.yourCompany.Clickster]: com.shortman.Clickster Swift Objective-C Language [1]: 1 Then, Xcode automatically opens that project. I ran the app with the default config for "My Mac". The extension immediately encountered this error in the default guard in ViewController here error error Error? domain: "SFErrorDomain" - code: 1 0x0000600002706ca0 error was thrown on line 3 guard let state = state, error == nil else {                 // Insert code to inform the user that something went wrong.                 return // <- breaks here             }
2
0
1.6k
Dec ’20