Page MenuHomePhabricator

ApiSandbox doesn't work in older browsers: "history.pushState is not a function"
Closed, ResolvedPublic

Description

When I click the "make request" button, nothing happens. I get an error in web console:

history.pushState is not a function
https://test.wikipedia.org/w/static-1.21wmf11/extensions/ApiSandbox/modules/ext.apiSandbox.js
Line 789

Note, things up to that point work (selecting what type of request, etc) work

Tested on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110302 Iceweasel/3.5.16 (like Firefox/3.5.16)

Same symptoms on Google chrome 5.0.342.7 beta (Don't know if same exception, couldn't figure out how to get to the equivalent to the js console on chrome)

Yeah I know, my web browsers are a bit old.


Version: unspecified
Severity: normal

Details

Reference
bz45923

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:32 AM
bzimport set Reference to bz45923.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #0)

Yeah I know, my web browsers are a bit old.

Please try with a recent (supported) browser and report back. :)

(In reply to comment #2)

(In reply to comment #0)

Yeah I know, my web browsers are a bit old.

Please try with a recent (supported) browser and report back. :)

From https://www.mediawiki.org/wiki/Compatibility#Browser :

"Grade A" functionality is maintained for the following browser requirements:

Internet Explorer 9+
Firefox 3.6+
Safari 5.0+
Opera 11.6+
Chrome 17+

Internet Explorer 9 doesn't have history.pushState.

Change 103722 had a related patch set uploaded by MaxSem:
Check whether history.pushState is supported

https://gerrit.wikimedia.org/r/103722

Change 103722 merged by jenkins-bot:
Check whether history.pushState is supported

https://gerrit.wikimedia.org/r/103722