[Webkit-unassigned] [Bug 204839] [GTK] webkit_user_content_manager_register_script_message_handler failing with shared process

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 14 00:43:55 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=204839

--- Comment #7 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to Michael Gratton from comment #6)
> (In reply to Carlos Garcia Campos from comment #5)
> > > I just tried using a per-view WebKitUserContentManager with a custom ctor
> > > instead  of calling webkit_web_view_new_with_related_view() directly, one
> > > that set the `related-view` property and also `user-content-manager` with a
> > > new WebKitUserContentManager instance, but that didn't seem to work.
> > 
> > What failed exactly?
> 
> IIRC no errors or logging, it just didn't work.
> 
> > > Okay, any clues about how to access `page_id` from JS scripts in the page?
> > > There's nothing about it in the docs.
> > > 
> > > I'll look into porting to the new Message API in the future, but that's
> > > potentially a lot of work, so probably not this cycle.
> > 
> > It shouldn't be that much work, I think.
> 
> It's only 1k lines of JS, but it's also integration on the vala side and
> maybe a hundred or so unit tests and the framework required to test the JS
> code in the fist place.
> 
> I don't have time to do this before 3.36, so if you're volunteering, that
> would be great. ;)
> 
> But seriously, is it possible to keep the WEBKIT_USE_SINGLE_WEB_PROCESS
> workaround in place for one more cycle so I can revert the switch to shared
> views for now and do the port to Message API for 3.38?

Yes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200114/094d389c/attachment.htm>


More information about the webkit-unassigned mailing list