Posts

Post not yet marked as solved
1 Replies
1k 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
5.5k 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
507 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
.