Closed Bug 1312801 Opened 8 years ago Closed 8 years ago

Navigating to about:srcdoc throws a "Firefox cannot open the page" alert

Categories

(Firefox for iOS :: Browser, defect, P1)

Other
iOS
defect

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 6.0+ ---

People

(Reporter: st3fan, Assigned: st3fan)

Details

(Whiteboard: [MobileAS])

Attachments

(1 file)

http://mobile.nytimes.com/2016/09/29/technology/yahoo-data-breach-hacking.html "Firefox cannot open the page - Firefox cannot open the page because it has an invalid address." I put a breakpoint in BrowserViewController.webView(webView:, decidePolicyForNavigationAction:, decisionHandler:) and it looks like we have some new code in there that shows this alert if openURL() fails. This was done as part of bug 1212472 In this case of mobile.nyt.com the URL being passed to openURL is "about:docsrc". I am not entirely sure what that means but maybe we should do something similar that we do for about:blank URLs. We have this at the first check in the handler: // Fixes 1261457 - Rich text editor fails because requests to about:blank are blocked if url.scheme == "about" && url.resourceSpecifier == "blank" { decisionHandler(WKNavigationActionPolicy.Allow) return } This is pretty annoying so I am marking this as tracking 6.0+ already.
Summary: Browsing mobile.nytimes.com throws a Firefox cannot open the page alert → Navigating to about:docsrc throws a "Firefox cannot open the page" alert
Summary: Navigating to about:docsrc throws a "Firefox cannot open the page" alert → Navigating to about:srcdoc throws a "Firefox cannot open the page" alert
about:srcdoc - not about:docsrc
This patch passes `about:srcdoc` URLs to WebKit instead if trying to handle it within the app and eventually passing them to `openURL()`.
Attachment #8804364 - Flags: review?(bnicholson)
Status: NEW → ASSIGNED
Attachment #8804364 - Flags: review?(bnicholson) → review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Priority: P2 → P1
Whiteboard: [MobileAS]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: