Summary: | [Qt] QML WebView has no way of jumping to an anchor | ||
---|---|---|---|
Product: | WebKit | Reporter: | Henrik Hartz <henrik.hartz> |
Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | akos, benjamin, cmarcelo, henrik.hartz, kenneth |
Priority: | P2 | Keywords: | Qt, QtTriaged |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Description
Henrik Hartz
2010-10-27 04:52:45 PDT
Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bugs here (missing Qt keyword). We need a bunch of new APIs in QGraphicsWebView to properly support mobile content: -expose the real viewport/screen size the WebCore -scroll to position -touch support -viewport metatag I think the current element exposed to QML will not do the job for general web content. It should probably be limited to controlled content/hybrid. An element with its own viewport and the complete support of mobile model would be better IMHO. Can you think of use cases for using the flickable with WebKit for rendering general web content? (In reply to comment #1) > Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bugs here (missing Qt keyword). > > We need a bunch of new APIs in QGraphicsWebView to properly support mobile content: > -expose the real viewport/screen size the WebCore > -scroll to position > -touch support > -viewport metatag > > I think the current element exposed to QML will not do the job for general web content. It should probably be limited to controlled content/hybrid. An element with its own viewport and the complete support of mobile model would be better IMHO. > > Can you think of use cases for using the flickable with WebKit for rendering general web content? I guess it would be ok to support the programmatic scrolling/anchors. All that is needed is to call setActualVisibleContentsRect and then listen to the scrollRequested signal. I've run into this problem while porting an e-book reader to QML/WebView. The EPUB books consist of a bunch of HTML files + a chapter list. The chapter items are URLs with optional fragment part, so they can point to any location in the HTML files. That would be my use case for rendering general web content with WebView. This is supported by our N9 browser and should be easy to move to trunk. === Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines. |