Last Comment Bug 565717 - "Search Google for" context menu entry should be in textareas/inputs too
: "Search Google for" context menu entry should be in textareas/inputs too
Status: RESOLVED FIXED
[good first bug]
:
Product: Firefox
Classification: Client Software
Component: Menus (show other bugs)
: Trunk
: All All
: -- normal with 9 votes (vote)
: Firefox 19
Assigned To: Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
:
Mentors:
: 360331 648971 686200 (view as bug list)
Depends on: 429244 799596
Blocks: cuts-cruft
  Show dependency treegraph
 
Reported: 2010-05-13 11:47 PDT by John Wayne Hill (UX Intern)
Modified: 2014-08-29 15:24 PDT (History)
31 users (show)
hskupin: in‑qa‑testsuite?
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Fix for the bug. (949 bytes, patch)
2010-08-26 14:50 PDT, Steve Glardon (Glards)
no flags Details | Diff | Review
Patch to nsContextMenu.js (2.52 KB, patch)
2011-02-28 12:15 PST, Joshua Jerome
gavin.sharp: review-
Details | Diff | Review
Patch updated. (2.55 KB, patch)
2011-03-01 12:46 PST, Joshua Jerome
gavin.sharp: review-
Details | Diff | Review
patch (2.75 KB, patch)
2011-04-24 09:21 PDT, :Gavin Sharp [email: gavin@gavinsharp.com]
no flags Details | Diff | Review
patch with test (8.58 KB, patch)
2012-08-21 08:16 PDT, Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
no flags Details | Diff | Review
patch with test rev2 (9.38 KB, patch)
2012-08-21 19:22 PDT, Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
no flags Details | Diff | Review
patch rev3 (10.99 KB, patch)
2012-08-29 09:27 PDT, Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
gavin.sharp: feedback+
Details | Diff | Review
patch rev4 (8.50 KB, patch)
2012-08-29 23:12 PDT, Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
gavin.sharp: review-
Details | Diff | Review
update nsContextMenu for patch rev4 (2.17 KB, patch)
2012-08-29 23:14 PDT, Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
no flags Details | Diff | Review
patch rev5 (14.49 KB, patch)
2012-08-31 05:30 PDT, Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
no flags Details | Diff | Review
patch rev5.1 (14.50 KB, patch)
2012-09-26 05:07 PDT, Tetsuharu OHZEKI [:tetsuharu] [UTC+9]
gavin.sharp: review+
Details | Diff | Review

Description John Wayne Hill (UX Intern) 2010-05-13 11:47:16 PDT
(Note: this is filed as part of the “Paper Cut” bugs — we assume that there may be multiple existing bugs on this. Please make them block this bug, and we will de-dupe if they are indeed exactly the same. Thanks!)

To reproduce:
1. open a page with a form
2. select some text on the page that isn't in a text input
3. notice the "Search Google for"
4. select some text within a text input
5. notice the "Search Google for" is missing

Recommendation:
Add the "Search Google for" context menu when selecting text within a text input and text area.
Comment 1 :Gavin Sharp [email: gavin@gavinsharp.com] 2010-05-14 14:45:34 PDT
This is a simple fix to nsContextMenu.js
Comment 2 David Kaplan 2010-07-04 07:08:07 PDT
I tried implementing the fix as an intro to the firefox codebase.
Only issue is I couldn't find the necessary equivalent to getBrowserSelection() for the text input fields (that function only seems to work on content selection text).

