Closed
Bug 1144015
Opened 11 years ago
Closed 11 years ago
(Browser API) Fire mozbrowseropentab on ctrl-click and middle click
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
| Tracking | Status | |
|---|---|---|
| firefox40 | --- | fixed |
People
(Reporter: paul, Assigned: paul)
References
Details
Attachments
(1 file, 4 obsolete files)
|
11.94 KB,
patch
|
paul
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → paul
Status: NEW → ASSIGNED
Attachment #8578468 -
Flags: review?(justin.lebar+bug)
Updated•11 years ago
|
Attachment #8578468 -
Flags: review?(justin.lebar+bug) → review?(kchen)
Comment 3•11 years ago
|
||
Comment on attachment 8578468 [details] [diff] [review]
v1
Review of attachment 8578468 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/browser-element/BrowserElementChildPreload.js
@@ +593,5 @@
> + // Open in a new tab if middle click or ctrl/cmd-click.
> + if ((Services.appinfo.OS == 'Darwin' && e.metaKey) ||
> + (Services.appinfo.OS != 'Darwin' && e.ctrlKey) ||
> + e.button == 1) {
> + sendAsyncMsg('openwindow', {
Use a new event name? The original mozbrowseropenwindow has a different meaning.
Attachment #8578468 -
Flags: review?(kchen) → feedback+
Comment 4•11 years ago
|
||
And test case please :)
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8578468 -
Attachment is obsolete: true
Attachment #8584431 -
Flags: review?(kchen)
Comment 6•11 years ago
|
||
Comment on attachment 8584431 [details] [diff] [review]
v2
Review of attachment 8584431 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/browser-element/mochitest/mochitest.ini
@@ +122,5 @@
> # process. Default is OOP.
> [test_browserElement_NoAttr.html]
> [test_browserElement_NoPref.html]
> [test_browserElement_NoPermission.html]
> +[test_browserElement_OpenTab.html]
So this test case works in the inproc variant. Does it work out-of-process? Create _inproc_ and _oop_ tests accordingly.
::: dom/browser-element/mochitest/test_browserElement_OpenTab.html
@@ +1,4 @@
> +<!DOCTYPE HTML>
> +<html>
> +<!--
> +https://bugzilla.mozilla.org/show_bug.cgi?id=741587
Wrong link
Attachment #8584431 -
Flags: review?(kchen) → feedback+
| Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8584431 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•11 years ago
|
||
Test times out on emulator. But it doesn't make sense to test this on touch-only platforms.
| Assignee | ||
Comment 9•11 years ago
|
||
Attachment #8585438 -
Attachment is obsolete: true
| Assignee | ||
Updated•11 years ago
|
Summary: (Browser API) Fire mozbrowseropenwindow on ctrl-click and middle click → (Browser API) Fire mozbrowseropentab on ctrl-click and middle click
| Assignee | ||
Updated•11 years ago
|
Attachment #8586560 -
Flags: review?(kchen)
Comment 10•11 years ago
|
||
Comment on attachment 8586560 [details] [diff] [review]
v2.2
Review of attachment 8586560 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. One last thing: put test_browserElement_inproc_OpenTab.html in mochitest.ini, test_browserElement_oop_OpenTab.html in mochitest-oop.ini
Attachment #8586560 -
Flags: review?(kchen) → review+
| Assignee | ||
Comment 11•11 years ago
|
||
(In reply to Kan-Ru Chen [:kanru] from comment #10)
> Comment on attachment 8586560 [details] [diff] [review]
> v2.2
>
> Review of attachment 8586560 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Looks good. One last thing: put test_browserElement_inproc_OpenTab.html in
> mochitest.ini, test_browserElement_oop_OpenTab.html in mochitest-oop.ini
inproc won't work as it's intercepted by Firefox tabs in browser mochitest.
| Assignee | ||
Comment 12•11 years ago
|
||
Attachment #8586560 -
Attachment is obsolete: true
Attachment #8587824 -
Flags: review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 13•11 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/65ff49ab095d
Going off the assumption that those m-dt failures on the Try push were from a bad parent rev and not this patch. We'll see :)
Flags: in-testsuite+
Keywords: checkin-needed
Comment 14•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•