Skip to content

Commit 72ef60d

Browse files
committed
core: remove references to Opera
1 parent af8b8ee commit 72ef60d

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

javascript/selenium-core/SeleniumLog.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
function addChangeListener(element) {
37-
if (window.addEventListener && !window.opera)
37+
if (window.addEventListener)
3838
element.addEventListener("click", changeHandler, true);
3939
else if (window.attachEvent)
4040
element.attachEvent("onclick", changeHandler);

javascript/selenium-core/scripts/htmlutils.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011 Software Freedom Conservancy
2+
* Copyright 2011-2015 Software Freedom Conservancy
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -98,10 +98,6 @@ function elementGetStyle(element, style) {
9898
}
9999
}
100100

101-
/** DGF necessary?
102-
if (window.opera && ['left', 'top', 'right', 'bottom'].include(style))
103-
if (Element.getStyle(element, 'position') == 'static') value = 'auto'; */
104-
105101
return value == 'auto' ? null : value;
106102
}
107103

@@ -3306,7 +3302,6 @@ jQuery.extend({
33063302
ua = ua.toLowerCase();
33073303

33083304
var match = /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
3309-
/(opera)(?:.*version)?[ \/]([\w.]+)/.exec( ua ) ||
33103305
/(msie) ([\w.]+)/.exec( ua ) ||
33113306
!/compatible/.test( ua ) && /(mozilla)(?:.*? rv:([\w.]+))?/.exec( ua ) ||
33123307
[];

javascript/selenium-core/scripts/selenium-browserdetect.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2011 Software Freedom Conservancy
2+
* Copyright 2011-2015 Software Freedom Conservancy
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,12 +31,6 @@ var BrowserVersion = function() {
3131
if (navigator.userAgent.indexOf('Windows NT 6') != -1) {
3232
this.isVista = true;
3333
}
34-
35-
if (window.opera != null) {
36-
this.browser = BrowserVersion.OPERA;
37-
this.isOpera = true;
38-
return;
39-
}
4034

4135
var _getQueryParameter = function(searchKey) {
4236
var str = location.search.substr(1);
@@ -154,7 +148,6 @@ var BrowserVersion = function() {
154148
this.browser = BrowserVersion.UNKNOWN;
155149
};
156150

157-
BrowserVersion.OPERA = "Opera";
158151
BrowserVersion.IE = "IE";
159152
BrowserVersion.KONQUEROR = "Konqueror";
160153
BrowserVersion.SAFARI = "Safari";

0 commit comments

Comments
 (0)