WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195056
Remove UserMediaProcessManager processState map
https://bugs.webkit.org/show_bug.cgi?id=195056
Summary
Remove UserMediaProcessManager processState map
youenn fablet
Reported
2019-02-26 10:51:08 PST
Following on
https://bugs.webkit.org/show_bug.cgi?id=195028
, this process/proxy map can break easily. Instead, we could move the sandbox state to WebProcessProxy and keep a set of all proxies.
Attachments
Patch
(32.62 KB, patch)
2019-02-26 12:58 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(32.05 KB, patch)
2019-02-26 13:09 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(32.03 KB, patch)
2019-02-26 14:21 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(32.04 KB, patch)
2019-02-27 10:24 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2019-02-26 12:58:28 PST
Created
attachment 363008
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2019-02-26 13:05:25 PST
<
rdar://problem/48411208
>
youenn fablet
Comment 3
2019-02-26 13:09:02 PST
Created
attachment 363010
[details]
Patch
youenn fablet
Comment 4
2019-02-26 14:21:25 PST
Created
attachment 363022
[details]
Patch
Eric Carlson
Comment 5
2019-02-27 09:42:22 PST
Comment on
attachment 363022
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=363022&action=review
> Source/WebKit/ChangeLog:9 > + To improve on this model, this patch doing the following:
Nit: "this patch doing the following:" -> "this patch does the following:"
> Source/WebKit/UIProcess/UserMediaPermissionRequestManagerProxy.cpp:64 > +static HashSet<UserMediaPermissionRequestManagerProxy*>& proxies() > +{ > + static NeverDestroyed<HashSet<UserMediaPermissionRequestManagerProxy*>> set; > + return set; > +} > + > +void UserMediaPermissionRequestManagerProxy::forEach(const WTF::Function<void(UserMediaPermissionRequestManagerProxy&)>& function) > +{ > + for (auto* proxy : proxies()) > + function(*proxy); > +}
Nit: this should be in "#if ENABLE(MEDIA_STREAM)".
youenn fablet
Comment 6
2019-02-27 10:24:19 PST
Created
attachment 363103
[details]
Patch for landing
WebKit Commit Bot
Comment 7
2019-02-27 11:53:47 PST
Comment on
attachment 363103
[details]
Patch for landing Clearing flags on attachment: 363103 Committed
r242142
: <
https://trac.webkit.org/changeset/242142
>
WebKit Commit Bot
Comment 8
2019-02-27 11:53:49 PST
All reviewed patches have been landed. Closing bug.
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