Steps to Reproduce
- Open the developer console
- Visit a user page on the mobile site with the MinervaNeue skin. E.g., https://en.m.wikipedia.beta.wmflabs.org/wiki/User:Teststephen?debug=true.
- Tap the edit pencil
- Tap the close cross
Note: schema.EditAttemptStep is deprecated.
mf.schemaEditAttemptStep: Unrecognized action abort computeDuration @ schemaEditAttemptStep.js?026db:84 (anonymous) @ schemaEditAttemptStep.js?026db:99 handler @ mediawiki.base.js?80f9f:333 fire @ jquery.js?6a07d:3268 fireWith @ jquery.js?6a07d:3398 fire @ jquery.js?6a07d:3406 mw.track @ mediawiki.base.js?80f9f:309 log @ EditorOverlayBase.js?5fee0:176 onExitClick @ EditorOverlayBase.js?5fee0:341 dispatch @ jquery.js?6a07d:5183 elemData.handle @ jquery.js?6a07d:4991
... function computeDuration( action, event, timeStamp ) { // This is duplicated from the VisualEditor extension // (ve.init.mw.trackSubscriber.js). Changes to this should be kept in // sync with that file, so the data remains consistent. if ( event.timing !== undefined ) { return event.timing; } switch ( action ) { case 'ready': return timeStamp - timing.init; case 'loaded': return timeStamp - timing.init; case 'saveIntent': return timeStamp - timing.ready; case 'saveAttempt': return timeStamp - timing.saveIntent; case 'saveSuccess': case 'saveFailure': // HERE BE DRAGONS: the caller must compute these themselves // for sensible results. Deliberately sabotage any attempts to // use the default by returning -1 mw.log.warn( 'mf.schemaEditAttemptStep: Do not rely on default timing value for saveSuccess/saveFailure' ); return -1; case 'abort': switch ( event.type ) { case 'preinit': return timeStamp - timing.init; case 'nochange': case 'switchwith': case 'switchwithout': case 'switchnochange': case 'abandon': return timeStamp - timing.ready; case 'abandonMidsave': return timeStamp - timing.saveAttempt; } } mw.log.warn( 'mf.schemaEditAttemptStep: Unrecognized action', action ); return -1; } ...
abort_mechanism: "cancel" abort_type: "nochange" action: "abort" editing_session_id: "6acfc0f1bbffa8edceba" editor_interface: "wikitext" ^-- no type!
Expected Results
- A silent successful event is logged
Actual Results
- The event appears to be missing an expected type property and logging seems to fail
Environments Observed
- English beta cluster
Browser Version
- Chrome v71.0.3578.57
OS Version
- Chrome OS v71.0.3578.57
Device Model
- Pixel Slate
Device Language
- English