Closed Bug 940155 Opened 11 years ago Closed 11 years ago

australis menu support for social marks button

Categories

(Firefox Graveyard :: SocialAPI, defect)

26 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 29

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

References

(Blocks 1 open bug)

Details

(Whiteboard: [Australis:P3])

Attachments

(1 file, 1 obsolete file)

split out from bug 914921 to simplify the process.  Need to make the social mark button work in australis
Blocks: 940154
Depends on: 940820
Whiteboard: [Australis:P3]
Depends on: 914921
https://tbpl.mozilla.org/?tree=Try&rev=94c8bacd998f

This basically follows how the status button changes worked in bug 914921, though a listener would not work in this case, something to do with having a custom button and the widget wrapping on it.  Watching for the menu panel being shown is good enough as an update mechanism for this button.
Assignee: nobody → mixedpuppy
Attachment #8340173 - Flags: review?(mhammond)
Comment on attachment 8340173 [details] [diff] [review]
make marks button work in menu panel

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

::: browser/base/content/socialmarks.xml
@@ +150,3 @@
>            // add our resizer after the dom is ready
> +          if (!this.inMenuPanel) {
> +            let DynamicResizeWatcher = Cu.import("resource:///modules/Social.jsm", {}).DynamicResizeWatcher;

I know it wasn't before, but I think a lazy getter at the top of the file would be better.

@@ +251,5 @@
>          // pageData is passed into us. In this case, we always load the iframe
>          // and show it since the url may not be the browser tab, but an image,
>          // link, etc. inside the page. We also "update" the iframe to the
>          // previous url when it is closed.
> +        let panel = this.panel;

this is unused

@@ +304,5 @@
> +            if (!link || !link.ownerDocument || !rel || !link.href)
> +              return;
> +            if (link.rel.indexOf("icon") < 0)
> +              return;
> +    

trailing whitespace here and a few lines down
Attachment #8340173 - Flags: review?(mhammond) → review+
> updated with comments, new try
> https://tbpl.mozilla.org/?tree=Try&rev=d0b206ab50d3

mixing bugs/patches, try is for something else, previous try was in comment 1 is for this patch
https://hg.mozilla.org/mozilla-central/rev/babe33b649a3
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
QA Contact: cornel.ionce
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0

Verified fixed on latest Aurora (build ID: 20140310004003).
Status: RESOLVED → VERIFIED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: