Closed Bug 1358893 Opened 8 years ago Closed 8 years ago

Stop using nsDocument::CreateEvent("beforeunloadevent") internally

Categories

(Core :: DOM: Events, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: ayg, Assigned: ayg)

References

Details

Attachments

(1 file)

We're trying to see if 

Chrome says they see almost zero usage of document.createEvent("beforeunloadevent"), so they're willing to drop support:

https://github.com/whatwg/dom/issues/362#issuecomment-295723397

We can't assess our usage, because we use it internally from C++ code instead of directly constructing the event.  We should stop doing that so we can figure out if webpages are actually using this event.
Comment on attachment 8860749 [details]
Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally;

Requesting data review.
Attachment #8860749 - Flags: feedback?(benjamin)
Comment on attachment 8860749 [details]
Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally;

https://reviewboard.mozilla.org/r/132676/#review135520
Attachment #8860749 - Flags: review?(bugs) → review+
Attachment #8860749 - Flags: feedback?(benjamin)
Comment on attachment 8860749 [details]
Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally;

Apparently I didn't actually try to compile this locally.  This makes me sad.  Sorry for the spam, but MozReview doesn't carry forward feedback flags.
Attachment #8860749 - Flags: feedback?(benjamin)
Comment on attachment 8860749 [details]
Bug 1358893 - Stop using document.createEvent("beforeunloadevent") internally;

data-r=me
Attachment #8860749 - Flags: feedback?(benjamin) → feedback+
Pushed by ayg@aryeh.name:
https://hg.mozilla.org/integration/autoland/rev/eb2b2dec98d1
Stop using document.createEvent("beforeunloadevent") internally; r=smaug
https://hg.mozilla.org/mozilla-central/rev/eb2b2dec98d1
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: