Skip to content

Commit

Permalink
Fix LOAD_START
Browse files Browse the repository at this point in the history
The URI is not yet available at this time. Both WebKit1 and WebKit2 send
this signal after data structures have been allocated for a load, but
before anything related to it has actually been done.
  • Loading branch information
mathstuf committed Jul 13, 2014
1 parent 158f847 commit ecf5bd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1293,8 +1293,9 @@ uzbl itself and will be emitted based on what is happening within uzbl-core.
* `NAVIGATION_STARTING <URI> <SRCFRAME> <DESTFRAME> <TYPE>`
- Sent when a main navigation is requested for a frame. See `scheme_handler`
for the types available.
* `LOAD_START <URI>`
- Sent when a main page navigation is started.
* `LOAD_START`
- Sent when a main page navigation is started. This is before WebKit even
looks at the URI, so the name, protocol, or port may still be invalid.
* `LOAD_REDIRECTED <URI>`
- Sent when the main page navigation has been redirected to a new URI.
* `LOAD_COMMIT <URI>`
Expand Down
3 changes: 2 additions & 1 deletion src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,8 @@ send_load_status (WebKitLoadStatus status, const gchar *uri)
#else
case WEBKIT_LOAD_PROVISIONAL:
#endif
event = LOAD_START;
uzbl_events_send (LOAD_START, NULL,
NULL);
break;
#ifdef USE_WEBKIT2
case WEBKIT_LOAD_REDIRECTED:
Expand Down

0 comments on commit ecf5bd8

Please sign in to comment.