Closed
Bug 737050
Opened 12 years ago
Closed 12 years ago
Add support for the WEBAPP intent
Categories
(Firefox for Android Graveyard :: Web Apps (PWAs), defect)
Tracking
(firefox14 verified, blocking-fennec1.0 soft)
VERIFIED
FIXED
Firefox 14
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
Attachments
(1 file)
Fennec XUL has support for a WEBAPP intent which allows for special handling of WebApps. In this case, we would pick an existing tab running the webapp over creting a new one.
Assignee | ||
Updated•12 years ago
|
OS: Windows 7 → Android
Hardware: x86_64 → ARM
Assignee | ||
Updated•12 years ago
|
Summary: [webapp] Add support for the WEBAPP intent → Add support for the WEBAPP intent
Whiteboard: [webapp]
Updated•12 years ago
|
blocking-fennec1.0: --- → ?
Comment 2•12 years ago
|
||
And presumably (for parity with native apps) showing way less chrome, a custom icon, etc., rite? Or am I misunderstanding the scope?
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #2) > And presumably (for parity with native apps) showing way less chrome, a > custom icon, etc., rite? Or am I misunderstanding the scope? Chromeless is a different bug
Comment 4•12 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #0) > Fennec XUL has support for a WEBAPP intent which allows for special handling > of WebApps. In this case, we would pick an existing tab running the webapp > over creting a new one. Would we load webapps in a tab or a window? Based on comment #3, sounds like chromeless is a different bug. What's that bug?
Comment 5•12 years ago
|
||
(In reply to Ragavan S [:rags] from comment #4) > Would we load webapps in a tab or a window? Based on comment #3, sounds like > chromeless is a different bug. What's that bug? it is yet to be filed as far as I know
Updated•12 years ago
|
Whiteboard: [webapp] → [WebRT]
Updated•12 years ago
|
Component: General → Web Apps
Updated•12 years ago
|
Whiteboard: [WebRT]
Updated•12 years ago
|
QA Contact: general → web-apps
Updated•12 years ago
|
blocking-fennec1.0: ? → soft
Comment 8•12 years ago
|
||
Is this bug a dup of https://bugzilla.mozilla.org/show_bug.cgi?id=738547? Because it is blocking the bug 741626 which is the use case for Phase 2 or Firefox 15. It might be better to make this a blocker of 738547. Thoughts?
Assignee | ||
Comment 9•12 years ago
|
||
This patch adds special "open url" behavior for WEBAPP intents (defined by org.mozilla.gecko). It has to touch a few parts of the code. Here is a summary: * Fennec handles launches via intents using the Gecko commandline handler. This patch adds support for adding a new flag to that system. The flag could be nothing, "-webapp", or "-bookmark". I add static helper methods to make this easier to use. * If Fennec is not running the commandline is passed to Gecko directly, so the patch adds code to do that. * Once the flag gets to the Gecko commandline handler, we check for the flag and do one of two things: Pass the flag (pinned) as a window.argument for the initial launch, or Pass a new nsIBrowserDOMWindow.OPEN_SWITCHTAB flag so the BrowserDOMWindow code knows to try to switch to an open tab instead of making a new tab. * We use the session store to save the "appOrigin" (like the desktop patch and the about:apps code) and use that to find existing tabs. * We use "pinned" to signify that tab is special and should act like an "app tab" (desktop uses the same terminology so I stole it here) Tapping Brad for the Java and Event bits
Assignee: nobody → mark.finkle
Attachment #614165 -
Flags: review?(blassey.bugs)
Assignee | ||
Comment 10•12 years ago
|
||
Comment on attachment 614165 [details] [diff] [review] patch Gavin for the nsIBrowserDOMWindow bits
Attachment #614165 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 11•12 years ago
|
||
Comment on attachment 614165 [details] [diff] [review] patch Brian for the BrowserCLH bits
Attachment #614165 -
Flags: review?(bnicholson)
Comment 12•12 years ago
|
||
Comment on attachment 614165 [details] [diff] [review] patch BrowserCLH bits look fine
Attachment #614165 -
Flags: review?(bnicholson) → review+
Comment 13•12 years ago
|
||
Comment on attachment 614165 [details] [diff] [review] patch Review of attachment 614165 [details] [diff] [review]: ----------------------------------------------------------------- ::: mobile/android/chrome/content/browser.js @@ +265,1 @@ > gScreenHeight = window.arguments[3]; presumably this should be window.arguments[4], but as I say later on, let's just put pinned at the end of the existing argument list so it doesn't change the order of existing args ::: mobile/android/components/BrowserCLH.js @@ +28,5 @@ > heightInt.data = "height" in aArgs ? aArgs.height : 1; > > argsArray.AppendElement(urlString, false); > argsArray.AppendElement(restoreSessionBool, false); > + argsArray.AppendElement(pinnedBool, false); nit, put the pinned arg at the end of the list so it doesn't reorder the existing arguments ::: widget/android/nsAppShell.cpp @@ +418,5 @@ > break; > > + char *flag = ToNewUTF8String(curEvent->CharactersExtra()); > + if (!flag) > + flag = ToNewUTF8String(NS_LITERAL_STRING("")); drop this @@ +426,4 @@ > "dummyappname", > + "-url", > + uri, > + flag flag ? flag : "" @@ +432,4 @@ > if (NS_SUCCEEDED(rv)) > cmdline->Run(); > nsMemory::Free(uri); > + nsMemory::Free(flag); if (flag) nsMemory::Free(flag);
Attachment #614165 -
Flags: review?(blassey.bugs) → review+
Comment 14•12 years ago
|
||
Comment on attachment 614165 [details] [diff] [review] patch We talked about adding OPEN_ALLOW_SWITCHING as an aContext flag instead of a different aWhere value, but that ended up being stymied by the fact that people currently check aContext's exact value (e.g. == Ci.nsIBrowserDOMWindow.OPEN_EXTERNAL), rather than treating it as a bit field, and changing all the implementations of nsIBrowserDOMWindow would be a pain. So let's just go with this, even if it may not be quite as elegant...
Attachment #614165 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 15•12 years ago
|
||
with brad's requested changes: https://hg.mozilla.org/integration/mozilla-inbound/rev/2ce1f809b765
Comment 16•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2ce1f809b765
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
Comment 17•12 years ago
|
||
Verified Fixed, tested via: Samsung Galaxy Nexus (Android 4.0.4) Mozilla/5.0 (Android; Mobile; rv:14.0) Gecko/14.0 Firefox/14.0a1
Status: RESOLVED → VERIFIED
status-firefox14:
--- → verified
Updated•12 years ago
|
Flags: in-moztrap?
Updated•12 years ago
|
Flags: in-moztrap? → in-moztrap?(aaron.train)
Updated•12 years ago
|
Flags: in-moztrap?(aaron.train)
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•