formally remove IE9 support

This commit is contained in:
Jeff Atwood 2016-01-02 23:49:52 -08:00
parent 3251bcb405
commit e1f90d12f1
9 changed files with 10 additions and 38 deletions

View File

@ -22,9 +22,9 @@ Browse [lots more notable Discourse instances](http://www.discourse.org/faq/cust
## Development
1. If you're **brand new to Ruby and Rails**, please see [**Discourse as Your First Rails App**](http://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/) or our [**Discourse Vagrant Developer Guide**](docs/VAGRANT.md), which includes a development environment in a virtual machine.
1. If you're **brand new to Ruby and Rails**, please see [**Discourse as Your First Rails App**](http://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/) or our [**Discourse Vagrant Developer Guide**](docs/VAGRANT.md), which includes a development environment in a virtual machine.
2. If you're familiar with how Rails works and are comfortable setting up your own environment, use our [**Discourse Advanced Developer Guide**](docs/DEVELOPER-ADVANCED.md).
2. If you're familiar with how Rails works and are comfortable setting up your own environment, use our [**Discourse Advanced Developer Guide**](docs/DEVELOPER-ADVANCED.md).
Before you get started, ensure you have the following minimum versions: [Ruby 2.0.0+](http://www.ruby-lang.org/en/downloads/), [PostgreSQL 9.3+](http://www.postgresql.org/download/), [Redis 2.6+](http://redis.io/download). If you're having trouble, please see our [**TROUBLESHOOTING GUIDE**](docs/TROUBLESHOOTING.md) first!
@ -40,13 +40,11 @@ Discourse is built for the *next* 10 years of the Internet, so our requirements
| Browsers | Tablets | Smartphones |
| -------- | ------- | ----------- |
| Safari 5.1+| iPad 2+ | iOS 7+ |
| Safari 5.1+| iPad 2+ | iOS 7+ |
| Google Chrome 23+ | Android 4.1+ | Android 4.1+ |
| Internet Explorer 10+ | Windows 8 | Windows Phone 8 |
| Firefox 16+ | |
Internet Explorer 9.0 will no longer be supported in 2016.
## Built With
- [Ruby on Rails](https://github.com/rails/rails) — Our back end API is a Rails app. It responds to requests RESTfully in JSON.

View File

@ -1,10 +0,0 @@
export default {
name: 'ie9-hacks',
initialize: function() {
if (!window) { return; }
// IE9 does not support a console object unless the developer tools are open
if (!window.console) { window.console = {}; }
if (!window.console.log) { window.console.log = Ember.K; }
}
};

View File

@ -89,7 +89,7 @@ export function cleanDOM() {
// Remove any link focus
// NOTE: the '.not("body")' is here to prevent a bug in IE10 on Win7
// cf. https://stackoverflow.com/questions/5657371/ie9-window-loses-focus-due-to-jquery-mobile
// cf. https://stackoverflow.com/questions/5657371
$(document.activeElement).not("body").not(".no-blur").blur();
Discourse.set('notifyCount',0);

View File

@ -101,15 +101,8 @@
background-color: blend-primary-secondary(5%);
}
// We definately need -webkit for latest iPhone and Safari
// When we deprecate IE9 we should clean up just to have webkit and non prefixed
// ms is left around for ie9
// moz is for firefox 15 (do we even work with that?)
// -o would be for opera 11.5
// We still need -webkit for latest iPhone and Safari
@mixin transform($transforms) {
-o-transform: $transforms;
-moz-transform: $transforms;
-ms-transform: $transforms;
-webkit-transform: $transforms;
transform: $transforms;
transform: $transforms;
}

View File

@ -109,9 +109,6 @@
width: calc(50% - 65px);
}
// hide cancel upload link on IE9 (not supported)
.ie9 #cancel-file-upload { display: none; }
// only disabled when the device is touch-only
.touch.mobile-device #reply-control.open .grippie {
display: none;

View File

@ -9,9 +9,6 @@ class UploadsController < ApplicationController
client_id = params[:client_id]
synchronous = is_api? && params[:synchronous]
# HACK FOR IE9 to prevent the "download dialog"
response.headers["Content-Type"] = "text/plain" if request.user_agent =~ /MSIE 9/
if type == "avatar"
if SiteSetting.sso_overrides_avatar || !SiteSetting.allow_uploaded_avatars
return render json: failed_json, status: 422

View File

@ -1,6 +1,5 @@
<!DOCTYPE html>
<!--[if IE 9]><html lang="<%= SiteSetting.default_locale %>" class="ie9 <%= html_classes %>"><![endif]-->
<!--[if (!IE 9) | (!IE)]><!--><html lang="<%= SiteSetting.default_locale %>" class="<%= html_classes %>"><!--<![endif]-->
<html lang="<%= SiteSetting.default_locale %>" class="<%= html_classes %>">
<head>
<meta charset="utf-8">
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
@ -60,8 +59,6 @@
</footer>
</noscript>
<!--[if IE 9]><script type="text/javascript">ie = "new";</script><![endif]-->
<%- unless customization_disabled? || loading_admin? %>
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
<%- end %>

View File

@ -2,7 +2,7 @@
HTML 5.1 `<details>` polyfill for [Discourse](https://www.discourse.org).
NOTE: Does not work on IE9.
NOTE: Does not work on IE9, but we don't support IE9 as of Jan 1 2016.
## Usage

View File

@ -17,7 +17,7 @@ var $buo = function() {
badAndroid = true;
}
// sam: my main concern here is mobile, but its an outlier, for now we support ie9, set conditionally and stuff with pushState
// sam: my main concern here is mobile, but its an outlier, for now we support ie10, set conditionally and stuff with pushState
if (window.ie === "new" || (window.history && window.history.pushState && !badAndroid)) {
return;
}
@ -62,4 +62,4 @@ var $buo = function() {
$bu=$buo();
})(this);
})(this);