Closed
Bug 658242
Opened 13 years ago
Closed 13 years ago
Search in bookmarks doesn't find javascript: bookmarks
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: bzbarsky, Assigned: mak)
References
Details
(Keywords: regression, Whiteboard: [places-next-wanted])
Attachments
(1 file, 2 obsolete files)
9.88 KB,
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
BUILD: 2011-05-19 nightly STEPS TO REPRODUCE: 1) Start with a new profile. 2) Bookmarks > Show All Bookmarks 3) Select "Unsorted Bookmarks" 4) Context-click the right-hand pane, select "New Bookmark..." 5) Type "Pushlog range" for the name. 6) Type "javascript:foopy" for the location. 7) Click in the search field at top right 8) Type "range" 9) Select the "Unsorted Bookmarks" button for "Search In" ACTUAL RESULTS: Bookmark created in steps 4-6 not found. EXPECTED RESULTS: Bookmark found ADDITIONAL NOTES: I tried some other schemes: "http", "data", "javascrip" (missing 't'). All of those work.
Assignee | ||
Comment 1•13 years ago
|
||
Interesting, if I search "javascript:" it appears. I think this breaks a common use of bookmarklets and search, so giving it some priority.
Whiteboard: [places-next-wanted]
Comment 2•13 years ago
|
||
Regression window(m-c hourly): Works: http://hg.mozilla.org/mozilla-central/rev/2e5e4197b9db Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a1) Gecko/20110418 Firefox/6.0a1 ID:20110418013520 Fails: http://hg.mozilla.org/mozilla-central/rev/202537779786 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a1) Gecko/20110418 Firefox/6.0a1 ID:20110418054324 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=2e5e4197b9db&tochange=202537779786
Reporter | ||
Comment 3•13 years ago
|
||
Hrm. The frecency changes somehow?
Assignee | ||
Comment 4•13 years ago
|
||
yes, that bug touched searches code. Thanks.
Blocks: 630225
Keywords: regression
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → mak77
OS: Mac OS X → All
Hardware: x86 → All
Comment 5•13 years ago
|
||
I thought we did this deliberately...
Assignee | ||
Comment 6•13 years ago
|
||
no, what we did is not storing javascript: in history, not bookmarks.
Assignee | ||
Comment 7•13 years ago
|
||
well, while cooking I rethought to what you said about we did this deliberately, actually you were half right. Among other changes, I made the searches reuse a part of the locationbar search code, and in the locationbar we don't match on javascript: uris, unless you type "javascript:". This is exactly what happens! I guess I should just add a param to AUTOCOMPLETE_MATCH to tell if it should skip javascript: uris or not.
Assignee | ||
Comment 8•13 years ago
|
||
I'm not 100% sure about naming of the argument but I don't have better ideas (actually I'd love if the behavior would be better configurable and I'd not need to add an argument :\).
Attachment #533933 -
Flags: review?(sdwilsh)
Assignee | ||
Comment 9•13 years ago
|
||
bah I didn't add the test to the diff
Assignee | ||
Comment 10•13 years ago
|
||
Attachment #533933 -
Attachment is obsolete: true
Attachment #533933 -
Flags: review?(sdwilsh)
Attachment #533939 -
Flags: review?(sdwilsh)
Assignee | ||
Updated•13 years ago
|
Flags: in-testsuite?
Comment 11•13 years ago
|
||
I'm a bit concerned about this because I know there are add-ons out there that use this SQL method now. Can we fix this without changing that?
Assignee | ||
Comment 12•13 years ago
|
||
Comment on attachment 533939 [details] [diff] [review] patch v1.1 Yeah, I suppose it would be better to evaluate a non-breaking approach, but I didn't have time to think about it yet. Clearing review request since I share your concern. For now a simple workaround is to search for "javascript:", this should return all existing bookmarklets.
Attachment #533939 -
Flags: review?(sdwilsh)
Assignee | ||
Comment 13•13 years ago
|
||
This is an alternative approach that doesn't touch the interface, apart adding a constant, that is allowed without uuid changes. It introduces a MATCH_ANYWHERE_UNMODIFIED that acts on pure underlying data skipping any transformation of it. Thoughts?
Attachment #533939 -
Attachment is obsolete: true
Attachment #542785 -
Flags: review?(sdwilsh)
Assignee | ||
Updated•13 years ago
|
Attachment #542785 -
Flags: review?(sdwilsh) → review?(dietrich)
Comment 14•13 years ago
|
||
Comment on attachment 542785 [details] [diff] [review] patch v2.0 Review of attachment 542785 [details] [diff] [review]: ----------------------------------------------------------------- looks a-ok, r=me.
Attachment #542785 -
Flags: review?(dietrich) → review+
Comment 15•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/bb92a1746f59
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Assignee | ||
Updated•9 years ago
|
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•