WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
159263
Pass SecurityOrigin as references in CORS check code
https://bugs.webkit.org/show_bug.cgi?id=159263
Summary
Pass SecurityOrigin as references in CORS check code
youenn fablet
Reported
2016-06-29 08:08:17 PDT
Pass SecurityOrigin as references in CORS check code
Attachments
Patch
(21.85 KB, patch)
2016-06-29 08:12 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2016-06-29 08:12:26 PDT
Created
attachment 282346
[details]
Patch
Alex Christensen
Comment 2
2016-06-29 09:40:03 PDT
Comment on
attachment 282346
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=282346&action=review
This is indeed no change in behavior. If there's no security origin when doing CORS checks, something has gone horribly wrong
> Source/WebCore/loader/DocumentThreadableLoader.cpp:448 > + ASSERT(m_document.securityOrigin());
Don't we only need this to be true if m_origin is non-null?
youenn fablet
Comment 3
2016-06-29 13:22:41 PDT
Thanks for the review.
> > Source/WebCore/loader/DocumentThreadableLoader.cpp:448 > > + ASSERT(m_document.securityOrigin()); > > Don't we only need this to be true if m_origin is non-null?
Right, strictly speaking, the assertion is too wide. At the same time, having a non-null origin and a document with a null origin sounds worrying.
WebKit Commit Bot
Comment 4
2016-06-29 23:29:22 PDT
Comment on
attachment 282346
[details]
Patch Clearing flags on attachment: 282346 Committed
r202674
: <
http://trac.webkit.org/changeset/202674
>
WebKit Commit Bot
Comment 5
2016-06-29 23:29:26 PDT
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