Closed
Bug 674771
Opened 13 years ago
Closed 13 years ago
Add a "Paste & Go" entry in the URL bar context menu
Categories
(Firefox for Android Graveyard :: General, enhancement, P1)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 8
People
(Reporter: mounir, Assigned: mounir)
Details
(Whiteboard: [inbound])
Attachments
(1 file, 2 obsolete files)
4.49 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
This feature that is in Firefox Desktop would be really useful in Firefox Mobile! :)
Comment 1•13 years ago
|
||
I agree. This would be nice feature. I have had to "paste and press 'Go'" lately and it was slightly painful.
Comment 2•13 years ago
|
||
It's extra painful, because there is no "Go" button at the right side of the url bar.
Updated•13 years ago
|
Severity: normal → enhancement
Priority: -- → P1
Assignee | ||
Comment 3•13 years ago
|
||
Mark, let me know how that looks like...
Assignee | ||
Comment 4•13 years ago
|
||
With the real patch, it's even better!
Attachment #552417 -
Attachment is obsolete: true
Attachment #552417 -
Flags: review?
Attachment #552418 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 5•13 years ago
|
||
Comment on attachment 552418 [details] [diff] [review] Patch v1 Actually, this patch still need some love... Will ask another review later.
Attachment #552418 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 6•13 years ago
|
||
Two mistakes were in the previous patch: 1. I did some clean-up just before attaching and realized I removed the line defining |target| in pasteAndGo function... 2. The "Paste and Go" context menu item was being shown even for non-url textboxes. Mark, are they tests for Fennec context menu? I wasn't able to find them :(
Attachment #552418 -
Attachment is obsolete: true
Attachment #552624 -
Flags: review?(mark.finkle)
Comment 7•13 years ago
|
||
Comment on attachment 552624 [details] [diff] [review] Patch v2 >diff --git a/mobile/chrome/content/bindings.xml b/mobile/chrome/content/bindings.xml >- if (hasData && (!aTextbox.readOnly || aIgnoreReadOnly)) >+ if (hasData && (!aTextbox.readOnly || aIgnoreReadOnly)) { > json.types.push("paste"); >+ if (aTextbox.type == "url") { >+ json.types.push("paste-n-go"); >+ } >+ } Let's be slightly more general here. Since we are testing pasting into a URL textbox, let's use "paste-url" instead of "paste-n-go" >diff --git a/mobile/chrome/content/browser.xul b/mobile/chrome/content/browser.xul >+ <richlistitem class="context-command" id="context-paste-n-go" type="paste-n-go" onclick="ContextCommands.pasteAndGo();"> >+ <label value="&pasteandgo.label;"/> >+ </richlistitem> Make the "paste-url" change here and we try to use a &pasteAndGo;" style for entities >diff --git a/mobile/locales/en-US/chrome/browser.dtd b/mobile/locales/en-US/chrome/browser.dtd > <!ENTITY paste.label "Paste"> >+<!ENTITY pasteandgo.label "Paste and Go"> Desktop uses "Paste & Go" so let's copy that r+ with nits fixed
Attachment #552624 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #7) > > <!ENTITY paste.label "Paste"> > >+<!ENTITY pasteandgo.label "Paste and Go"> > > Desktop uses "Paste & Go" so let's copy that I forgot to mention this but I didn't use "Paste & Go" because it seems to be invalid inside the DTD. I tried "\&" but it didn't work either. I wonder what syntax would work.
Comment 9•13 years ago
|
||
(In reply to Mounir Lamouri (:volkmar) from comment #8) > (In reply to Mark Finkle (:mfinkle) from comment #7) > > > <!ENTITY paste.label "Paste"> > > >+<!ENTITY pasteandgo.label "Paste and Go"> > > > > Desktop uses "Paste & Go" so let's copy that > > I forgot to mention this but I didn't use "Paste & Go" because it seems to > be invalid inside the DTD. I tried "\&" but it didn't work either. I wonder > what syntax would work. "Paste & Go"
Assignee | ||
Comment 10•13 years ago
|
||
Pushed to inbound with the requested changes. Thank you for the quick review Mark! :)
Flags: in-testsuite?
Whiteboard: [inbound]
http://hg.mozilla.org/mozilla-central/rev/9e269bcacf43
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 8
Comment 12•13 years ago
|
||
Verified Fixed Mozilla/5.0 (Android; Linux armv7l; rv:8.0a1) Gecko/20110815 Firefox/8.0a1 Fennec/8.0a1 Andreaa, can you please create a new Litmus BFT test?
Status: RESOLVED → VERIFIED
Flags: in-litmus?(andreea.pod)
Comment 13•13 years ago
|
||
https://litmus.mozilla.org/show_test.cgi?id=29701 testcase added
Updated•13 years ago
|
Flags: in-litmus?(andreea.pod) → in-litmus+
Assignee | ||
Comment 14•13 years ago
|
||
(In reply to Andreea Pod from comment #13) > https://litmus.mozilla.org/show_test.cgi?id=29701 testcase added Thanks :)
Comment 15•13 years ago
|
||
(In reply to Mounir Lamouri (:volkmar) from comment #14) > (In reply to Andreea Pod from comment #13) > > https://litmus.mozilla.org/show_test.cgi?id=29701 testcase added > > Thanks :) With pleasure and sorry for adding it so late.
You need to log in
before you can comment on or make changes to this bug.
Description
•