Open
Bug 1192105
Opened 10 years ago
Updated 3 years ago
alwaysRaised feature from chrome/privelaged code should make it very much raised
Categories
(Core :: Widget, enhancement)
Tracking
()
UNCONFIRMED
People
(Reporter: noitidart, Unassigned)
Details
(Whiteboard: tpi:-)
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150730171029
Steps to reproduce:
I'm trying to overlay a window over absolutely everything.
The window is not always on top on none of the OS's I was having to use jsctypes to actually make the window on top of everything. On Linux I was doing XSendEvent, on Windows I was doing SetWindowPos, and on OSX I did setLevel to floating.
A note on OSX though, I cannot get it to work prefectly because i have to tap into awakeFromNib or windowDidLoad but I can't do that early enough from js-ctypes, so we have to change it to do this. So the window appears on all desktops via setCollectionBehavior. http://stackoverflow.com/questions/31866399/setcollectionbehavior-not-taking-affect-on-already-opened-window
Also on Linux i do set atom sticky however it is not appearing on all desktops, Im guessing its the same issue where it needs to happen on window creation.
Is it possible to get a superAlwaysRaised feature? or make alwaysRaised work like this? Im not sure if alwaysRaised is broken but i think it might be
alwaysRaised is a feature of a window: https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/Tutorial/Features_of_a_Window
I set it from privelaged code like this:
Services.ww.openWindow(null, core.addon.path.content + 'panel.xul?iMon=' + i, '_blank', 'chrome,alwaysRaised,width=1,height=1,screenX=1,screenY=1', null);
Comment 2•10 years ago
|
||
I believe this is a duplicate of bug 453274?
This post also says https://groups.google.com/forum/#!topic/mozilla.dev.extensions/Bexb4CA2B6Y
Generally it is enough to do "chrome,popup" to get a system top-most
popup (persistent btw) IIRC
However I'm not quite sure that all platforms will support this
(nsIAlertsService on FX2 is not available for e.g. mac and older linux;
again IIRC).
PS why are you filing all your bugs in Firefox:Untriaged? You have much better chance of someone acting on the bug if you file it in the correct component and CC the right people...
Component: Untriaged → Widget
Flags: needinfo?(noitidart)
Product: Firefox → Core
Thanks so much Nickolay for your feedback and needrequest on me. Ill try chrome,popup right now, this is for my addon NativeShot, it draws a canvas in a window over everything but im having issues because its not covering the dock area. If you can please try out the addon and provide any feedback tthat woudl be awesome.
https://addons.mozilla.org/en-US/firefox/addon/nativeshot/
I use nsIAlertsService for notificaitons.
I'm a noob at filing bugs Ill make sure to set a topic on the bugs.
Flags: needinfo?(noitidart)
(In reply to Nickolay_Ponomarev from comment #2)
> I believe this is a duplicate of bug 453274?
>
> This post also says
> https://groups.google.com/forum/#!topic/mozilla.dev.extensions/Bexb4CA2B6Y
> Generally it is enough to do "chrome,popup" to get a system top-most
> popup (persistent btw) IIRC
> However I'm not quite sure that all platforms will support this
> (nsIAlertsService on FX2 is not available for e.g. mac and older linux;
> again IIRC).
>
>
> PS why are you filing all your bugs in Firefox:Untriaged? You have much
> better chance of someone acting on the bug if you file it in the correct
> component and CC the right people...
Also the issue in OSX is that when a i open this alwaysRaised its not showing in all workspaces. This is a problem when you do "shift + click" on my addon button for 5sec delay before shot, then you focus another app and make it fullscreen which causes workspace change. Then after 5sec countdown my addon opens the alwaysRaised window but on the original workspace, which causes a scroll to happen as it moves back to original workspace. My expectation was that the alwaysRaised window would open and over all workspaces.
Comment 5•10 years ago
|
||
I'm just trying to move bugs off the untriaged list, so that filed bugs are not silently ignored; can't investigate this in detail, sorry. So is this the same as bug 453274?
With 156 bugs filed you can't call yourself a noob :) I think that getting to know more about bugzilla components, the source code structure, and the developers will pay off greatly.
(In reply to Nickolay_Ponomarev from comment #5)
> I'm just trying to move bugs off the untriaged list, so that filed bugs are
> not silently ignored; can't investigate this in detail, sorry. So is this
> the same as bug 453274?
>
> With 156 bugs filed you can't call yourself a noob :) I think that getting
> to know more about bugzilla components, the source code structure, and the
> developers will pay off greatly.
Haha yeah man I need to learn this bugzilla stuff, is there a guide somewhere on MDN or something?
Oh I forgot to reply on that. I think its very similar. Except that I include mac in this bug as well. My bug is also for linux, which bug 453274 is working on. So its like half a duplicate.
Updated•9 years ago
|
Severity: normal → enhancement
Whiteboard: tpi:-
This addon uses js-ctypes to work around this bug - https://addons.mozilla.org/en-US/firefox/addon/stay-on-top/
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•