Closed Bug 1263790 Opened 10 years ago Closed 10 years ago

Resource timing initiatorType should be "iframe" instead of "subdocument"

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

Details

(Whiteboard: btpp-active)

Attachments

(1 file, 1 obsolete file)

No description provided.
Comment on attachment 8740221 [details] [diff] [review] Resource timing initiatorType should be "iframe" instead of "subdocument" Won't this set initiatorType to "iframe" for a <frame> element, while per spec it should be "frame"? Please add a corresponding test.
Attachment #8740221 - Flags: review?(bzbarsky) → review-
Whiteboard: btpp-active
Attachment #8740221 - Attachment is obsolete: true
Comment on attachment 8740725 [details] [diff] [review] Resource timing initiatorType should be "iframe" instead of "subdocument" >+ nsContentUtils::ASCIIToLower(initType); You shouldn't need this. The case should be correct anyway. Also, you don't want the tagName. The spec says it should be the localName. So like so: if (frameElement) { timedChannel->SetInitiatorType(frameElement->LocalName()); } r=me with that. Thank you for adding the test, though it would be ever better if it were a web platform test, since this is not testing anything Gecko-specific.
Attachment #8740725 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: