WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
227011
[WinCairo] Turn ENABLE_SHAREABLE_RESOURCE on
https://bugs.webkit.org/show_bug.cgi?id=227011
Summary
[WinCairo] Turn ENABLE_SHAREABLE_RESOURCE on
Fujii Hironori
Reported
2021-06-14 22:18:21 PDT
[WinCairo] Turn ENABLE_SHAREABLE_RESOURCE on
Attachments
WIP patch
(10.73 KB, patch)
2021-06-14 22:18 PDT
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
WIP patch
(10.68 KB, patch)
2021-06-14 22:27 PDT
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
WIP patch
(7.22 KB, patch)
2021-06-17 14:16 PDT
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
Patch
(16.54 KB, patch)
2021-06-20 20:00 PDT
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
Patch
(11.08 KB, patch)
2021-06-21 13:25 PDT
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Fujii Hironori
Comment 1
2021-06-14 22:18:34 PDT
Created
attachment 431401
[details]
WIP patch
Fujii Hironori
Comment 2
2021-06-14 22:27:56 PDT
Created
attachment 431402
[details]
WIP patch
Fujii Hironori
Comment 3
2021-06-17 14:16:59 PDT
Created
attachment 431720
[details]
WIP patch
Fujii Hironori
Comment 4
2021-06-20 20:00:37 PDT
Created
attachment 431829
[details]
Patch
Fujii Hironori
Comment 5
2021-06-21 13:25:09 PDT
Created
attachment 431901
[details]
Patch
Don Olmstead
Comment 6
2021-06-21 13:31:44 PDT
Comment on
attachment 431901
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431901&action=review
> Source/WebKit/NetworkProcess/cache/NetworkCacheDataCurl.cpp:123 > +#if ENABLE(SHAREABLE_RESOURCE) && OS(WINDOWS) > +RefPtr<SharedMemory> Data::tryCreateSharedMemory() const > +{ > + if (isNull() || !isMap()) > + return nullptr; > + > + HANDLE handle = WTF::get<FileSystem::MappedFileData>(*m_buffer).fileMapping(); > + HANDLE newHandle; > + if (!DuplicateHandle(GetCurrentProcess(), handle, GetCurrentProcess(), &newHandle, 0, false, DUPLICATE_SAME_ACCESS)) > + return nullptr; > + > + return SharedMemory::adopt(newHandle, m_size, SharedMemory::Protection::ReadOnly); > +} > +#endif
You have any plans to do a POSIX implementation that PlayStation can use here too?
Fujii Hironori
Comment 7
2021-06-21 14:39:19 PDT
(In reply to Don Olmstead from
comment #6
)
> You have any plans to do a POSIX implementation that PlayStation can use > here too?
It sounds a good idea. But, not high priority for me now. My motivation was fixing a WinCairo assertion failure (
Bug 225801
), but unfortunately this change doesn't fix it.
Don Olmstead
Comment 8
2021-06-21 14:41:31 PDT
(In reply to Fujii Hironori from
comment #7
)
> (In reply to Don Olmstead from
comment #6
) > > You have any plans to do a POSIX implementation that PlayStation can use > > here too? > > It sounds a good idea. But, not high priority for me now. My motivation was > fixing a WinCairo assertion failure (
Bug 225801
), but unfortunately this > change doesn't fix it.
Ok can you open a bug for that part? Builds are green so commit at your leisure
Fujii Hironori
Comment 9
2021-06-21 14:42:16 PDT
Comment on
attachment 431901
[details]
Patch Clearing flags on attachment: 431901 Committed
r279085
(
239004@main
): <
https://commits.webkit.org/239004@main
>
Fujii Hironori
Comment 10
2021-06-21 14:42:21 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11
2021-06-21 14:43:36 PDT
<
rdar://problem/79581434
>
Fujii Hironori
Comment 12
2021-06-21 14:48:12 PDT
(In reply to Don Olmstead from
comment #8
)
> Ok can you open a bug for that part?
Yup. Filed.
Bug 227236
– [PlayStation] Turn ENABLE_SHAREABLE_RESOURCE on
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