~ubuntu-branches/ubuntu/saucy/webbrowser-app/saucy-proposed

« back to all changes in this revision

Viewing changes to src/app/Browser.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Alexandre Abreu, Olivier Tilloy, Ubuntu daily release
  • Date: 2013-09-19 15:52:17 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20130919155217-tu7k7o4inckuh1hm
Tags: 0.22+13.10.20130919.3-0ubuntu1
[ Alexandre Abreu ]
* Add a 'maximized' command line parameter mostly to enhance the
  control for webapps launch.

[ Olivier Tilloy ]
* Use the value of APP_ID to set the application name. This ensures
  that webapps (which run with a unique app ID) will write their data
  where they ought to, and that they won’t have access to other apps’
  cache and cookies. (LP: #1226085)
* Add a unity action to clear the navigation history.
* Override the UA string for facebook.com to ensure we’re getting
  touch-enabled content. Without this override, we were getting
  unstyled mobile content from the 90s. Impersonating an iphone or
  android would offer to install the respective applications when
  logging in. The 'Firefox' token gets us the right content (and
  pretending to be AppleWebKit seems to be necessary too, otherwise
  the layout is busted). (LP: #1215002)

[ Ubuntu daily release ]
* Automatic snapshot from revision 318

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
            keywords: i18n.tr("Open a New Tab")
107
107
            enabled: !isRunningAsANamedWebapp()
108
108
            onTriggered: browser.newTab("", true)
 
109
        },
 
110
        UnityActions.Action {
 
111
            text: i18n.tr("Clear History")
 
112
            // TRANSLATORS: This is a free-form list of keywords associated to the 'Clear History' action.
 
113
            // Keywords may actually be sentences, and must be separated by semi-colons.
 
114
            keywords: i18n.tr("Clear Navigation History")
 
115
            onTriggered: historyModel.clearAll()
109
116
        }
110
117
    ]
111
118