Last modified: 2014-01-23 17:51:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47923, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45923 - ApiSandbox doesn't work in older browsers: "history.pushState is not a function"
ApiSandbox doesn't work in older browsers: "history.pushState is not a function"
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ApiSandbox (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-09 07:29 UTC by Bawolff (Brian Wolff)
Modified: 2014-01-23 17:51 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bawolff (Brian Wolff) 2013-03-09 07:29:53 UTC
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.
Comment 1 Alex Monk 2013-03-09 14:20:11 UTC
This function was introduced in HTML5 apparently: https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history#Adding_and_modifying_history_entries
I guess your browsers don't support it.
Comment 2 Andre Klapper 2013-03-11 10:18:28 UTC
(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. :)
Comment 3 Kevin Israel (PleaseStand) 2013-03-11 10:36:53 UTC
(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.
Comment 4 Gerrit Notification Bot 2013-12-25 21:24:08 UTC
Change 103722 had a related patch set uploaded by MaxSem:
Check whether history.pushState is supported

https://gerrit.wikimedia.org/r/103722
Comment 5 Gerrit Notification Bot 2014-01-08 23:33:57 UTC
Change 103722 merged by jenkins-bot:
Check whether history.pushState is supported

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links