Opened 8 years ago
Last modified 13 months ago
#13550 new bug
WebPositive history is not updated in certain cases
Reported by: | accessays | Owned by: | pulkomandy |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Web Kit | Version: | R1/Development |
Keywords: | url, webpositive, history, navigation | Cc: | accessays |
Blocked By: | Blocking: | ||
Platform: | x86 |
Description
- Open WebPositive
- Navigate to https://github.com/haiku/haiku
- Click on any folder (e. g. 3rdparty, src, etc.)
- Observe the URL input and navigation buttons not updating
Tested with hrev52001 and hrev52003, gcc2 hybrid.
It seems like Load... functions never get called in BrowserWindow.
Attachments (2)
Change History (13)
comment:1 by , 8 years ago
by , 8 years ago
Attachment: | 0001-WebPositive-fixed-a-lot-about-how-navigation-works-m.patch added |
---|
Patch #1
comment:2 by , 8 years ago
patch: | 0 → 1 |
---|
comment:3 by , 8 years ago
Here is a patch that seems to fix that issue, as well as several other issues. I suggest trying to browse the web, especially GitHub, and some websites that do redirects (or just open a simple HTML file with JS redirect in it) with current Web+ and the patched version to really see the difference.
follow-up: 5 comment:4 by , 8 years ago
The patch seems to remove your previous changes with regard to locking the URL bar and timeout on said locking. Is that intentional?
I'll need to review the other changes more carefully (probably this evening). I thought the WebKit engine would do most of the work on this, but I could be wrong.
comment:5 by , 8 years ago
Replying to pulkomandy:
The patch seems to remove your previous changes with regard to locking the URL bar and timeout on said locking. Is that intentional?
Yes, it is. This patch changes the way locking works - instead of a timeout it relies on checking whether the URL was actually changed by the user or not.
I thought the WebKit engine would do most of the work on this, but I could be wrong.
It also felt like it should be, but the original version sometimes messed up the navigation controls (i. e. go to YouTube, then click the YouTube logo again, and the stop icon will not become disabled)
follow-up: 7 comment:6 by , 8 years ago
Ok, I took a closer look at the patch. I think it goes the wrong way about this.
The idea is that WebKit should be handling all this stuff, and telling us what to do: should the stop button be enabled? Is there a new entry in the history, or is the load just a redirect of a previous request? etc.
The application should not get to handle the LOAD_DL_COMPLETED, LOAD_COMMITTED, etc messages by itself (it can do so, but only to handle other specific things - not the button states that are handled by WebKit). Likewise, calling ResendNotifications directly is not the right thing to do - this should be done on WebKit side.
The reason which makes this important is that WebPositive isn't the only browser using the API. In fact, the WebKit test suite is run with a smaller browser (called HaikuLauncher), and this should be kept behaving the same as the real Web+. Otherwise, the testsuite is not very useful.
So, your changes may be correct, but they should be implemented on WebKit side, at Source/WebKit/haiku/API/BrowserWindow.cpp . This way, everyone using WebKit will get a working stop button, not just Web+.
With regard to the changes about the URL locking, they look good, and I could apply just that part if it is split out of the patch file.
comment:7 by , 8 years ago
Replying to pulkomandy:
So, your changes may be correct, but they should be implemented on WebKit side, at Source/WebKit/haiku/API/BrowserWindow.cpp . This way, everyone using WebKit will get a working stop button, not just Web+.
I'll take a look into it.
With regard to the changes about the URL locking, they look good, and I could apply just that part if it is split out of the patch file.
Sure, new patch file provided.
by , 8 years ago
Attachment: | 0001-Fixed-again-the-way-URL-locking-works.patch added |
---|
comment:8 by , 6 years ago
patch: | 1 → 0 |
---|
comment:9 by , 6 years ago
patch: | 0 |
---|
Marking remaining patch as obsolete, the changes have been made on WebKit side.
comment:10 by , 4 years ago
Component: | Applications/WebPositive → Kits/Web Kit |
---|
comment:11 by , 13 months ago
Marking remaining patch as obsolete, the changes have been made on WebKit side.
It this issue resolved?
I will attempt to solve this myself.