WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
178527
Service Worker process should not be selected to open WebView on it
https://bugs.webkit.org/show_bug.cgi?id=178527
Summary
Service Worker process should not be selected to open WebView on it
youenn fablet
Reported
2017-10-19 11:55:09 PDT
Currently service worker process is a web process. In the future, we might want it to have a dedicated type. In the meantime, it should not be selected to open WebView on it
Attachments
Patch
(2.87 KB, patch)
2017-10-19 11:57 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(2.81 KB, patch)
2017-10-19 13:22 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(2.84 KB, patch)
2017-10-19 13:31 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2017-10-19 11:57:49 PDT
Created
attachment 324256
[details]
Patch
Chris Dumez
Comment 2
2017-10-19 12:21:52 PDT
Comment on
attachment 324256
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=324256&action=review
r=me with comments.
> Source/WebKit/UIProcess/WebProcessPool.cpp:940 > + Vector<std::reference_wrapper<WebProcessProxy>> processes;
I think processes is too generic, how about reusableProcesses ?
> Source/WebKit/UIProcess/WebProcessPool.cpp:944 > + if (isMatchingStore && (process.get() != m_workerContextProcess))
You're going to need to protect the second check behind a #if ENABLE(SERVICE_WORKER)
youenn fablet
Comment 3
2017-10-19 13:22:35 PDT
Created
attachment 324271
[details]
Patch
Chris Dumez
Comment 4
2017-10-19 13:28:19 PDT
Comment on
attachment 324271
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=324271&action=review
> Source/WebKit/UIProcess/WebProcessPool.cpp:940 > + WebProcessProxy* reusableProcess = nullptr;
I would call this processToReuse. LGTM otherwise.
youenn fablet
Comment 5
2017-10-19 13:31:17 PDT
Created
attachment 324274
[details]
Patch
WebKit Commit Bot
Comment 6
2017-10-19 14:28:50 PDT
The commit-queue encountered the following flaky tests while processing
attachment 324274
[details]
: The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 7
2017-10-19 14:29:17 PDT
The commit-queue encountered the following flaky tests while processing
attachment 324274
[details]
: http/tests/security/cross-origin-xsl-BLOCKED.html
bug 51054
(authors:
abarth@webkit.org
,
jochen@chromium.org
, and
rniwa@webkit.org
) The commit-queue is continuing to process your patch.
Chris Dumez
Comment 8
2017-10-19 14:31:21 PDT
Comment on
attachment 324274
[details]
Patch Clearing flags on attachment: 324274 Committed
r223713
: <
https://trac.webkit.org/changeset/223713
>
Chris Dumez
Comment 9
2017-10-19 14:31:23 PDT
All reviewed patches have been landed. Closing bug.
Daniel Bates
Comment 10
2017-10-19 14:36:46 PDT
Comment on
attachment 324274
[details]
Patch Is it possible to write a test for this change?
Chris Dumez
Comment 11
2017-10-19 14:40:07 PDT
(In reply to Daniel Bates from
comment #10
)
> Comment on
attachment 324274
[details]
> Patch > > Is it possible to write a test for this change?
This is a crash fix which was split out of
Bug 178475
. When
Bug 178475
lands, if API tests and layout tests do not crash, then this patch works as intended.
Radar WebKit Bug Importer
Comment 12
2017-11-15 13:02:40 PST
<
rdar://problem/35568673
>
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