Closed Bug 965265 Opened 11 years ago Closed 11 years ago

Opening a new private window shows social provider buttons which don't do anything

Categories

(Firefox Graveyard :: SocialAPI, defect)

defect
Not set
normal

Tracking

(firefox30 verified)

VERIFIED FIXED
Firefox 30
Tracking Status
firefox30 --- verified

People

(Reporter: standard8, Assigned: florian)

References

Details

Attachments

(1 file, 1 obsolete file)

STR: 1. Have a provider with a default button (e.g. Talkilla) 2. Open a private window => Social Provider buttons are displayed, but do nothing when you click on them.
(In reply to Mark Banner (:standard8) from comment #0) > => Social Provider buttons are displayed, but do nothing when you click on > them. Actually, clicking the button causes this error in the Browser Console: NS_ERROR_NOT_IMPLEMENTED: SharedFrame.jsm:137 Line 137 is: frame.QueryInterface(Ci.nsIFrameLoaderOwner).swapFrameLoaders(aTargetFrame); This error makes sense; we are trying to swap a docshell from a non private window to a private window.
Assignee: nobody → florian
Attachment #8367951 - Flags: review?(mixedpuppy)
Comment on attachment 8367951 [details] [diff] [review] disable status buttons in private windows Add the same code and test for CreateSocialMarkWidget then r+ from me.
Attachment #8367951 - Flags: review?(mixedpuppy) → review+
Summary: Opening a new priviate window shows social provider buttons which don't do anything → Opening a new private window shows social provider buttons which don't do anything
Attached patch Patch v2Splinter Review
I added the same test for the Social Mark case, but not the code, as disabling is already handled by this code in browser-social.js: 310 get enabled() { 311 // Returns whether social is enabled *for this window*. 312 if (this._chromeless || PrivateBrowsingUtils.isWindowPrivate(window)) 313 return false; ... 317 // called on tab/urlbar/location changes and after customization. Update 318 // anything that is tab specific. 319 updateState: function() { 320 if (!this.enabled) 321 return; 322 SocialMarks.update();
Attachment #8367951 - Attachment is obsolete: true
Attachment #8370081 - Flags: review?(mixedpuppy)
Attachment #8370081 - Flags: review?(mixedpuppy) → review+
(In reply to Florian Quèze [:florian] [:flo] from comment #5) > https://hg.mozilla.org/integration/fx-team/rev/8c4807bfdd2a sorry had to backout this change for testfailures like https://tbpl.mozilla.org/php/getParsedLog.php?id=34209063&tree=Fx-Tea 5:04:59 WARNING - TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/browser/base/content/test/social/browser_social_perwindowPB.js | status button disabled on private window 05:04:59 INFO - Stack trace: 05:04:59 INFO - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/social/browser_social_perwindowPB.js :: tests.testPrivateBrowsing/</</< :: line 83 05:04:59 INFO - JS frame :: chrome://mochitests/content/browser/browser/base/content/test/social/browser_social_perwindowPB.js :: postAndReceive/port.onmessage :: line 29 05:04:59 INFO - JS frame :: resource://gre/modules/MessagePortBase.jsm :: fw_AbstractPort_onmessage :: line 57 05:04:59 INFO - JS frame :: resource://gre/modules/FrameWorker.jsm :: _Worker.prototype.receiveMessage :: line 95 05:04:59 INFO - native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0
I reduced the problem in comment 6 to the test testAddonManagerDoubleInstall from browser_social_activation.js. If I comment out that specific test, browser_social_perwindowPB.js passes. Something interesting when looking at the browser window when browser_social_perwindowPB.js failed: widget.forWindow(pbwin).node.parentNode is null, and the social status button isn't visible in the toolbar. When the test passes, the toolbar button is visible.
Depends on: 969427
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
Keywords: verifyme
(In reply to Mark Banner (:standard8) from comment #0) > STR: > > 1. Have a provider with a default button (e.g. Talkilla) > 2. Open a private window > > => Social Provider buttons are displayed, but do nothing when you click on > them. The Talkilla button is still displayed (but no longer clickable) in private browsing, nightly 30.0a1 (2014-03-05), Win 7 x64. Thoughts ?
Flags: needinfo?(florian)
This is the expected behavior. The button is now disabled (not clickable) in private browsing. Before this fix, it was clickable and clicking it cause JavaScript errors (as mentioned on comment 1).
Flags: needinfo?(florian)
Verified fixed based on comment 11 on 30.0a1 (2014-03-05), win 7 x64.
Status: RESOLVED → VERIFIED
Keywords: verifyme
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: