Merge lp:~deryck/launchpad/ie-filebug-error-500015 into lp:launchpad

Proposed by Deryck Hodge
Status: Merged
Approved by: Deryck Hodge
Approved revision: no longer in the source branch.
Merged at revision: 13202
Proposed branch: lp:~deryck/launchpad/ie-filebug-error-500015
Merge into: lp:launchpad
Diff against target: 16 lines (+0/-4)
1 file modified
lib/lp/app/templates/base-layout-macros.pt (+0/-4)
To merge this branch: bzr merge lp:~deryck/launchpad/ie-filebug-error-500015
Reviewer Review Type Date Requested Status
Deryck Hodge (community) code Approve
Review via email: mp+63763@code.launchpad.net

Commit message

[r=deryck][bug=500015] Fix +filebug page to work in Internet Explorer.

Description of the change

This fixes the filebug page JavaScript to work in IE. Internet Explorer users rejoice, you can now file bugs on Launchpad!

The IE event facade wasn't being setup correctly. Rather than bloat launchpad.js for one interaction, I removed the YUI config params for bootstap and combine which gets things working for IE. This suggests additional modules are being loaded for IE, but limited debug tools in IE make this hard to confirm for sure. I don't see anything reported in the IE consoles I have, but I can't be sure. I don't completely trust these tools. There's certainly no effect in FF or Chromium. This was only to help Windmill tests anyway, to prevent loading anything extra via Windmill's proxy. Since we're not using Windmill anymore, there's no harm removing these config params. I'll leave the fetchCSS and timeout params for paranoia and to prevent ugly warning logs in browser consoles.

I'll approve this myself, since it's a simple and harmless change.

To post a comment you must log in.
Revision history for this message
Deryck Hodge (deryck) wrote :

FWIW, moving to a proper combo loader for YUI will make these sorts of issues go away.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/app/templates/base-layout-macros.pt'
2--- lib/lp/app/templates/base-layout-macros.pt 2011-05-24 08:22:39 +0000
3+++ lib/lp/app/templates/base-layout-macros.pt 2011-06-07 20:48:38 +0000
4@@ -79,12 +79,8 @@
5 <script type="text/javascript">
6 // Define a global YUI sandbox that should be used by everyone.
7 var LPS = YUI({
8- // Don't try to fetch the loader module.
9- bootstrap: false,
10 // Don't try to fetch CSS files.
11 fetchCSS: false,
12- // Turn off combo loading.
13- combine: false,
14 // For paranoia, set a low timeout to not wait on loading a resource.
15 timeout: 50
16 });