Closed Bug 1541647 Opened 5 years ago Closed 5 years ago

With QuantumBar enabled, the Form History Control add-on doesn't work

Categories

(Firefox :: Address Bar, defect, P2)

defect
Points:
3

Tracking

()

RESOLVED FIXED
Firefox 68
Iteration:
68.3 - Apr 15 - 28
Tracking Status
firefox68 --- fixed

People

(Reporter: sheppy, Assigned: mak)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

With quantum bar enabled, the Form History Control add-on has problems. The main thing I see is this:

When I want to recover form content, if I go to open the main history window in FHC by either of the following means:

  • Choosing Tools->Form History Control (II)->Manage History
  • Clicking the page action icon for FHC and then Manage History in the resulting popup

I get an empty window instead of a window with the FHC history information in it, and see the following messages in Browse Console:

19:23:26.873 TypeError: this.input.inputField is undefined UrlbarEventBufferer.jsm:61:5
    UrlbarEventBufferer resource:///modules/UrlbarEventBufferer.jsm:61
    UrlbarInput resource:///modules/UrlbarInput.jsm:143
    get urlbar chrome://browser/content/browser.js:207
    <anonymous> chrome://browser/content/browser.js:192
    get resource://gre/modules/XPCOMUtils.jsm:129
    _setURLBarPlaceholder chrome://browser/content/browser.js:4139
    initPlaceHolder chrome://browser/content/browser.js:4072
    onDOMContentLoaded chrome://browser/content/browser.js:1426
    onDOMContentLoaded self-hosted:984
19:23:26.894 TypeError: gURLBar is undefined browser.js:1497:7
    onLoad chrome://browser/content/browser.js:1497
    onLoad self-hosted:984

Thanks for the report, we must look into this.

Points: --- → 3
Priority: -- → P2

I just took a brief look.

  • The extension is using the browser.window.create API, creating a window with type="popup".
  • That calls through to here where we're being created without a toolbar.
  • The urlbar element is present, but is not visible.
  • Looks like we need to do something with window.toolbar.visible
  • There's already something that for some reason sets it to read-only when dealing with popups.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Iteration: --- → 68.3 - Apr 15 - 28

Applying the attribute early enough allows us to avoid rebinding the urlbar,
plus a few checks to ensure "popup" windows, without a visible toolbar, work
properly.

Blocks: 1543995
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/2313dfe51d09
Avoid rebinding the urlbar on startup if Quantum Bar is enabled. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Regressions: 1562691
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: