Closed
Bug 596799
Opened 15 years ago
Closed 15 years ago
document.getElementById("sync-button") is null
Categories
(Firefox :: Sync, defect)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | beta7+ |
People
(Reporter: philikon, Assigned: philikon)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 2 obsolete files)
|
2.80 KB,
patch
|
Details | Diff | Splinter Review |
doslke reported this after bug 594488:
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "document.getElementById("sync-button") is nu
ll" {file: "chrome://browser/content/browser.js" line: 5035}]' when calling meth
od: [nsIObserver::observe]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERRO
R_WITH_DETAILS)" location: "JS frame :: resource://services-sync/ext/Observers.
js :: anonymous :: line 122" data: yes]
************************************************************
Can't actually reproduce it myself, but there's one place where we don't check for gBrowser.
Attachment #475701 -
Flags: review?(dolske)
| Assignee | ||
Comment 1•15 years ago
|
||
(In reply to comment #0)
> Can't actually reproduce it myself,
Strike that. I see it now and the patch fixes it.
Comment 2•15 years ago
|
||
Comment on attachment 475701 [details] [diff] [review]
v1
This is necessary but not sufficient - can we morph this bug to cover bug 594488 comment 16 and subsequent comments?
Attachment #475701 -
Flags: review?(dolske) → feedback+
Updated•15 years ago
|
blocking2.0: --- → beta7+
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> This is necessary but not sufficient - can we morph this bug to cover bug
> 594488 comment 16 and subsequent comments?
Can do. Working on new patch.
| Assignee | ||
Comment 4•15 years ago
|
||
Make sure that the Sync button is only accessed when it actually exists in the toolbar. Also fix its entry in browserShared.inc.
Assignee: nobody → philipp
Attachment #475701 -
Attachment is obsolete: true
Attachment #475714 -
Flags: review?(gavin.sharp)
Comment 5•15 years ago
|
||
Comment on attachment 475714 [details] [diff] [review]
v2
>diff --git a/browser/base/content/browser-syncui.js b/browser/base/content/browser-syncui.js
>+ if (!gBrowser)
>+ if (!button)
Technically these checks are redundant, but I guess it doesn't really hurt to be explicit about the two cases (and avoid the getElementById call in the hiddenWindow case).
> // Functions called by observers
> onActivityStart: function SUI_onActivityStart() {
> //XXXzpao Followup: Do this with a class. (bug 583384)
This comment is no longer relevant... remove while you're here?
Attachment #475714 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 6•15 years ago
|
||
Address review comment: Remove no longer needed comment.
Attachment #475714 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Whiteboard: [qa-]
Updated•7 years ago
|
Component: Firefox Sync: UI → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•