Unless I've completely approached this wrong...
Comment 3 David Kaplan 2010-07-04 07:20:35 PDT
I even tried document.commandDispatcher.focusedWindow.getSelection().toString(); but that only works for the normal content as well (not text/input fields)...
Comment 4 imradyurrad 2010-08-13 20:59:04 PDT
(In reply to comment #3)
> I even tried
> document.commandDispatcher.focusedWindow.getSelection().toString(); but that
> only works for the normal content as well (not text/input fields)...

Did you ever figure it out?
Comment 5 Steve Glardon (Glards) 2010-08-26 14:50:45 PDT
Created attachment 469626 [details] [diff] [review]
Fix for the bug.

This patch should fix the issue described here.
Comment 6 Johnny Stenback (:jst, jst@mozilla.com) 2010-08-27 14:20:44 PDT
Comment on attachment 469626 [details] [diff] [review]
Fix for the bug.

Would this patch not also potentially open us up to a security bug where this could return the selection object for another window, which could potentially be from a different domain?
Comment 7 Steve Glardon (Glards) 2010-08-28 05:11:59 PDT
(In reply to comment #6)
> Comment on attachment 469626 [details] [diff] [review]
> Fix for the bug.
> 
> Would this patch not also potentially open us up to a security bug where this
> could return the selection object for another window, which could potentially
> be from a different domain?

I did some tests and the security manager does not allow to access the window.getSelection() for a different domain.

I made a document with 2 frames. In each frame there was a text box. Both frame had a javascript called every second to output the window.getSelection(). I selected the text in the textbox and each frame was writing the selection of its own textbox.

Then I made a test to get the selection of the other frame, it was working. I tried with the other frame being www.google.com and that's where the security manager didn't allow to get the selection.

If you think of some other way I can test this, let me know.
Comment 8 imradyurrad 2010-11-21 23:29:43 PST
Three months of inactivity =(
Comment 9 Paul [pwd] 2010-12-13 05:01:24 PST
This would be a huge win, especially if it's as little change as described and/or implemented in the current patch that's up for review. Is there a chance that this could make it into final? Will we need to reassign this to a new reviewer?
Comment 10 :Gavin Sharp [email: gavin@gavinsharp.com] 2010-12-13 14:27:29 PST
That patch affects the result of window.getSelection, which is a web-exposed API - we're quite unlikely to take that change at this point, because of the compatibility concerns.

A more targeted fix would be to just adjust the nsContextMenu code to check both selections.
Comment 11 Paul [pwd] 2010-12-13 14:30:21 PST
Can someone with permissions mark the current patch obsolete?
Comment 12 :Gavin Sharp [email: gavin@gavinsharp.com] 2010-12-13 14:50:42 PST
It's not necessarily obsolete.
Comment 13 Joshua Jerome 2011-02-28 12:15:52 PST
Created attachment 515706 [details] [diff] [review]
Patch to nsContextMenu.js

This is my attempt at patching nsContextMenu.
Comment 14 :Gavin Sharp [email: gavin@gavinsharp.com] 2011-03-01 11:46:06 PST
Comment on attachment 515706 [details] [diff] [review]
Patch to nsContextMenu.js

Thanks for the patch! A couple of issues:

getTextSelection should probably use the same condition as setTarget does for inline spell checking: (this.onTextInput && !this.target.readOnly &&
 this.target.type != "password").

This seems to lose the 16-char limit argument to getBrowserSelection for the isTextSelection path, which seems wrong.
Comment 15 Joshua Jerome 2011-03-01 11:55:19 PST
(In reply to comment #14)
> Comment on attachment 515706 [details] [diff] [review]
> Patch to nsContextMenu.js
> 
> Thanks for the patch! A couple of issues:
> 
> getTextSelection should probably use the same condition as setTarget does for
> inline spell checking: (this.onTextInput && !this.target.readOnly &&
>  this.target.type != "password").

Oops, sorry. 

> This seems to lose the 16-char limit argument to getBrowserSelection for the
> isTextSelection path, which seems wrong.

Yeah I noticed this, but I wasn't sure how serious the change was since the string is shortened later on in isTextSelection.

Additionally the access key for searching and spell check are the same. Should I try to address that in the same patch or is that another bug?
Comment 16 Joshua Jerome 2011-03-01 12:46:16 PST
Created attachment 515998 [details] [diff] [review]
Patch updated.

This should fix both issues pointed out.
Comment 17 Paul [pwd] 2011-04-12 02:50:26 PDT
Could this still make it into Firefox 5 or are we past the deadline for that?
Comment 18 XtC4UaLL [:xtc4uall] 2011-04-12 10:01:45 PDT
*** Bug 648971 has been marked as a duplicate of this bug. ***
Comment 19 Paul [pwd] 2011-04-22 04:19:50 PDT
(In reply to comment #16)
> attachment.is_obsolete: 0 => 1; flag: review?(gavin.sharp@gmail.com)Created attachment 515998 [details] [diff] [review]
> Patch updated.
> 
> This should fix both issues pointed out.

Having read http://blog.mozilla.com/jorendorff/2011/04/20/how-to-fix-a-bug-episode-434494-part-2/ you might want to give Gavin a bit of a prod:
"       <heycam> in general I have no idea how long I should be letting my
                patches sit in someones queue before bugging them about it :)
   <jorendorff> At least 3 days. But never 2 weeks."
Comment 20 :Gavin Sharp [email: gavin@gavinsharp.com] 2011-04-24 09:19:15 PDT
Comment on attachment 515998 [details] [diff] [review]
Patch updated.

Sorry for the delay. I looked at this the other day, I have a couple of comments:
- I was wrong to suggest using exactly the same condition as spellcheck: unlike spellchecking, it's still useful to be able to search for selections from readOnly text fields, so I don't think we want that condition.
- You can simplify getTextSelection slightly by avoiding the temporary and just returning values directly.
- getTextSelection needs to enforce the length limit for selections returned from inputs as well, otherwise you could end up with a huge context menu.

Apart from that, I think this patch is good. I'm going to attach a patch that attempts to address these comments. Joshua, can you take a look at it and confirm that it looks good to you?
Comment 21 :Gavin Sharp [email: gavin@gavinsharp.com] 2011-04-24 09:21:21 PDT
Created attachment 528007 [details] [diff] [review]
patch

This adds basic support for truncating the length. Don't think we need to be as fancy as getBrowserSelection (re: only using "relevant" characters, or trimming whitespace), since text field selections are more likely to be "simple" text.
Comment 22 :Gavin Sharp [email: gavin@gavinsharp.com] 2011-04-24 09:22:52 PDT
It'd be nice to have some test coverage for this too. Something along the lines of browser_bug417483.js, maybe.
Comment 23 Graeme McCutcheon [:graememcc] 2011-09-11 03:28:53 PDT
*** Bug 686200 has been marked as a duplicate of this bug. ***
Comment 24 eviatarbach 2011-09-24 12:49:11 PDT
Any news on the progress of this bug?
Comment 25 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-07-28 19:56:21 PDT
Gavin, your patch works good on latest-mozilla-central.
(the patch need to rebase, but it's a easy work.)

Why doesn't this patch land?
Comment 26 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-01 15:52:51 PDT
I just haven't had time to followup. If you'd like to take this bug and write a test, that'd be great!
Comment 27 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-21 08:16:30 PDT
Created attachment 653760 [details] [diff] [review]
patch with test

I add tests.

But there is a problem.
On <input>, #context-search's accesskeys conflicts with #spell-check-enabled's one.
How do we resolve it?
Comment 28 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-21 11:24:25 PDT
Use a different access key? :) Are there no more available letters or something?
Comment 29 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-21 19:22:53 PDT
Created attachment 654051 [details] [diff] [review]
patch with test rev2

(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #28)
> Use a different access key? :) Are there no more available letters or
> something?

I change the accesskey of #spell-check-enabled.
Please review this.
Comment 30 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-28 08:00:41 PDT
Comment on attachment 654051 [details] [diff] [review]
patch with test rev2

Review of attachment 654051 [details] [diff] [review]:
-----------------------------------------------------------------

I tried tests, this patch failed on some tests. I need to fix them before reviewing.

BTW, Gavin, Who should be developer of this patch? I took over from an original developer.
Comment 31 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-29 09:27:32 PDT
Created attachment 656489 [details] [diff] [review]
patch rev3

Update the patch.
I change the approach to get a selected text in a text edit area.
(As a result, this does not have parts which I took over. So I sign my name)

And also, this passes tests which this patch relates ;)
https://tbpl.mozilla.org/?tree=Try&rev=1c2de47eac78
Comment 32 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-29 15:33:57 PDT
Comment on attachment 656489 [details] [diff] [review]
patch rev3

>diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js

> function getBrowserSelection(aCharLen) {

>+    let isOnTextInput = function isOnTextInput(aElm) {
>+      if (aElm instanceof HTMLInputElement) {
>+        return aElm.mozIsTextField(false);
>+      }
>+      else {
>+        return (aElm instanceof HTMLTextAreaElement);
>+      }
>+    };

Just use:
function isOnTextInput(elem) {
  return elem instanceof HTMLTextAreaElement ||
         ((elem instanceof HTMLInputElement) && elem.mozIsTextField(true));
}

>+    if (isOnTextInput(elm) && elm.type !== "password") {

Then you don't need to check type!=="password" here.

>+      selection = elm.QueryInterface(Ci.nsIDOMNSEditableElement).

Can this QI fail?
Comment 33 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-29 23:04:07 PDT
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #32)
> > if (isOnTextInput(elm) && elm.type !== "password") {
> 
> Then you don't need to check type!=="password" here.

I don't think it. If we remove to check type!=="password", getBrowserSelection() gets "●●●●●" when input[type="password"] has focus. I seems that this is meaningless.
And as a result, #context-search is shown with label like "Search for '●●●●●'". I seem this is tedious. e.g. Chromium does not show "search for google" on context-menu input[type="password"].

However, if we think that getBrowserSelection() should be designed as getting whatever browser selected text, we need to remove to check type!=="password" from getBrowserSelection() and I'll modify nsContextMenu.js to not showing #context-search on input[type="password"].

Which should I do?


> > selection = elm.QueryInterface(Ci.nsIDOMNSEditableElement).
> 
> Can this QI fail?

No. We can't access |elm.editor| if we delete this QI.
Comment 34 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-29 23:12:07 PDT
Created attachment 656763 [details] [diff] [review]
patch rev4
Comment 35 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-29 23:14:14 PDT
Created attachment 656764 [details] [diff] [review]
update nsContextMenu for patch rev4

my proposal.
-getBrowserSelection() should be designed as getting whatever browser selected text.
-not showing #context-search on input[type="password"].
Comment 36 Masayuki Nakano [:masayuki] (Mozilla Japan) (working slowly due to injured) 2012-08-30 02:08:41 PDT
FYI:

If you need to check if the editor is password field mode strictly, you need to check if nsIEditor::flags has nsIPlaintextEditor::eEditorPasswordMask. E.g.:

> var isPasswordEditor =
>   !!(inputElement.QueryInterface(Ci.nsIDOMNSEditableElement).editor.flags &
>        Ci.nsIPlaintextEditor.eEditorPasswordMask);

Although, I don't know if the flag changed editors work fine. If some add-ons change the flag for canceling the mask in password field, this check may be better. If we need to make this feature for such add-ons, we should use this check. But I'm not sure if it's worth.
Comment 37 Masatoshi Kimura [:emk] 2012-08-30 04:34:08 PDT
Is it really desiable to send the password to Google even if some add-ons remove the mask?
Comment 38 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-30 05:14:34 PDT
(In reply to OHZEKI Tetsuharu [:saneyuki_s] from comment #35)
> Created attachment 656764 [details] [diff] [review]
> update nsContextMenu for patch rev4
> 
> my proposal.
> -getBrowserSelection() should be designed as getting whatever browser
> selected text.
> -not showing #context-search on input[type="password"].

My explaining may misread a reader.
At patch rev4, #context-searchselect is not shown on input[type="password"] because the return value of getBrowserSelection() decides gContextMenu.isTextSelected and showing #context-searchselect (This is currently implementation).

This proposal patch aims is following:
1. Change getBrowserSelection() to get simply all browser selected text even if user selects a text in input[type="password"].
2. By effect (1), Move the part of handling to decide gContextMenu.isTextSelected & showing #context-searchselect to nsContextMenu.getTextSelection().(In reply to Masatoshi Kimura [:emk] from comment #37)
> Is it really desiable to send the password to Google even if some add-ons
> remove the mask?

(In reply to Masatoshi Kimura [:emk] from comment #37)
> Is it really desiable to send the password to Google even if some add-ons
> remove the mask?

I think that #context-searchselect should not be shown in input[type="password"].
So I'll think to implement this bug so that users cannot command "Search Google for" in input[type="password"].
Comment 39 Masayuki Nakano [:masayuki] (Mozilla Japan) (working slowly due to injured) 2012-08-30 05:34:56 PDT
(In reply to OHZEKI Tetsuharu [:saneyuki_s] from comment #38)
> (In reply to Masatoshi Kimura [:emk] from comment #37)
> > Is it really desiable to send the password to Google even if some add-ons
> > remove the mask?
> 
> I think that #context-searchselect should not be shown in
> input[type="password"].
> So I'll think to implement this bug so that users cannot command "Search
> Google for" in input[type="password"].

Good point. It makes sense. Although, input[type="text"] can be password field. But we must never meet such case.
Comment 40 Dão Gottwald [:dao] 2012-08-30 05:58:55 PDT
Comment on attachment 656763 [details] [diff] [review]
patch rev4

>+      return (elem instanceof HTMLTextAreaElement) ||
>+             ( (elem instanceof HTMLInputElement) && elem.mozIsTextField(false) );

The parentheses around elem instanceof Foo don't seem useful.

>+      selection = element.QueryInterface(Ci.nsIDOMNSEditableElement).
>+                  editor.selection.toString();

Skimming this patch made me look for a variable named "editor". Please make this more readable by moving the trailing dot from the first line to the beginning of the second line:

      selection = element.QueryInterface(Ci.nsIDOMNSEditableElement)
                         .editor.selection.toString();

>-<!ENTITY spellCheckEnable.accesskey "S">
>+<!ENTITY spellCheckEnable.accesskey "g">

This doesn't look like a change that's necessarily limited to en-US, which means that you need to change the entity name.
Comment 41 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-30 06:20:03 PDT
(In reply to Masayuki Nakano (:masayuki) (Mozilla Japan) from comment #39)
> Although, input[type="text"] can be password field. But we must never meet such case.

I think it may be very edge case. There is no the end point if we start to catch them...


(In reply to Dão Gottwald [:dao] from comment #40)
> Comment on attachment 656763 [details] [diff] [review]
> patch rev4
>
> >-<!ENTITY spellCheckEnable.accesskey "S">
> >+<!ENTITY spellCheckEnable.accesskey "g">
> 
> This doesn't look like a change that's necessarily limited to en-US, which
> means that you need to change the entity name.

Umm.... Do you have any suitable entity name...? I don't find it.

BTW, I don't know well about L10n. If we change a entity, Is finding it very hard? I seem that it will appear in Mercurial's changelog.
Comment 42 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-30 15:02:14 PDT
(In reply to Dão Gottwald [:dao] from comment #40)
> >-<!ENTITY spellCheckEnable.accesskey "S">
> >+<!ENTITY spellCheckEnable.accesskey "g">
> 
> This doesn't look like a change that's necessarily limited to en-US, which
> means that you need to change the entity name.

How would this affect other locales?
Comment 43 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-30 15:02:51 PDT
(In reply to OHZEKI Tetsuharu [:saneyuki_s] from comment #33)
> I don't think it. If we remove to check type!=="password",
> getBrowserSelection() gets "●●●●●" when input[type="password"] has focus

You also need to pass true to mozIsTextField, which filters out password elements.
Comment 44 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-30 15:05:17 PDT
I don't think getBrowserSelection should return selected text from password fields.
Comment 45 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-30 15:05:32 PDT
Comment on attachment 656763 [details] [diff] [review]
patch rev4

Looks like there's a bunch of feedback here to address :)
Comment 46 Dão Gottwald [:dao] 2012-08-30 19:58:30 PDT
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #42)
> (In reply to Dão Gottwald [:dao] from comment #40)
> > >-<!ENTITY spellCheckEnable.accesskey "S">
> > >+<!ENTITY spellCheckEnable.accesskey "g">
> > 
> > This doesn't look like a change that's necessarily limited to en-US, which
> > means that you need to change the entity name.
> 
> How would this affect other locales?

The same way it affects en-US: a new combination of menu items opening the door to new conflicts.
Comment 47 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-30 22:11:00 PDT
(In reply to Dão Gottwald [:dao] from comment #46)
> >-<!ENTITY spellCheckEnable.accesskey "S">
> >+<!ENTITY spellCheckEnable.accesskey "g">
> 
> The same way it affects en-US: a new combination of menu items opening the
> door to new conflicts.

Do you mean that the above new accesskey cannot resolve to conflict because the access key of #context-searchselect will conflict to the one of #context-showonlythisframe ?
Comment 48 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-08-30 22:50:46 PDT
He's saying that we're changing when menu items appear, so we're creating the potential for new conflicts, and that applies to all locales. He's right, but simply changing the entity name seems unlikely to be sufficient to alert localizers to this new potential conflict. I'm not sure how carefully they tend to look out for accesskey conflicts in context menus, given the numerous different possible combinations.

I guess the best option is to just change the name of contextMenuSearchText.* (contextMenuSearch.*?) and spellCheckEnable.* (spellCheckToggle.*?), and comment here accordingly so that those who check blame notice.
Comment 49 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-31 01:08:32 PDT
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #48)
> He's saying that we're changing when menu items appear, so we're creating
> the potential for new conflicts, and that applies to all locales. He's
> right, but simply changing the entity name seems unlikely to be sufficient
> to alert localizers to this new potential conflict. I'm not sure how
> carefully they tend to look out for accesskey conflicts in context menus,
> given the numerous different possible combinations.
> 
> I guess the best option is to just change the name of
> contextMenuSearchText.* (contextMenuSearch.*?) and spellCheckEnable.*
> (spellCheckToggle.*?), and comment here accordingly so that those who check
> blame notice.

Thank you for your extensive explanation. I understand.
I'll change entity names in the next patch.
Comment 50 Axel Hecht [:Pike] 2012-08-31 04:14:48 PDT
Not sure actually.

Can we create a variant of our mozmill accesskey conflict check instead? I'm thinking of a dummy page with the typical constructs, fire the context menu programmatically, and see if the menu items have conflicting accesskeys.

Then they could report along with the tests for the pref dialog etc on http://mozmill-ci.blargon7.com/#/l10n/reports.

If I compare the existing accesskeys, http://mxr.mozilla.org/l10n-mozilla-aurora/search?string=contextMenuSearchText.accesskey&find=browser&findi=&filter=^[^\0]*%24&hitlimit=&tree=l10n-mozilla-aurora vs http://mxr.mozilla.org/l10n-mozilla-aurora/search?string=spellCheckEnable.accesskey&find=toolkit&findi=&filter=^[^\0]*%24&hitlimit=&tree=l10n-mozilla-aurora, it's 50/50 on where we introduce a regression.
Comment 51 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-08-31 05:30:28 PDT
Created attachment 657237 [details] [diff] [review]
patch rev5

try: https://tbpl.mozilla.org/?tree=Try&rev=9bea1aa9eb6f

I change entity names.
Comment 52 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-09-26 05:07:41 PDT
Created attachment 664899 [details] [diff] [review]
patch rev5.1

Rebased on latest mozilla-central.
Comment 53 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-10-08 07:57:10 PDT
Comment on attachment 664899 [details] [diff] [review]
patch rev5.1

Sorry for the delay here - we should file a separate bug for creating that mozmill test to ensure that there are no conflicts in context menu access keys.
Comment 54 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-10-08 09:27:02 PDT
(In reply to :Gavin Sharp (use gavin@gavinsharp.com for email) from comment #53)
> Comment on attachment 664899 [details] [diff] [review]
> patch rev5.1
> 
> Sorry for the delay here - we should file a separate bug for creating that
> mozmill test to ensure that there are no conflicts in context menu access
> keys.

Thank you for reviewing.
So,  Do we need create a new mozmill test before checking-in this patch?
Comment 55 :Gavin Sharp [email: gavin@gavinsharp.com] 2012-10-08 09:56:16 PDT
No; I think we should just file a bug about it.
Comment 56 Tetsuharu OHZEKI [:tetsuharu] [UTC+9] 2012-10-08 10:07:04 PDT
I filed the new bug about mozmill test (bug 799149), and add "check-in needed" flag to this.
Comment 57 Daniel Holbert [:dholbert] 2012-10-08 13:09:20 PDT
https://hg.mozilla.org/integration/mozilla-inbound/rev/5a3ebc9d46ac
Comment 58 Ed Morley [:emorley] 2012-10-09 07:33:52 PDT
https://hg.mozilla.org/mozilla-central/rev/5a3ebc9d46ac
Comment 59 Philip Chee 2013-07-26 08:06:34 PDT
*** Bug 360331 has been marked as a duplicate of this bug. ***
Comment 60 Henrik Skupin (:whimboo) 2014-08-29 15:24:04 PDT
Removing my name from in-qa-testsuite flag for a better query.

Note You need to log in before you can comment on or make changes to this bug.