Bug 191284

Summary: [iOS] REGRESSION: Fragment navigation inside cross-origin frameset frame does not work
Product: WebKit Reporter: Daniel Bates <dbates>
Component: FramesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar, Regression
Version: WebKit Nightly Build   
Hardware: iPhone / iPad   
OS: iOS 12   
URL: http://www.microconcepts.com.au/italkaussie/data/italkaussiehelp-en.htm
See Also: https://bugs.webkit.org/show_bug.cgi?id=148690
https://bugs.webkit.org/show_bug.cgi?id=191289
Attachments:
Description Flags
LayoutTest none

Description Daniel Bates 2018-11-05 15:04:40 PST
Seen on iOS 12.

Perform the following:

1. Visit <http://www.microconcepts.com.au/italkaussie/data/italkaussiehelp-en.htm>.
2. Click one of the list item hyperlinks at the top of the page, e.g. Sounds.

Then nothing happens. But the page should have scrolled to section Sounds.
Comment 1 Daniel Bates 2018-11-05 15:04:48 PST
<rdar://problem/12344117>
Comment 2 Daniel Bates 2018-11-05 15:07:07 PST
Notice that the web page with the hyperlinks is in a frame loaded in a frames. If you visit the page directly <http://users.tpg.com.au/mpinnuck/iTalkAussie/Data/iTalkAussieHelp-en.htm> and click one of the hyperlinks then we scroll to the section as expected. So, we do not seem to scroll to anchors in a framed page. And this behavior is consistent with the failure of  test http/tests/navigation/anchor-frames-same-origin.html on iOS.
Comment 3 Daniel Bates 2018-11-05 15:09:28 PST
This regressed in iOS 6.
Comment 4 Daniel Bates 2018-11-05 16:04:42 PST
(In reply to Daniel Bates from comment #2)
> Notice that the web page with the hyperlinks is in a frame loaded in a
> frames.[...]

*frameset

> And this behavior
> is consistent with the failure of  test
> http/tests/navigation/anchor-frames-same-origin.html on iOS.

Disregard this remark.
Comment 5 Daniel Bates 2018-11-05 17:15:36 PST
Created attachment 353931 [details]
LayoutTest
Comment 6 Simon Fraser (smfr) 2018-11-05 22:00:58 PST
Pretty sure this is about the "if (delegatesScrolling())" checks in coordinate conversion methods. See bug 164512, bug 176451 etc.
Comment 7 Daniel Bates 2018-11-05 23:28:47 PST
Comment on attachment 353931 [details]
LayoutTest

View in context: https://bugs.webkit.org/attachment.cgi?id=353931&action=review

> LayoutTests/http/tests/navigation/frameset-cross-origin-frame-scrolls-to-anchor.html:13
> +<frame src="http://127.0.0.1:8000/navigation/resources/frameset-scroll-to-anchor.html">

127.0.0.1 should be localhost