WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
50170
Need a WebKit2 Equivalent of WebSecurityOrigin
https://bugs.webkit.org/show_bug.cgi?id=50170
Summary
Need a WebKit2 Equivalent of WebSecurityOrigin
Jessie Berlin
Reported
2010-11-29 12:22:58 PST
<
rdar://problem/8706761
>
Attachments
Patch
(18.30 KB, patch)
2010-12-02 16:14 PST
,
Jessie Berlin
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jessie Berlin
Comment 1
2010-12-02 16:14:17 PST
Created
attachment 75428
[details]
Patch
Sam Weinig
Comment 2
2010-12-02 16:23:42 PST
Comment on
attachment 75428
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=75428&action=review
You need to add this file to the WebKit2.pro as well.
> WebKit2/Shared/APIObject.h:70 > + TypeSecurityOrigin,
It seems like there may be use for this object in both processes, so maybe it should go in Shared.
> WebKit2/UIProcess/API/C/WKSecurityOrigin.h:37 > +WK_EXPORT WKSecurityOriginRef WKSecurityOriginCreate(WKStringRef databaseIdentifier);
I don't like the phrase databaseIdentifier here.
> WebKit2/UIProcess/API/C/WKSecurityOrigin.h:41 > +WK_EXPORT size_t WKSecurityOriginGetPort(WKSecurityOriginRef securityOrigin);
I think it would be reasonable to return an unsigned short here since ports can't be larger that that.
Jessie Berlin
Comment 3
2010-12-02 18:02:17 PST
(In reply to
comment #2
)
> (From update of
attachment 75428
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=75428&action=review
> > You need to add this file to the WebKit2.pro as well.
Done.
> > > WebKit2/Shared/APIObject.h:70 > > + TypeSecurityOrigin, > > It seems like there may be use for this object in both processes, so maybe it should go in Shared.
Done.
> > > WebKit2/UIProcess/API/C/WKSecurityOrigin.h:37 > > +WK_EXPORT WKSecurityOriginRef WKSecurityOriginCreate(WKStringRef databaseIdentifier); > > I don't like the phrase databaseIdentifier here.
Is "identifier" better?
> > > WebKit2/UIProcess/API/C/WKSecurityOrigin.h:41 > > +WK_EXPORT size_t WKSecurityOriginGetPort(WKSecurityOriginRef securityOrigin); > > I think it would be reasonable to return an unsigned short here since ports can't be larger that that.
Done.
Jessie Berlin
Comment 4
2010-12-03 09:33:58 PST
Comment on
attachment 75428
[details]
Patch Committed in
r73267
https://trac.webkit.org/changeset/73267
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