Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore($sniffer): Remove remnants of separate documentMode handling #9496

Closed
wants to merge 1 commit into from

Conversation

mgol
Copy link
Member

@mgol mgol commented Oct 8, 2014

Since msie is now set to document.documentMode, it's not necessary to keep
the documentMode in a separate property.

@@ -731,7 +731,7 @@ function $SceProvider() {
$parse, $sniffer, $sceDelegate) {
// Prereq: Ensure that we're not running in IE8 quirks mode. In that mode, IE allows
// the "expression(javascript expression)" syntax which is insecure.
if (enabled && $sniffer.msie && $sniffer.msieDocumentMode < 8) {
if (enabled && $sniffer.msie < 8) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably be completely removed, as per the above comment it's to support "IE8 quirks mode".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This applies to IE9/IE10/IE11 quirks mode AFAIK. Perhaps I should just change the comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the comment

@mgol
Copy link
Member Author

mgol commented Oct 8, 2014

The only failing tests concern hashchange and I don't want to spend time on them if #9497 is going to land so I'll wait for now.

@IgorMinar
Copy link
Contributor

lgtm

@mgol mgol force-pushed the oldie-sniffer branch 2 times, most recently from 57694e8 to 42ed9e7 Compare October 8, 2014 17:23
mgol added a commit to mgol/angular.js that referenced this pull request Oct 8, 2014
Since msie is now set to document.documentMode, it's not necessary to keep
the documentMode in a separate property.

Closes angulargh-9496
mgol added a commit to mgol/angular.js that referenced this pull request Oct 8, 2014
Since msie is now set to document.documentMode, it's not necessary to keep
the documentMode in a separate property.

Closes angulargh-9496
mgol added a commit to mgol/angular.js that referenced this pull request Oct 8, 2014
Since msie is now set to document.documentMode, it's not necessary to keep
the documentMode in a separate property.

Also, msie is a variable global to Angular source so there's no need to
replicate it in $sniffer.

Closes angulargh-9496
mgol added a commit to mgol/angular.js that referenced this pull request Oct 8, 2014
Since msie is now set to document.documentMode, it's not necessary to keep
the documentMode in a separate property.

Also, msie is a variable global to Angular source so there's no need to
replicate it in $sniffer.

Closes angulargh-9496
@jeffbcross jeffbcross force-pushed the master branch 2 times, most recently from abdaab7 to 30996f8 Compare October 8, 2014 19:47
mgol added a commit to mgol/angular.js that referenced this pull request Oct 8, 2014
Since msie is now set to document.documentMode, it's not necessary to keep
the documentMode in a separate property.

Also, msie is a variable global to Angular source so there's no need to
replicate it in $sniffer.

Closes angulargh-9496
Since msie is now set to document.documentMode, it's not necessary to keep
the documentMode in a separate property.

Also, msie is a variable global to Angular source so there's no need to
replicate it in $sniffer.

Closes angulargh-9496
@mgol mgol closed this in 64241a5 Oct 9, 2014
@btford btford removed the In Progress label Oct 9, 2014
@mgol mgol deleted the oldie-sniffer branch October 9, 2014 21:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants