WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
79253
WebKit2: implement platform strategy to access Pasteboard in the UI process.
https://bugs.webkit.org/show_bug.cgi?id=79253
Summary
WebKit2: implement platform strategy to access Pasteboard in the UI process.
Enrica Casucci
Reported
2012-02-22 10:04:01 PST
This bugs tracks the work required to implement the message exchanging with the UIProcess to move the access to NSPasteboard out of the WebProcess.
Attachments
Patch
(16.89 KB, patch)
2012-02-22 10:12 PST
,
Enrica Casucci
ap
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2012-02-22 10:12:22 PST
Created
attachment 128238
[details]
Patch
Alexey Proskuryakov
Comment 2
2012-02-23 11:00:24 PST
Comment on
attachment 128238
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=128238&action=review
Can sandbox profile be updated now, blocking pasteboard access?
> Source/WebKit2/UIProcess/WebContext.cpp:625 > +#if PLATFORM(MAC) > +void WebContext::getPasteboardTypes(const String& pasteboardName, Vector<String>& pasteboardTypes)
Can this code go to WebContextMac.mm instead?
> Source/WebKit2/UIProcess/WebContext.cpp:642 > + RefPtr<WebCore::SharedBuffer> buffer = PlatformPasteboard(pasteboardName).bufferForType(pasteboardType);
Is this WebCore:: prefix needed?
WebKit Commit Bot
Comment 3
2012-02-24 01:04:24 PST
Attachment 128238
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebKit2/UIProcess/WebContext.h:232: The parameter name "handle" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit2/UIProcess/WebContext.h:236: The parameter name "color" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit2/UIProcess/WebContext.h:240: The parameter name "handle" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 3 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Enrica Casucci
Comment 4
2012-02-27 13:27:57 PST
(In reply to
comment #2
)
> (From update of
attachment 128238
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=128238&action=review
> > Can sandbox profile be updated now, blocking pasteboard access? > > > Source/WebKit2/UIProcess/WebContext.cpp:625 > > +#if PLATFORM(MAC) > > +void WebContext::getPasteboardTypes(const String& pasteboardName, Vector<String>& pasteboardTypes) > > Can this code go to WebContextMac.mm instead?
> Yes, I'll move it.
> > Source/WebKit2/UIProcess/WebContext.cpp:642 > > + RefPtr<WebCore::SharedBuffer> buffer = PlatformPasteboard(pasteboardName).bufferForType(pasteboardType); > > Is this WebCore:: prefix needed?
No, I'll remove it.
Enrica Casucci
Comment 5
2012-02-27 13:29:11 PST
(In reply to
comment #2
)
> (From update of
attachment 128238
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=128238&action=review
> > Can sandbox profile be updated now, blocking pasteboard access? >
Not yet, there is still one patch I'm working on to remove the access performed in WebDragClient.cpp. I need to move to the UI process all the code that deals with the NSPromisedFile stuff.
Enrica Casucci
Comment 6
2012-02-27 13:29:31 PST
(In reply to
comment #3
)
>
Attachment 128238
[details]
did not pass style-queue: > > Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 > Source/WebKit2/UIProcess/WebContext.h:232: The parameter name "handle" adds no information, so it should be removed. [readability/parameter_name] [5] > Source/WebKit2/UIProcess/WebContext.h:236: The parameter name "color" adds no information, so it should be removed. [readability/parameter_name] [5] > Source/WebKit2/UIProcess/WebContext.h:240: The parameter name "handle" adds no information, so it should be removed. [readability/parameter_name] [5] > Total errors found: 3 in 7 files > > > If any of these errors are false positives, please file a bug against check-webkit-style.
Will fix style issues before landing.
Enrica Casucci
Comment 7
2012-02-27 14:05:11 PST
http://trac.webkit.org/changeset/109022
Andy Estes
Comment 8
2012-03-06 19:56:10 PST
It looks like this broke file uploads to icloud.com. I filed <
https://bugs.webkit.org/show_bug.cgi?id=80475
>.
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