Closed Bug 388030 Opened 17 years ago Closed 17 years ago

Clicking RSS causes the location bar to lose Domain Highlight on use of 'Back'

Categories

(Firefox :: Address Bar, defect)

defect
Not set
major

Tracking

()

VERIFIED WONTFIX
Firefox 3 beta2

People

(Reporter: jmjjeffery, Assigned: dao)

References

()

Details

Attachments

(1 file, 16 obsolete files)

(deleted), patch
Details | Diff | Splinter Review
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a7pre) Gecko/2007071305 Minefield/3.0a7pre Firefox/3.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a7pre) Gecko/2007071305 Minefield/3.0a7pre Firefox/3.0 Go to the URL www.cnn.com or www.msnbc.com and click on the RSS Icon. These sites offer a multiple choice of feeds. Click either and note the Domain Highlighting goes away. Clicking Back then results in the location bar no longer displaying the Domain Highlight across all tabs. Clicking on the location bar and then in the webpage body restores the Domain Highlighting. Web pages that offer only a single link when clicking the RSS feed does not seem to break the Domain Highlight. Same occurs if you hover over the location bar and let it turn all black, then drag the favicon to the bookmarks bar, the Domain Highlighting is lost. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: Domain Hightlighting disappears leaving the user without the feature. Expected Results: Domain Hightlighting should not disappear leaving the user without the feature. Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a7pre) Gecko/2007071305 Minefield/3.0a7pre Firefox/3.0 ID:2007071305
Version: unspecified → Trunk
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a7pre) Gecko/2007071305 Minefield/3.0a7pre ID:2007071305 I see this too --> NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
This is because the mouseout event isn't dispatched if you open the Feed icon's popup menu.
Status: NEW → ASSIGNED
Attached patch patch (obsolete) (deleted) — Splinter Review
This avoids the whole problem by switching to the styled view as soon as you move the mouse over the Feed icon (and others). Note that |this._plain = false;| in the current code doesn't do anything. That has to be |this._formatted = true;|. Also, I'm now setting that directly in _prettyView instead of _initPrettyView. Otherwise |if (!this.plain && !this._isMouseOverAddress(event))| would malfunction when moving the mouse over the favicon.
Assignee: nobody → dao
Attachment #272186 - Flags: review?(gavin.sharp)
Attached patch patch v2 (obsolete) (deleted) — Splinter Review
mouseout was not working as expected
Attachment #272186 - Attachment is obsolete: true
Attachment #272197 - Flags: review?(gavin.sharp)
Attachment #272186 - Flags: review?(gavin.sharp)
OS: Windows Vista → All
Hardware: PC → All
Attachment #272197 - Attachment is obsolete: true
Attachment #272197 - Flags: review?(gavin.sharp)
Depends on: 389708
Blocks: 386741
No longer depends on: 389708
Attached patch patch v3 (obsolete) (deleted) — Splinter Review
Attachment #278404 - Flags: review?(gavin.sharp)
Flags: blocking-firefox3?
Target Milestone: --- → Firefox 3 M8
Blocks: 394083
Attached patch patch v3.1 (obsolete) (deleted) — Splinter Review
Oops, v3 was nonsense.
Attachment #278404 - Attachment is obsolete: true
Attachment #279092 - Flags: review?(gavin.sharp)
Attachment #278404 - Flags: review?(gavin.sharp)
Blocks: 396136
Does this affect the location bar pretty-print display for characters and spaces as well, or just the domain highlighting?
This affects the pretty-print display in any case. (Domain highlighting was just one way to style it.)
Then yes, it blocks :)
Flags: blocking-firefox3? → blocking-firefox3+
Attached patch patch v4 (obsolete) (deleted) — Splinter Review
_isMouseOverElement removed
Attachment #279092 - Attachment is obsolete: true
Attachment #281563 - Flags: review?(gavin.sharp)
Attachment #279092 - Flags: review?(gavin.sharp)
Blocks: 396084
Attached patch patch v4.1 (obsolete) (deleted) — Splinter Review
there's no good reason to use _inputBox instead of inputField
Attachment #281563 - Attachment is obsolete: true
Attachment #281623 - Flags: review?(gavin.sharp)
Attachment #281563 - Flags: review?(gavin.sharp)
Attached patch patch v4.2 (obsolete) (deleted) — Splinter Review
indention fixed
Attachment #281623 - Attachment is obsolete: true
Attachment #281625 - Flags: review?(gavin.sharp)
Attachment #281623 - Flags: review?(gavin.sharp)
Can you please update the new target milestone? Thanks.
Target Milestone: Firefox 3 M8 → Firefox 3 M9
Attached patch patch v4.3 (obsolete) (deleted) — Splinter Review
Attachment #281625 - Attachment is obsolete: true
Attachment #282597 - Flags: review?(gavin.sharp)
Attachment #281625 - Flags: review?(gavin.sharp)
Attached image screenshot of bug (obsolete) (deleted) —
The latest patch still has trouble dealing with long URLs and small windows.
Attachment #282692 - Attachment is patch: false
Attachment #282692 - Attachment mime type: text/plain → image/png
Attached patch patch v4.4 (obsolete) (deleted) — Splinter Review
nasty ... but not as nasty as flex="9999"
Attachment #282597 - Attachment is obsolete: true
Attachment #282706 - Flags: review?(gavin.sharp)
Attachment #282597 - Flags: review?(gavin.sharp)
width="1" is needed for very long URLs like http://tinyurl.com/3ykhdb
I still see the bug from my screenshot (attachment 282692 [details]) with the latest patch.
Hm, I thought I didn't. Will recheck.
Attached image screenshot without bug (obsolete) (deleted) —
Here's what I see. I've obviously modified the urlbar in other ways, but I don't think that should make a difference. I will try a clean build + profile. Note that I did see the bug with the previous patch.
Comment on attachment 282706 [details] [diff] [review] patch v4.4 Ok, seeing it now. It depends on whether the protocol is hidden.
Attachment #282706 - Attachment is obsolete: true
Attachment #282706 - Flags: review?(gavin.sharp)
Attached patch patch v4.5 (obsolete) (deleted) — Splinter Review
Attachment #283033 - Flags: review?(gavin.sharp)
moving out bugs that don't need to block b1
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Comment on attachment 283033 [details] [diff] [review] patch v4.5 >Index: browser/base/content/urlbarBindings.xml > <method name="_initPrettyView"> >+ this._formattedURL.hidden = false; >+ this._prePath.maxWidth = >+ this._prePath.width = ""; >+ this._prePath.flex = 0; >+ this._prePath.maxWidth = > this._prePath.width = this._prePath.boxObject.width; >+ this._prePath.flex = 1; This is the hack used to get the sizing right, presumably? Could you add a comment explaining it? >Index: browser/themes/pinstripe/browser/browser.css >Index: browser/themes/winstripe/browser/browser.css I wonder if we want to increase the url bar's min-width given the way this looks with small windows. Having the host just end abruptly without a "..." could potentially be a spoofing risk. Followup bug?
Attachment #283033 - Flags: review?(gavin.sharp) → review+
(In reply to comment #24) > This is the hack used to get the sizing right, presumably? Could you add a > comment explaining it? I'll add one. (I realize that my code could use more comments in general.) > I wonder if we want to increase the url bar's min-width given the way this > looks with small windows. Having the host just end abruptly without a "..." > could potentially be a spoofing risk. Followup bug? I don't think |crop| can be used there, and increasing the minimum width will cause the search bar to be pushed off the window earlier, esp. with Larry. But it's worth tracking anyway, so yes, I'll file a bug later.
Attached patch patch v4.5 with comment (obsolete) (deleted) — Splinter Review
Attachment #283033 - Attachment is obsolete: true
thanks for the review, Gavin.
Keywords: checkin-needed
Checking in browser/base/content/urlbarBindings.xml; /cvsroot/mozilla/browser/base/content/urlbarBindings.xml,v <-- urlbarBindings.xml new revision: 1.34; previous revision: 1.33 done Checking in browser/themes/pinstripe/browser/browser.css; /cvsroot/mozilla/browser/themes/pinstripe/browser/browser.css,v <-- browser.css new revision: 1.85; previous revision: 1.84 done Checking in browser/themes/winstripe/browser/browser.css; /cvsroot/mozilla/browser/themes/winstripe/browser/browser.css,v <-- browser.css new revision: 1.105; previous revision: 1.104 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: Firefox 3 M10 → Firefox 3 M9
This regressed perf on mac only. Before: Tp:148ms Tp2:101.575ms Tdhtml:523ms Txul:149ms Ts:851ms After: Tp:165ms Tp2:105.5875ms Tdhtml:523ms Txul:155ms Ts:871ms I didn't back it out yet, but I will tomorrow if the fix isn't obvious.
Unless |crop| is much more expensive than the scrollbox was (on Mac only?!) it could only be this: - this._plain = false; this._protocol.hidden = false; - this._presentationBox.hidden = false; - this._prePath.width = ""; - if (this._protocolHidden) { + this._formattedURL.hidden = false; + this._prePath.maxWidth = + this._prePath.width = ""; + this._prePath.flex = 0; + + this._prePath.maxWidth = this._prePath.width = this._prePath.boxObject.width; + this._prePath.flex = 1; + + if (this._protocolHidden) this._protocol.hidden = true; - } Because I expect boxObject.width to trigger layout. But an 11% Tp regression? And again, Mac only? That's ... interesting, to say the least.
Attached patch prePathCache (obsolete) (deleted) — Splinter Review
This would help if the location changes while staying on the same host. However, I don't see how this could save 17ms on pageload. And I assume that Tp is about pages from different hosts anyway ...
Latest numbers: Tp:143ms Tp2:96.2ms Tdhtml:398ms Txul:130ms Ts:853ms Not sure what's going on there.
Backed out due to mac-only perf regression.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch patch v5 (obsolete) (deleted) — Splinter Review
With the change from comment 31 and overflow:-moz-hidden-unscrollable instead of overflow:hidden. I don't really know where the slowdown on Mac originated, any hint is welcome.
Attachment #282692 - Attachment is obsolete: true
Attachment #283017 - Attachment is obsolete: true
Attachment #283093 - Attachment is obsolete: true
Attachment #283161 - Attachment is obsolete: true
Attachment #283327 - Flags: review?(gavin.sharp)
Attached patch patch v5.1 (obsolete) (deleted) — Splinter Review
Thanks to overflow:-moz-hidden-unscrollable, I can revert _initPrettyView to something simpler if the protocol isn't hidden.
Attachment #283327 - Attachment is obsolete: true
Attachment #283329 - Flags: review?(gavin.sharp)
Attachment #283327 - Flags: review?(gavin.sharp)
Litmus triage team: test case to be added in Litmus by Tomcat
Target Milestone: Firefox 3 M9 → Firefox 3 M10
Attached patch less radical patch (deleted) — Splinter Review
Attachment #283329 - Attachment is obsolete: true
Attachment #284925 - Flags: review?(gavin.sharp)
Attachment #283329 - Flags: review?(gavin.sharp)
No longer blocks: 386741
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → WONTFIX
Attachment #284925 - Flags: review?(gavin.sharp)
Dao, could you give the reasoning behind resolving this WONTFIX?
i assume this was marked wontfix by accident, reopening
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
There won't be a patch landing here, as there won't be a 'Domain Highlight'.
ok,sorry for the span than, resetting wontfix
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → WONTFIX
No longer blocks: 396136
No longer blocks: 396084
Verified
Status: RESOLVED → VERIFIED
No longer blocks: 394083
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: