Closed Bug 652542 Opened 13 years ago Closed 13 years ago

"Ignore warning" link on view source pages no longer works

Categories

(Toolkit :: View Source, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: Gavin, Assigned: Gavin)

References

Details

Attachments

(1 file)

Bug 546857 changed the browser.js handler to click (since blockedSite.xhtml no longer uses a xul:button, so command events are no longer fired), but didn't update the similar code in viewSource.js.
Attached patch patchSplinter Review
I figured there's no need to try be smart about when to attach the listener the way browser.js does, view-source is used less and it's OK to just always have a click listener on it, I think.
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #528107 - Flags: review?(neil)
Comment on attachment 528107 [details] [diff] [review]
patch

Review of attachment 528107 [details] [diff] [review]:

::: toolkit/components/viewsource/content/viewSource.js
@@ +276,5 @@
   }
 }
 
 /**
  * Handle command events bubbling up from error page content

Nit: comment needs changing

@@ -324,5 @@
       }
     } else if (target == errorDoc.getElementById('ignoreWarningButton')) {
-      // Allow users to override and continue through to the site,
-      // but add a notify bar as a reminder, so that they don't lose
-      // track after, e.g., tab switching.

I can't comment on this comment change, since I have no idea why you're changing it.
The view source window doesn't add the notification bar. Compare it to the browser.js code from where that comment was copied.
(I updated the comment with s/command/click/ locally)
Comment on attachment 528107 [details] [diff] [review]
patch

Ah, that makes sense then, thanks.
Attachment #528107 - Flags: review?(neil) → review+
(In reply to comment #4)
> (I updated the comment with s/command/click/ locally)

This change still needs to be applied before pushing the patch.
http://hg.mozilla.org/mozilla-central/rev/661247ec9748
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: