Open Bug 381744 Opened 17 years ago Updated 2 years ago

Add a setOverrideCursor method to nsIDOMChromeWindow

Categories

(Core :: DOM: Core & HTML, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: jwatt, Unassigned)

References

Details

Attachments

(1 file)

Attached patch patch - needs some cleanup (deleted) — Splinter Review
At Joost we have added a showCursor(boolean) method on nsIDOMChromeWindow to allow the mouse cursor to be hidden when our app is in fullscreen mode regardless of which element the cursor is over. I think this functionality could be useful for other XULRunner apps and Mozilla extensions such as Daniel Glazman's FullerScreen when used to run an S5 presentation, say. I think it should also be possible to use this functionality to implement the CSS property value cursor:none (bug 346690). Attached is the current patch from our tree. It probably needs some work to be acceptable here, but I thought I'd attach it now to avoid duplication of work.
Seems to me like nsIDOMChromeWindow.setCursor("none") should be sufficient as an API here, once cursor:none is implemented.
So cursor:none works now. I guess this is not needed anymore? Except the fact that bug 309547 needs to be fixed, perhaps?
It's not generally possible to use CSS to set a window-wide cursor that will override the cursor style for the whole document regardless of where the cursor is on it. You'd have to make sure your cursor:none rule had higher specificity than any other cursor rule for *every* element in the document. Not really practical. Perhaps a better name would be nsIDOMChromeWindow.setOverrideCursor() to make it clear that it's for overriding the cursor style set by any of the window's contents.
Assignee: jwatt → nobody
Summary: Add a showCursor method to nsIDOMChromeWindow → Add a setOverrideCursor method to nsIDOMChromeWindow
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: