Closed Bug 1114793 Opened 9 years ago Closed 9 years ago

Consider re-naming chrome window handle interactions for consistency

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla37

People

(Reporter: chmanchester, Assigned: chmanchester)

References

Details

(Keywords: pi-marionette-server)

Attachments

(1 file, 1 obsolete file)

      No description provided.
:whimboo from bug 941749:

Chris, one thing I noticed here is the different implementation as shown below:

>   2.275    "getCurrentWindowHandle":  MarionetteServerConnection.prototype.getWindowHandle,  // Selenium 2 compat
>   2.276 +  "getChromeWindowHandle": MarionetteServerConnection.prototype.getChromeWindowHandle,

Was there a reason not to use getCurrentChromeWindowHandle together with .current_chrome_window_handle? Was it just the length which let you do the shorter property name? .chrome_window_handle doesn't really tell that it is the one for the currently selected chrome window.
Blocks: 941749
/r/1657 - Bug 1114793 - Rename marionette's chrome_window_handle to current_chrome_window_handle.

Pull down this commit:

hg pull review -r e19acf0fe4d1065c0efed23e795795fb0aa3f4a2
Henrik asked that I look into this. Both he and David are on holiday. I don't think renaming this is necessary, but if it's requested I certainly don't have a problem with it.

ato, if you are around this week perhaps you could lend an opinion on this matter? Thanks!
(In reply to Chris Manchester [:chmanchester] from comment #4)
> Henrik asked that I look into this. Both he and David are on holiday. I
> don't think renaming this is necessary, but if it's requested I certainly
> don't have a problem with it.
> 
> ato, if you are around this week perhaps you could lend an opinion on this
> matter? Thanks!

What's the reason we couldn't use getCurrentWindowHandle for both content- and chrome context?
(In reply to Andreas Tolfsen (:ato) from comment #5)
> (In reply to Chris Manchester [:chmanchester] from comment #4)
> > Henrik asked that I look into this. Both he and David are on holiday. I
> > don't think renaming this is necessary, but if it's requested I certainly
> > don't have a problem with it.
> > 
> > ato, if you are around this week perhaps you could lend an opinion on this
> > matter? Thanks!
> 
> What's the reason we couldn't use getCurrentWindowHandle for both content-
> and chrome context?

This "chrome" windows are for OS level windows. We'd like to be able to track these as well as top level browsing contexts.
Personally I'm not in a position to justify this change. It's a simply RFE from my side to make the method names more consistent. So the final decision should be up to Andreas and David I assume.
Attachment #8540401 - Flags: review?(ato)
https://hg.mozilla.org/mozilla-central/rev/5da7240111cc
Assignee: nobody → cmanchester
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Attachment #8540401 - Attachment is obsolete: true
Attachment #8618966 - Flags: review+
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: