browser_window: Don't use the fetch parameters for page info

In order to cope with redirects properly, use the content's URL
not the fetch parameters.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-12-01 21:56:09 +00:00
parent 614a563d2f
commit b9cb2cab0b
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74

View File

@ -4652,13 +4652,13 @@ browser_window_page_info_state browser_window_get_page_info_state(
assert(bw != NULL); assert(bw != NULL);
/* Do we have any parameters? If not -- UNKNOWN */ /* Do we have any content? If not -- UNKNOWN */
if (bw->current_parameters.url == NULL || if (bw->current_content == NULL) {
bw->current_content == NULL) {
return PAGE_STATE_UNKNOWN; return PAGE_STATE_UNKNOWN;
} }
scheme = nsurl_get_component(bw->current_parameters.url, NSURL_SCHEME); scheme = nsurl_get_component(
hlcache_handle_get_url(bw->current_content), NSURL_SCHEME);
/* Is this an internal scheme? */ /* Is this an internal scheme? */
if ((lwc_string_isequal(scheme, corestring_lwc_about, if ((lwc_string_isequal(scheme, corestring_lwc_about,