mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
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:
parent
614a563d2f
commit
b9cb2cab0b
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user