Styling issue when error page is displayed inside an iframe

Bug #1210841 reported by André Stösel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Midori Web Browser
Confirmed
Undecided
gue5t gue5t

Bug Description

If the page is shown while starting midori the css is missing.

And there are other issues too:

gue5t gue5t (gue5t) wrote on 2013-08-09: #
Interesting indeed. I also notice that the page scrolls to the iframe when it loads: this is noticeable if you use a test page that looks like this:

<style>p{height: 100%}</style>
<p></p>
<iframe src="http://mekong:6060/sedus-3ds/" width="90%" height="90%"/>

I'll try to figure out and fix these issues.

Reply
gue5t gue5t (gue5t) wrote on 2013-08-09: #
The page scrolls to the iframe because our error template has the "autofocus" attribute on its button. We'll have to change that to something interpolated into the template only for main-frame error pages.

Reply
gue5t gue5t (gue5t) wrote on 2013-08-09: #
The CSS is missing because midori_view_web_view_resource_request_cb denies access to res:// as follows:
    /* Only apply custom URIs to special pages for security purposes */
    if (!midori_tab_get_special (MIDORI_TAB (view)))
        return;

This checks if the entire tab is an error page, and since it isn't, doesn't allow the frame which needs an error page to load res://about.css. :(

I'll see what can be done.

Tags: error-page
André Stösel (ivaldi)
Changed in midori:
status: New → Confirmed
milestone: none → 0.5.6
gue5t gue5t (gue5t)
Changed in midori:
assignee: nobody → gue5t gue5t (gue5t)
gue5t gue5t (gue5t)
tags: added: error-page
Cris Dywan (kalikiana)
Changed in midori:
milestone: 0.5.6 → 0.5.7
Cris Dywan (kalikiana)
Changed in midori:
milestone: 0.5.7 → garage
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.