WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
67794
WebKit2: Assertion when calling didPerform*Redirect on null source/destination URL string
https://bugs.webkit.org/show_bug.cgi?id=67794
Summary
WebKit2: Assertion when calling didPerform*Redirect on null source/destinatio...
Brian Weinstein
Reported
2011-09-08 12:39:23 PDT
We shouldn't call WebHistoryClient::didPerformClientRedirect or WebHistoryClient::didPerformServerRedirect when the source or destination URL string is empty or null. When we are creating a CFURLRef from a WKURL in WKURLCF.cpp, we assert that the string inside the WKURLRef is non-null. Calling WebHistoryClient::didPerform*Redirect will turn the URL strings into URLs, and we don't want that in the case where they are null or empty. <
rdar://problem/9892024
>
Attachments
[PATCH] Fix + Test
(19.26 KB, patch)
2011-09-08 15:07 PDT
,
Brian Weinstein
no flags
Details
Formatted Diff
Diff
[PATCH] Fix + Test + Better ChangeLog
(19.48 KB, patch)
2011-09-08 15:20 PDT
,
Brian Weinstein
beidson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Brian Weinstein
Comment 1
2011-09-08 15:07:55 PDT
Created
attachment 106797
[details]
[PATCH] Fix + Test
Adam Roben (:aroben)
Comment 2
2011-09-08 15:10:59 PDT
Comment on
attachment 106797
[details]
[PATCH] Fix + Test View in context:
https://bugs.webkit.org/attachment.cgi?id=106797&action=review
> Source/WebKit2/ChangeLog:4 > + WebKit2: Don't call WebHistoryClient didPerform*Redirect when source or destination is empty > +
https://bugs.webkit.org/show_bug.cgi?id=67794
It would be better if the bug title described a user-visible symptom.
> Source/WebKit2/ChangeLog:8 > + Don't call didPerformClientRedirect or didPerformServerRedirect when source or destination URL string > + is empty or null.
If the bug title described an actual problem, your ChangeLog might become more informative.
Brian Weinstein
Comment 3
2011-09-08 15:18:54 PDT
(In reply to
comment #2
)
> (From update of
attachment 106797
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=106797&action=review
> > > Source/WebKit2/ChangeLog:4 > > + WebKit2: Don't call WebHistoryClient didPerform*Redirect when source or destination is empty > > +
https://bugs.webkit.org/show_bug.cgi?id=67794
> > It would be better if the bug title described a user-visible symptom.
Changed it to mention the assert.
> > > Source/WebKit2/ChangeLog:8 > > + Don't call didPerformClientRedirect or didPerformServerRedirect when source or destination URL string > > + is empty or null. > > If the bug title described an actual problem, your ChangeLog might become more informative.
Added some more detail to the ChangeLog.
Brian Weinstein
Comment 4
2011-09-08 15:20:23 PDT
Created
attachment 106801
[details]
[PATCH] Fix + Test + Better ChangeLog
Brian Weinstein
Comment 5
2011-09-08 15:44:37 PDT
Landed in
r94812
.
Adam Roben (:aroben)
Comment 6
2011-09-08 16:42:17 PDT
Comment on
attachment 106801
[details]
[PATCH] Fix + Test + Better ChangeLog View in context:
https://bugs.webkit.org/attachment.cgi?id=106801&action=review
> Source/WebKit2/ChangeLog:3 > + WebKit2: Assertion when calling didPerform*Redirect on null source/destination URL string
It would be even better to describe this in terms of what a client app does that results in the assertion.
> Source/WebKit2/ChangeLog:11 > + Don't call didPerformClientRedirect or didPerformServerRedirect when source or destination URL string > + is empty or null. > + > + If we call didPerformClientRedirect or didPerformServerRedirect when the source or destination is null, > + it causes an assert in WKURLCF::WKURLCopyCFURL when we try to convert the WKURLRef into a CFURLRef.
This still doesn't explain why it's OK not to call the callbacks.
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