WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
243906
[GTK4] Guard WebKitWebExtension APIs
https://bugs.webkit.org/show_bug.cgi?id=243906
Summary
[GTK4] Guard WebKitWebExtension APIs
Michael Catanzaro
Reported
2022-08-12 16:12:02 PDT
The WebKitWebExtension APIs need to be removed before releasing GTK 4 or WPE 2 APIs.
Attachments
Add attachment
proposed patch, testcase, etc.
Michael Catanzaro
Comment 1
2022-09-04 06:41:21 PDT
To avoid completely derailing Epiphany's port to GTK 4, instead of removing them, we should guard them behind an I_KNOW_THE_WEBKIT_WEB_PROCESS_EXTENSION_API_WILL_PROBABLY_GO_AWAY_SOON flag.
Alice Mikhaylenko
Comment 2
2022-09-04 07:22:27 PDT
+1, this way we can do a proper transition like Apple ports once the replacements are in place, rather than basically preventing most apps from porting at all for months if not years.
Carlos Garcia Campos
Comment 3
2022-09-05 01:17:28 PDT
I'm not sure about this, I suspect we will have to bump the api version once the new solution for JavaScript injection is added.
Michael Catanzaro
Comment 4
2022-09-05 06:53:19 PDT
(In reply to Carlos Garcia Campos from
comment #3
)
> I'm not sure about this, I suspect we will have to bump the api version once > the new solution for JavaScript injection is added.
You mean you think it will be possible to not completely remove the WebKitWebExtension API, and to merely bump its API version? Or you expect we would need to bump the UI process API version?
Carlos Garcia Campos
Comment 5
2022-09-06 00:09:45 PDT
It's difficult to know because we don't know how we are going to replace all the functionality exposed from injected bundle, but it's possible that the changes in the design require a new api version bump. And in any case that's not going to happen soon, so we can simply do the version bump if needed eventually.
Michael Catanzaro
Comment 6
2022-09-06 06:15:40 PDT
(In reply to Carlos Garcia Campos from
comment #5
)
> It's difficult to know because we don't know how we are going to replace all > the functionality exposed from injected bundle, but it's possible that the > changes in the design require a new api version bump.
Do you expect we will need a UI process API version bump, or a web process API version bump? I was expecting that the entire injected bundle and all web process APIs would completely go away. Of course we want a stable GTK 4 API as soon as possible, and to avoid a UI process version bump after that at all costs. I'm going to propose we remove the webkit_web_view_send_message_to_page() or webkit_web_context_send_message_to_all_extensions() UI process APIs now to avoid needing to remove them later.
Carlos Garcia Campos
Comment 7
2022-09-07 01:08:50 PDT
We will need a way to inject js in any case, so whatever it's called, we will probably have to load a .so from the frame process. The point of the deprecation is to isolate iframes into their own process and current injected bundle api is page oriented, so we will need a new api for sure, based on frames. In any case, I understand we don't want to release a new api version to break it soon, but it's very difficult to make a decision now based on something that we don't know when and how it will be. So, I would focus on making easy to port apps to new api and we have to bump the version again in two years, let's just do it.
Michael Catanzaro
Comment 8
2022-09-07 06:26:26 PDT
It sounds like you probably agree with the plan to keep the WebKitWebExtension APIs but guard them behind the I_KNOW_THE_WEBKIT_WEB_PROCESS_EXTENSION_API_WILL_PROBABLY_GO_AWAY_SOON flag?
Carlos Garcia Campos
Comment 9
2022-09-07 06:51:22 PDT
No, I would just pretend we don't know anything about injected bundle deprecation, and just do whatever is best for the project right now. Because as I said, it's very difficult to make the right decision with the very little information we have now.
Michael Catanzaro
Comment 10
2022-09-07 07:15:36 PDT
Well... OK, let's do as you prefer.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug