Skip to content

Commit

Permalink
core: remove references to Opera
Browse files Browse the repository at this point in the history
  • Loading branch information
andreastt committed Feb 28, 2015
1 parent af8b8ee commit 72ef60d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion javascript/selenium-core/SeleniumLog.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}

function addChangeListener(element) {
if (window.addEventListener && !window.opera)
if (window.addEventListener)
element.addEventListener("click", changeHandler, true);
else if (window.attachEvent)
element.attachEvent("onclick", changeHandler);
Expand Down
7 changes: 1 addition & 6 deletions javascript/selenium-core/scripts/htmlutils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011 Software Freedom Conservancy
* Copyright 2011-2015 Software Freedom Conservancy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -98,10 +98,6 @@ function elementGetStyle(element, style) {
}
}

/** DGF necessary?
if (window.opera && ['left', 'top', 'right', 'bottom'].include(style))
if (Element.getStyle(element, 'position') == 'static') value = 'auto'; */

return value == 'auto' ? null : value;
}

Expand Down Expand Up @@ -3306,7 +3302,6 @@ jQuery.extend({
ua = ua.toLowerCase();

var match = /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
/(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) ||
/(msie) ([\w.]+)/.exec( ua ) ||
!/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) ||
[];
Expand Down
9 changes: 1 addition & 8 deletions javascript/selenium-core/scripts/selenium-browserdetect.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2011 Software Freedom Conservancy
* Copyright 2011-2015 Software Freedom Conservancy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -31,12 +31,6 @@ var BrowserVersion = function() {
if (navigator.userAgent.indexOf('Windows NT 6') != -1) {
this.isVista = true;
}

if (window.opera != null) {
this.browser = BrowserVersion.OPERA;
this.isOpera = true;
return;
}

var _getQueryParameter = function(searchKey) {
var str = location.search.substr(1);
Expand Down Expand Up @@ -154,7 +148,6 @@ var BrowserVersion = function() {
this.browser = BrowserVersion.UNKNOWN;
};

BrowserVersion.OPERA = "Opera";
BrowserVersion.IE = "IE";
BrowserVersion.KONQUEROR = "Konqueror";
BrowserVersion.SAFARI = "Safari";
Expand Down

0 comments on commit 72ef60d

Please sign in to comment.