Skip to content

Commit 70e3d54

Browse files
Renaming variable XPCNativeWrapper to xpcNativeWrapper wherever used by (2017+) Selenium IDE.
1 parent dd403a5 commit 70e3d54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

javascript/selenium-atoms/events.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ core.events.shiftKeyDown_ = false;
4444
/**
4545
* @type {function(*): !Object}
4646
*/
47-
var XPCNativeWrapper = XPCNativeWrapper || function(_) {};
47+
var xpcNativeWrapper = XPCNativeWrapper || function(_) {};
4848

4949
core.events.getEventFactory_ = function(eventName) {
5050
var eventNameForFactory = '';
@@ -181,7 +181,7 @@ core.events.replaceText_ = function(element, value) {
181181
bot.userAgent.isEngineVersion(8)) {
182182
// Firefox 8+ fails with a security error if typing into (XPCNativeWrapper)
183183
// unwrapped objects
184-
XPCNativeWrapper(element).value = actualValue;
184+
xpcNativeWrapper(element).value = actualValue;
185185
} else {
186186
element.value = actualValue;
187187
}

javascript/selenium-atoms/firefox-chrome.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ core.firefox.unwrap = function(thing) {
7171

7272
// unwrap is not available on older branches (3.5 and 3.6) - Bug 533596
7373
try {
74-
var isWrapper = thing == XPCNativeWrapper(thing);
74+
var isWrapper = thing == xpcNativeWrapper(thing);
7575
if (isWrapper) {
76-
var unwrapped = XPCNativeWrapper.unwrap(thing);
76+
var unwrapped = xpcNativeWrapper.unwrap(thing);
7777
var toReturn = !!unwrapped ? unwrapped : thing;
7878
toReturn.__fxdriver_unwrapped = true;
7979
return toReturn;

0 commit comments

Comments
 (0)