Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacForge injection causes Safari webkit error #74

Open
sedaray opened this issue Oct 24, 2022 · 7 comments
Open

MacForge injection causes Safari webkit error #74

sedaray opened this issue Oct 24, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@sedaray
Copy link

sedaray commented Oct 24, 2022

Bug Report

Current Behavior
Safari Error on every page:

Safari Can’t Open the Page
Safari can’t open the page “http://zydecopartyband.com/”. The error is: “WebKit encountered an internal error” (WebKitErrorDomain:300)

To Reproduce
Steps to reproduce the behavior:

  1. MacForge enabled, start Safari.
  2. Error - on any page.
  3. If I go to MacForge menu and check "Disable Injection", and restart Safari, error no longer appears.
  4. Once Safari is running with no error, I can toggle on/off the "Disable Injection" with no errors.
  5. After a few toggles, Safari simply refuses to load pages, no matter the "Disable Injection" status.
  6. I am using only "Colorful Sidebar X" and "Color Menu Items" - I need color and would rather use these plugins than use Safari. In fact, I so rarely use Safari that I only discovered this problem up to a year after installing MacForge.

Expected behavior/code
Safari to load web pages

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • MacForge version(s): v1.1.0(5977)
  • OS version: MacOS 12.6]
  • Plugins: "Colorful Sidebar X" and "Color Menu Items"

Possible Solution

Additional context
I have two Mac Minis with the same system and same plugins and same problem.

I have XtraFinder installed for the same purpose of color sidebar items, but MacForge plugins also helped with finder dialogues, for instance "Export As" and then finding a colorful folder icon in the finder list, rather than sorting through generic folder icons.
I don't have it running on this computer. On my old High Sierra 5,1 Tower I use XtraFinder and Safari with no errors, just fyi.

I just quit xtrafinder and started up MacForge on my High Sierra machine and the finder quit altogether and I had to restart. I'm not eager to experiment more on that machine. I will remain aware.

@sedaray sedaray added the bug Something isn't working label Oct 24, 2022
@sedaray sedaray changed the title injection causes Safari webkit error MacForge injection causes Safari webkit error Oct 27, 2022
@zwzheng45
Copy link

Same problem +1

@AOx0
Copy link

AOx0 commented Dec 21, 2022

Same over here.

@FrozenYogurtPuff
Copy link

Same problem. Is there any way to disable injection on startup by default?

@zwzheng45
Copy link

Simply uncheck the box in the plugin prefs could disable the injection.
截屏2023-02-21 11 40 52

@Undefined-User
Copy link

Undefined-User commented Aug 15, 2023

I add "com.apple.WebKit.Networking" to blacklist with "fix-beta" branch latest code build, looks working fine to me.
Environment: macOS 13.5 with M2 Pro

@whdichrn
Copy link

whdichrn commented Oct 7, 2023

I add "com.apple.WebKit.Networking" to blacklist with "fix-beta" branch latest code build, looks working fine to me. Environment: macOS 13.5 with M2 Pro

In what method to add "com.apple.WebKit.Networking" to blacklist? I found no option in System > application blacklist.

@iairu
Copy link

iairu commented Nov 18, 2024

I add "com.apple.WebKit.Networking" to blacklist with "fix-beta" branch latest code build, looks working fine to me. Environment: macOS 13.5 with M2 Pro

In what method to add "com.apple.WebKit.Networking" to blacklist? I found no option in System > application blacklist.

  1. Optional: Use an app like "Find any file" to search for files with name "com.apple.WebKit.Networking", which should give you some XPC Service results (used in next step)
  2. Drag and drop one of the found XPC Service files (these are mine) to the blacklist: /System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.Networking.xpc or /Library/Apple/System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.Networking.xpc
  3. Magic! Safari sites no longer crash! ... for a while

I had some problems with sites still crashing, it just wasn't as instant as before. I added the rest of com.apple.webkit files with xpc extension I found on my system using "find any file" app to the blacklist, will update if problems occur; here is my current blacklist:

/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.Networking.xpc
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.GPU.xpc
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebAuthn.xpc
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.CaptivePortal.xpc
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.Development.xpc
/System/Library/Frameworks/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.xpc
/System/Library/Templates/Data/Applications/Safari.app/Contents/XPCServices/com.apple.WebKit.Safari.xpc

update after 9 hours of constant browser use (mostly GitHub work): 0 crashes! 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants