Closed Bug 820109 Opened 12 years ago Closed 12 years ago

"Check for updates..." doesn't work in CTP doorhanger

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Tracking Status
firefox18 + verified
firefox19 + verified
firefox20 + unaffected
firefox-esr17 18+ verified
b2g18 --- fixed

People

(Reporter: akeybl, Assigned: keeler)

References

Details

(Whiteboard: fixed by bug 263433)

Attachments

(3 files, 1 obsolete file)

"Check for updates..." doesn't work from the CTP doorhanger. No page is opened in my testing.
We're targeting this for landing in tomorrow's beta, if at all possible.
Attached patch patch (obsolete) — Splinter Review
This should do the trick.
Attachment #690612 - Flags: review?(jaws)
Comment on attachment 690612 [details] [diff] [review]
patch

>--- a/browser/base/content/urlbarBindings.xml
>+++ b/browser/base/content/urlbarBindings.xml
>@@ -1432,17 +1432,17 @@
>           <xul:spacer flex="1"/>
>           <xul:button class="popup-notification-menubutton center-item-button"
>                       oncommand="document.getBindingParent(this).runCallback();"
>                       xbl:inherits="label=buttonlabel"/>
>         </xul:hbox>
>         <xul:hbox flex="1" align="center" class="center-item-warning">
>           <xul:image class="center-item-warning-icon"/>
>           <xul:label class="center-item-warning-description" xbl:inherits="xbl:text=warningText"/>
>-          <xul:label xbl:inherits="href=updateLink" value="&checkForUpdates;" class="text-link"/>
>+          <xul:label xbl:inherits="href=updateLink" value="&checkForUpdates;" class="text-link" onclick="event.preventDefault(); gBrowser.loadOneTab(this.href, { inBackground: false });"/>

Use openUILinkIn rather than gBrowser.loadOne tab.

Why are you using onclick and not oncommand?
(In reply to Dão Gottwald [:dao] from comment #3)
> Why are you using onclick and not oncommand?

It doesn't look like using oncommand works.
Will onclick be triggered by the Enter key here?
Comment on attachment 690612 [details] [diff] [review]
patch

Review of attachment 690612 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/base/content/urlbarBindings.xml
@@ +1436,5 @@
>          </xul:hbox>
>          <xul:hbox flex="1" align="center" class="center-item-warning">
>            <xul:image class="center-item-warning-icon"/>
>            <xul:label class="center-item-warning-description" xbl:inherits="xbl:text=warningText"/>
> +          <xul:label xbl:inherits="href=updateLink" value="&checkForUpdates;" class="text-link" onclick="event.preventDefault(); gBrowser.loadOneTab(this.href, { inBackground: false });"/>

oncommand probably won't work here because this is a xul:label. If this is changed to a xul:button then oncommand should work and we can style it like a link.
(In reply to Alex Keybl [:akeybl] from comment #0)
> "Check for updates..." doesn't work from the CTP doorhanger. No page is
> opened in my testing.

I'm not seeing the same behavior.
Please see https://bugzilla.mozilla.org/show_bug.cgi?id=793338#c13 and bug 797976 which handles this.
Presumably David is also able to repro, since he's fixing this bug.
The behavior I was seeing with my local debug build was that after clicking the link, the browser would sit there for ages and then open up the plugin check page in a new window. I thought the issue was a) the responsiveness and b) that it was in a new window, not a new tab. I knew we had a bug on the link not opening in a new tab (thanks Paul), but I couldn't find it, so I figured I'd just fix it in this bug.

Actually, now that I look at it, bug 797976 is maybe more of a general toolkit problem, whereas we just need to fix this behavior here once.

Dao - looks like onclick is triggered by the enter key, but not the spacebar.

Jared - is there already a way of styling a button like a link or would we have to put something together?
If Dao is OK with using the label then that's fine with me.

If you want to style a button like a link, you can try:
button {
  -moz-appearance: none;
  color: -moz-nativehyperlinktext;
  text-decoration: underline;
}
button:active {
  color: -moz-activehyperlinktext;
}
I'm OK with using a text-link label, but we should add a comment pointing to the underlying bug that you're working around.
Attached patch patch v2Splinter Review
Ok - I added the comment and changed the handler to use openUILinkIn.
Attachment #690612 - Attachment is obsolete: true
Attachment #690612 - Flags: review?(jaws)
Attachment #691077 - Flags: review?(dao)
Depends on: 263433
Comment on attachment 691077 [details] [diff] [review]
patch v2

I'm targeting Firefox 20 with bug 263433, so we should only land this on aurora and beta.
Attachment #691077 - Flags: review?(dao) → review+
Comment on attachment 691077 [details] [diff] [review]
patch v2

Pre-approving for branches given the fact that this should be a minimal risk fix, and easily verifiable.
Attachment #691077 - Flags: approval-mozilla-beta+
Attachment #691077 - Flags: approval-mozilla-aurora+
Attached patch patch for auroraSplinter Review
Had to re-base for the test. This is the patch for aurora.
Attachment #692431 - Flags: review+
Attached patch patch for betaSplinter Review
Had to rebase for the test. This is the patch for beta.
Attachment #692432 - Flags: review+
Resolving, since there's nothing else to do here. Fixed by bug 263433 on mozilla-central.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: fixed by bug 263433
Target Milestone: --- → Firefox 20
Actually FF 20 is affected.
Firefox 20 is being taken care of in bug 263433.
Comment on attachment 692432 [details] [diff] [review]
patch for beta

[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration: needed (well, maybe "desired" is a better adjective) for click-to-play
User impact if declined: the "check for updates..." link in the popup notification will open a new window instead of a new tab
Fix Landed on Version: 18
Risk to taking this patch (and alternatives if risky): low
String or UUID changes made by this patch: none

See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #692432 - Flags: approval-mozilla-esr17?
Attachment #692432 - Flags: approval-mozilla-esr17? → approval-mozilla-esr17+
Verified fixed FF 18b5 Win 7 x64, Ubuntu 12.04 and Mac OS X 10.8.2
Verified fixed FF 17.0.2 ESR on Win 7 x64.
Verified fixed FF 19b3 on Win 7, Mac OS X 10.8.2.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Component: General → XUL Widgets
Product: Firefox → Toolkit
Target Milestone: Firefox 20 → ---
While testing this, I've noticed that Java and Flash CTP notifications are a little different. Java doesn't have a "check for updates" option.
http://img221.imageshack.us/img221/6690/ctpjavadifferentflash.png
Is this known ?
Note that on(In reply to Paul Silaghi [QA] from comment #27)
> While testing this, I've noticed that Java and Flash CTP notifications are a
> little different. Java doesn't have a "check for updates" option.
> http://img221.imageshack.us/img221/6690/ctpjavadifferentflash.png
> Is this known ?

Note that one of them is marked "vulnerable", while the other is marked "outdated". We only show "check for updates" on "outdated" plugins.
Yes, there is no Java version that is known to be current and secure at this time, esp. as Oracle's record in updating for security vulnerabilities is sketchy at best. There are also plans to not just generally require CTP for any Java, but for any plugin except current Flash.

And for Flash, we are only CTP-blocking really outdated versions right now, so you can get out of the block with an update. Adobe is also pretty agile with updates and working closely with us to fix issues.
Component: XUL Widgets → General
Product: Toolkit → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: