Notification API for infobars, status icons and error messages

Bug #1207465 reported by Cris Dywan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Fix Released
High
Cris Dywan

Bug Description

It would seem that on the first glance infobars, status icons and error messages have few in common, but plenty of unrelated features are actually similar in how they face the user:

You use Adblock. Every website you visit may or may not be blocked. You expect an icon of some kind to tell you. There should be a way to go into the settings from its icon. Said icon might be in the statusbar or urlbar.
Now think of Cookies (hot potatoe, not chocolate chip). Every website may or may not store cookies. You may expect a prompt of sorts to decide to allow them; maybe you don't care to be prompted. Likely this will be an infobar or a dialog.

Now let's abstract the UI and on a semantic level many features probably boil down to:
a) extension Foobar
b) creates Midori.ContextAction("FoobarStatus"
c) adds actions for "Block" or "Allow"
d) set a Midori.View? view or not
e) enum Lifetime { TAB, URL, DOMAIN, DISPOSABLE, INFINITE }
d) bool interactive # show an infobar?

These steps include a mock API design. I plan to implement an API like that in the near future; so this feature request is partly to conserve the brainstorming. Feedback from interested developers is obviously also welcome.

Related bugs:
bug 1207465

Cris Dywan (kalikiana)
Changed in midori:
assignee: nobody → Christian Dywan (kalikiana)
Cris Dywan (kalikiana)
description: updated
Revision history for this message
Cris Dywan (kalikiana) wrote :

My suggestion: we start with the minimum API, add/ remove "icons" based on Midori.ContextAction for each Midori.Tab, no smart lifetime or infobars for now, the page dialog would show them line by line. And by we I mean I'll start a branch for that soonish.

Cris Dywan (kalikiana)
Changed in midori:
milestone: none → 0.5.7
Cris Dywan (kalikiana)
Changed in midori:
milestone: 0.5.7 → garage
Cris Dywan (kalikiana)
Changed in midori:
milestone: garage → 0.6.0
importance: Undecided → High
status: New → In Progress
Revision history for this message
Cris Dywan (kalikiana) wrote :

We've got the API to add (context) actions that appear in the toolbar now, so I consider this "implemented" and whatever we need can be filed individually.

Changed in midori:
milestone: 0.6.0 → 0.5.11
status: In Progress → Fix Committed
Cris Dywan (kalikiana)
Changed in midori:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.