• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebDownloadDelegate delegate methods called on non-main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebDownloadDelegate delegate methods called on non-main thread


  • Subject: Re: WebDownloadDelegate delegate methods called on non-main thread
  • From: Nick Beadman <email@hidden>
  • Date: Fri, 02 Nov 2018 17:30:24 -0700

I suppose my initial “anyone has ideas” was because the WebKit folks duped
it to a radar which I thought was odd, maybe it isn’t. Maybe someone else
will find this useful too.

As you and Jens noted working around it for my case is easy but I don’t see
anything in the WebKit API that says that the WebPolicyDelegate callbacks
will be called on the main thread. So if that changes then my workaround
breaks because I introduced code that makes assumptions. I have mitigated
this by adding assets that will cause my code to crash immediately if I
tell WebKit to download on anything other than the main thread.

Cheers,
Nick

On Tue, Oct 30, 2018 at 2:09 AM Quinn "The Eskimo!" <email@hidden>
wrote:

>
> On 29 Oct 2018, at 22:34, Nick Beadman <email@hidden>
> wrote:
>
> > Thought I would add it here to see if anyone has any ideas.
>
> Ideas on what?  To my mind:
>
> * This is clearly a bug.  Even if this behaviour change was intended, it’s
> still a binary compatibility regression.
>
> * As both you and Jens Alfke noted, working around isn’t hard.
>
> * If you’re looking for comments on when this might get fixed, I don’t
> think you’re going to get much joy here on MacNetworkProg.  This is a
> WebKit issue and the WebKit folks don’t lurk here as far as I know.
>
> Share and Enjoy
> --
> Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WebDownloadDelegate delegate methods called on non-main thread
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: Network.framework and client/server?
  • Next by Date: Re: Network.framework and client/server?
  • Previous by thread: Re: Network.framework and client/server?
  • Next by thread: Re: WebDownloadDelegate delegate methods called on non-main thread
  • Index(es):
    • Date
    • Thread