nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.31k stars 3.88k forks source link

NWJS frame for IE Edge? #5858

Open shamun opened 7 years ago

shamun commented 7 years ago

IE Edge has an option: <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

screen-2 Can we embed NWJS (frameless window inside the IE Edge page html pages like Flash or Silverlight?)?

Unfortunately its retired https://blog.chromium.org/2013/06/retiring-chrome-frame.html

EDIT:

C++ BHO: http://www.adp-gmbh.ch/win/com/bho.html Qt5 BHO: http://doc.qt.io/qt-5/activeqt-index.html

tekrat commented 7 years ago

IE Edge adopted a modfied version of teh Firefox/Mozilla system. It basically pure JavaScript now.

https://docs.microsoft.com/en-us/microsoft-edge/extensions/guides/creating-an-extension

Quoting from the article: "You can learn how to create extensions by following the Borderify (https://developer.mozilla.org/Add-ons/WebExtensions/Your_first_WebExtension) and Beastify (https://developer.mozilla.org/Add-ons/WebExtensions/Your_second_WebExtension) tutorials on Mozilla Developer Network (MDN). This page highlights the changes you'd need to make to get these samples running in Microsoft Edge.Once you've created an extension or two and implemented the code tweaks for Microsoft Edge support, jump to the Next steps section for info on how to sideload and package extensions."

rogerwang commented 7 years ago

What's the usage scenario for this?

shamun commented 7 years ago

In some Government organisation (health sector), we were refused to use Google Chrome and NWJS.

In there organisation they have some disable people equipment such as driving car inside the city for disables, bed/room where disable persons sleep. In such environment the controlling application is using IE Edge.

Because Google chrome or NWJS is not embedded inside the IE Edge but it works as popup outside the IE Edge. They refused to use NWJS but would like to add it if it was possible to embed inside the IE Edge.

Therefore embedding NWJS inside the IE Edge would remove that restrictions for any others who have same projects where IE Edge is strict.

baconbrad commented 7 years ago

You have misunderstood this meta tag. Embedding Chrome views is not possible with Edge. For starters Chrome frame is long dead. And two Edge does not support any plugin system to make this possible. (It has an extension system now. But none to technically make it possible.) The IE=edge you are seeing is indicates Internet Explorer should use the most current rendering engine it is packaged with. This is not an Edge meta tag. Additionally Microsoft plans on switching gears from IE to Edge eventually. So getting NW or Electron frame to work in Edge is not only not possible but the whole project is a nonstarter.

baconbrad commented 7 years ago

Also note IE and Edge are two separate products. And Edge is purposely separating itself from IE. You can read more about it at: https://en.wikipedia.org/wiki/Microsoft_Edge

shamun commented 7 years ago

@baconbrad :

1) Nothing is impossible. we have solved all challenges. lets not be afraid with such a little thing. instead lets motivate to make it happen...

2) Temasys already implemented BHO (Closed source) for IE Edge, if they can? sure NWJS can do more better cause we are open source community. (lets be practical for real world challenges to accept, when there is will there is always a way..)

rogerwang commented 7 years ago

@shamun Do we know the reason why are they refusing to use Chrome or NW? If they learned that the new solution embeds NW inside of IE, will it be refused too?

shamun commented 7 years ago

@rogerwang

1) new solution embeds NW inside of IE will be NEVER refused. (It will allow lot of application developpers to go into that market where everyone is getting rejected/refused where IE Edge is strict use case. )

2) the reason why i was refused is here below. from IE Edge i can run NWJS, they allowed me to run it. But the problem is disable person application is inside the IE Edge (using some Java Applet and some Silverlight) when the disable person scroll IE Edge page down or top or goes to a new hyper link.

NWJS is not sticked inside the html code. Therefore the NWJS do not follow the page navigation.

See below the screenshot this is how i gave them in a fixed top, left but its refused because they want the NWJS to be able to be embedded just like Flash or Silverlight or anyother BHO way of doing.

ie NOTE: FYI - when NW is embedded inside IE Edge we do not need window frame (minimise, maximise, close window frame at all, for example i have included them. )

baconbrad commented 7 years ago

You are still misunderstanding the metatags and browsers here. There is no IE Edge. Just IE and Edge. IE was the only one that allowed Chrome frame. ie=edge has nothing to do with Edge. It is to tell IE to use the latest renderer. And it is not possible because the extensions in Edge do not allow this type of embedding (nor Silverlight or Java). You would have to really hack at Edge (which is not open source) to get this to work. This is way beyond the scope and possibilities of the NW.js team.