Closed Bug 1270083 Opened 8 years ago Closed 8 years ago

HashChangeEvent members are not nullable

Categories

(Core :: DOM: Events, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: annevk, Assigned: ben.tian)

Details

(Whiteboard: btpp-close [tw-dom])

Attachments

(1 file)

It seems this has been a longstanding issue with the standard that only ended up being copied by Firefox. See https://github.com/whatwg/html/issues/1178 for more context.
How urgently do we need to fix this, Anne?
Flags: needinfo?(annevk)
Whiteboard: btpp-followup-2016-05-11
No rush, super trivial though.
Flags: needinfo?(annevk)
Whiteboard: btpp-followup-2016-05-11 → btpp-backlog [tw-dom]
Anne,

I'm confused. What should we do on gecko? The standard [1] says HashChangeEvent members are default to empty string and so does gecko implementation [2].

[1] https://html.spec.whatwg.org/multipage/browsers.html#the-hashchangeevent-interface
[2] http://mxr.mozilla.org/mozilla-central/source/dom/webidl/HashChangeEvent.webidl
Flags: needinfo?(annevk)
Sorry for the vague description. "DOMString?" needs to become "DOMString" throughout (so four times). We could also change it to "USVString" but I'm not sure that's needed as part of this bug.
Flags: needinfo?(annevk)
Ah I see. I was focusing on HashChangeEventInit mentioned in comment 0 link.

I'll work on this bug.
Assignee: nobody → btian
Whiteboard: btpp-backlog [tw-dom] → btpp-active [tw-dom]
Comment on attachment 8749589 [details] [diff] [review]
[final] Patch 1: Make HashChangeEvent members non-nullable, r=khuey

Kyle,

Can you review my patch that makes HashChangeEvent members non-nullable per comment 0 and comment 4? The try result is in
https://treeherder.mozilla.org/#/jobs?repo=try&revision=66aba1f24246
Attachment #8749589 - Flags: review?(khuey)
Attachment #8749589 - Attachment description: Patch 1 (v1): Make HashChangeEvent members non-nullable → [final] Patch 1: Make HashChangeEvent members non-nullable, r=khuey
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/91d119eb3e94
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Whiteboard: btpp-active [tw-dom] → btpp-close [tw-dom]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: