Posts

Post not yet marked as solved
1 Replies
525 Views
Hi, I'm trying to implement a "content blocker" using the DeclarativeNetRequest permission in a Safari Web Extension. I tried to customize the sample app (ios+MacOS) provided by Apple (https://developer.apple.com/documentation/safariservices/safari_web_extensions/adopting_declarative_content_blocking_in_safari_web_extensions). However, I observe : a random behaviour on iOS15: rules do not always apply, or are not reloaded crashes on Monterey Beta9 and Safari 15.1 : com.apple.Safari.ContentBlockerLoader crashes on WebKit:runInitializeCode after ConteRuleListStore... Crash Report Any idea? Is this a "very beta" feature... documentation is so poor compared to Google's. Thanks
Posted
by esellier.
Last updated
.
Post marked as solved
3 Replies
2.1k Views
Hi,I observed a strange behaviour with the following code:UInt32(Float("0x7f000001") ?? 0) // will return 2130706432 atof("0x7f000001") // will return 2130706433Why do I have two different results? Bug?Actually 0x7f000001 is the Hex representation of the IP address 127.0.0.1So the correct result should be 2130706433UInt32("2130706433") // will return 2130706433Thanks
Posted
by esellier.
Last updated
.
Post not yet marked as solved
0 Replies
332 Views
Hi,Calling the toolbarItem?.showPopover() method does nothing...In my Info.plist, I set Action to Command (so the toolbarItemClicked event handler is called).In toolbarItemClicked() I use: window.getToolbarItem(completionHandler: { (toolbarItem:SFSafariToolbarItem?) in toolbarItem?.showPopover() })But... the popover is not shown, and popoverViewController is not called.What am I missing? I tried in Safari Tech Preview Release 85 (Safari 13.0, WebKit 14608.1.28.1)
Posted
by esellier.
Last updated
.
Post not yet marked as solved
2 Replies
1.2k Views
Our Safari App Extension (Host App + appex bundle) submission to the App Store was rejected because the Host App does not provide enough features.As our app is mostly a Safari App Extension, the Host App does effectively nothing.The guidelines about the Host App content are not clear for the case of Safari App Extensions.Did I miss somehing publishing the package? Or I've been unlucky?Thanks,Emmanuel
Posted
by esellier.
Last updated
.
Post not yet marked as solved
1 Replies
1k Views
For these who want to help or need help or want to share ideas, findings on Safari App Extension.I've just created a Slack, be welcome and join : https://slofile.com/slack/safariappextdevsHope this can of initiative can be shared on this forum.
Posted
by esellier.
Last updated
.
Post not yet marked as solved
7 Replies
4.9k Views
Hi,We are trying to port our legacy webextz extension into a Safari App Extension app.First of all, we really lack an actual example (more than what X-Code generates or what was shown at the WDC in 2016).A comparison between webextz API and Safari App Extension would be helpful as it is really difficult to guess what is possible and what is not possible anymore (which seems the most common)...Questions:1/ Is it possible to have a toolbaritem which handles the command messages but still can open a popover?We can't find how to open the popover programmatically if toolbarItem Action is set to "Command"It would be great to be able, as in a webextz, to set popup per tab2/ How to close programmatically the popover (with toolbaritem Action set as Popover)?Tried many things, from view controller, but still unsuccessful3/ Will extension user settings need to be managed through the Host app?Meaning we can't propose settings in the Safari Preferences/Extensions?Thanks
Posted
by esellier.
Last updated
.