NappUI icon indicating copy to clipboard operation
NappUI copied to clipboard

Custom header support breaks iframes

Open milgner opened this issue 9 years ago • 1 comments

Commit 3633dbd broke handling of iframes. I'm not sure whether it's in remote content only, but assume it's not.

It would first navigate to 'about:blank' and then to the URL of the iframe, showing only that one. Reverting the commit fixed the problem for us. See 0b36673832e56b6eeed06f4edaab3588406b13d3.

Encountering an iframe will also trigger shouldStartLoadWithRequest in the webview delegate and I guess that this line then causes the problem. But since I have zero experience with iOS development and only passing familiarity with Objective C I'd like to leave finding a fix for this to someone who actually knows what they're doing :smirk:

milgner avatar Apr 23 '15 09:04 milgner

Edit: I was right the first time, just accidentally grabbed a device with a wrong build in the meantime.

~~Looks like my optimism was a bit premature... The problem still occurs even after reverting the commit. I'll investigate a bit further, trying to remove the custom shouldStartLoadWithRequest altogether.~~

milgner avatar Apr 23 '15 09:04 milgner