Add a ResourceRequestBase::TargetType for XMLHttpRequests. This is needed by inspector to distinguish XHR network callbacks early.
Created attachment 94999 [details] Patch
Comment on attachment 94999 [details] Patch TargetType is going away from ResourceRequestBase, see bug 48483. Some other solution will be needed for Web Inspector.
(I really hope that Inspector hasn't started using this field yet... It would be so much harder to move to a correct place then.)
(In reply to comment #3) > (I really hope that Inspector hasn't started using this field yet... It would be so much harder to move to a correct place then.) No, inspector does not use it yet. This bug could be closed then. Maybe it's worth adding a comment to ResourceRequestBase saying that this field is not for use in WebCore?
> Maybe it's worth adding a comment to ResourceRequestBase saying that this field is not for use in WebCore? Yes! I've previously added a comment to the header, but it turned out to be insufficiently clear or noticeable. // FIXME: This should be moved out of ResourceRequestBase, <https://bugs.webkit.org/show_bug.cgi?id=48483>.
*** Bug 65544 has been marked as a duplicate of this bug. ***