We can't look at main frame URL when loading in main frame, because it comes from an unrelated previous page. And when loading into a new page, it's just empty. <rdar://problem/16532063>
Regression tests didn't detect this, because they all test appcache in subframes.
Created attachment 228660 [details] proposed fix
Created attachment 228661 [details] with release build fix
Comment on attachment 228661 [details] with release build fix Can we add a regression test so this is caught in the future?
Comment on attachment 228661 [details] with release build fix I couldn't make a test quickly enough, it would have to be somewhat tricky.
Comment on attachment 228661 [details] with release build fix Clearing flags on attachment: 228661 Committed r166844: <http://trac.webkit.org/changeset/166844>
All reviewed patches have been landed. Closing bug.