Commit graph

860 commits

Author SHA1 Message Date
Jan-Erik Rediger
50555e7773 Bug 1468761 - Migrate external Telemetry tests to handle packed histograms r=chutten
Depends on D9236

Differential Revision: https://phabricator.services.mozilla.com/D9237

--HG--
extra : moz-landing-system : lando
2018-11-01 13:46:59 +00:00
Andrea Marchesini
71b39f6750 Bug 1503551 - Make window.external.AddSearchProvider a dummy function, r=smaug 2018-10-31 18:30:18 +01:00
Siddhant085
6ab6938f8c Bug 1493483 - Use nsIBrowserSearchService::defaultEngine instead of currentEngine (in production code) r=Standard8
nsIBrowserSearchService::currentEngine and nsIBrowserSearchService::defaultEngine are the same thing.
The use of defaultEngine makes more sense and thus we are phasing out the use of currentEngine and replace it with defaultEngine.

Differential Revision: https://phabricator.services.mozilla.com/D7972

--HG--
extra : moz-landing-system : lando
2018-10-27 16:52:02 +00:00
Mark Banner
e7f2c79ef9 Bug 1502069 - isTabEmpty should be a property on the tab rather than a global function. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9926

--HG--
extra : moz-landing-system : lando
2018-10-26 16:42:11 +00:00
Brian Grinstead
8e116ab9bc Bug 1502151 Use getAnonymousElementByAttribute instead of elementById to reach into XBL anon content for browser-search-autocomplete-result-popup;r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9833

--HG--
extra : moz-landing-system : lando
2018-10-25 21:31:55 +00:00
Brian Grinstead
a1b87b1887 Bug 1493536 - Convert search-one-offs binding to custom element;r=dao
Differential Revision: https://phabricator.services.mozilla.com/D9710

--HG--
rename : browser/components/search/content/search.xml => browser/components/search/content/search-one-offs.js
extra : moz-landing-system : lando
2018-10-25 09:36:15 +00:00
Julian Descottes
2fcd6cb020 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

Differential Revision: https://phabricator.services.mozilla.com/D8739

--HG--
extra : moz-landing-system : lando
2018-10-23 07:12:23 +00:00
Sebastian Hengst
03d626b346 Bug 1488946 - Disable browser_aboutSearchReset.js until telemetry probe has been extended to fix permafail on version increase. a=version-increase-fix
--HG--
extra : histedit_source : 8658fab3a14fd5e4116e7c0310f512484c586e6c
2018-10-22 16:28:29 +03:00
Michael Kaply
ae44c72cf8 Bug 1499315 - Remove datatype for search bar addEngine. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D8908

--HG--
extra : moz-landing-system : lando
2018-10-16 23:04:47 +00:00
Michael Kaply
f4738dbcc9 Bug 1484232 - Move query to end and remove unused params. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D3630

--HG--
extra : moz-landing-system : lando
2018-10-11 21:28:15 +00:00
Csoregi Natalia
523d3ae4fe Backed out changeset c35bab726b03 (bug 1493483) for multiple browser-chrome failures e.g browser_extension_controlled.js. CLOSED TREE 2018-10-09 23:26:24 +03:00
Siddhant085
5e4fc9f261 Bug 1493483 - Use nsIBrowserSearchService::defaultEngine instead of currentEngine (in production code) r=Standard8
nsIBrowserSearchService::currentEngine and nsIBrowserSearchService::defaultEngine are the same thing.
The use of defaultEngine makes more sense and thus we are phasing out the use of currentEngine and replace it with defaultEngine.

Differential Revision: https://phabricator.services.mozilla.com/D7972

--HG--
extra : moz-landing-system : lando
2018-10-09 18:40:08 +00:00
Diego Pino Garcia
45377e5099 Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-10-09 13:39:35 +01:00
Brian Grinstead
c30ef4b74f Bug 1496478 - Only change the search engine when scrolling on searchbox if accel key is pressed;r=adw
The Custom Element migration missed the [modifiers=accel] in XBL on the DOMMouseScroll handler.

Differential Revision: https://phabricator.services.mozilla.com/D7780

--HG--
extra : moz-landing-system : lando
2018-10-04 22:59:01 +00:00
Mike Conley
35fa9cea9f Bug 1492482 - Remove browser_abouthome_behavior.js test. r=mkaply
This test appears to have been disabled since 2014, and about:home has changed
a whole bunch since then. I also believe that searching from the new about:home
is being tested elsewhere.

Depends on D6956

Differential Revision: https://phabricator.services.mozilla.com/D6957

--HG--
extra : moz-landing-system : lando
2018-10-02 17:59:19 +00:00
Mike Conley
52ccc0b8a0 Bug 1492482 - Remove CPOW usage from browser_aboutSearchReset.js. r=nhnt11
Depends on D6955

Differential Revision: https://phabricator.services.mozilla.com/D6956

--HG--
extra : moz-landing-system : lando
2018-10-02 17:57:48 +00:00
Drew Willcoxon
3f112a8327 Bug 1491724 - Search engine keyword should be highlighted only when the search will actually be performed on the corresponding search engine r=mak
My reasoning in https://bugzilla.mozilla.org/show_bug.cgi?id=1484737#c3 was wrong. I assumed that if a result started with a search alias then it had to be a search alias result, but that's clearly not true.

This is such a pain to get right, and all the messy logic in this patch reflects that.

Differential Revision: https://phabricator.services.mozilla.com/D6528

--HG--
extra : moz-landing-system : lando
2018-09-28 23:29:26 +00:00
Brian Grinstead
eaaac5ca03 Bug 1460982 - Convert <searchbar> to a Custom Element;r=adw
Differential Revision: https://phabricator.services.mozilla.com/D5912

--HG--
rename : browser/components/search/content/search.xml => browser/components/search/content/searchbar.js
extra : moz-landing-system : lando
2018-09-27 23:09:55 +00:00
Zibi Braniecki
83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

Differential Revision: https://phabricator.services.mozilla.com/D6339

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Jonathan Kingston
555f89c8d7 Bug 1485305 - browser/ tests Ensure loadURI always passes a triggeringPrincipal() r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D4552

--HG--
extra : source : 2cf17e4974823d09d0fdd1aef64e69e840b288a1
extra : intermediate-source : 4771e6948a78507aa95a56e5b324d87dc82e9009
2018-08-29 15:44:56 +01:00
Gijs Kruitbosch
ba80b3c145 Bug 1492196 - fix browser_searchbar_openpopup.js so we don't accidentally try to drag content in the URL bar, r=florian
Differential Revision: https://phabricator.services.mozilla.com/D6180

--HG--
extra : moz-landing-system : lando
2018-09-19 10:15:46 +00:00
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Narcis Beleuzu
6ff3b886ac Backed out changeset 7a8e8fa7a3f0 (bug 1484232) as per mkaply`s request.
--HG--
extra : rebase_source : 25a0bf756b1d223e6d33959a5ef0597a4c527504
2018-08-22 22:26:22 +03:00
Michael Kaply
c87b34b76f Bug 1484232 - Move query to end and remove unused params. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D3630

--HG--
extra : moz-landing-system : lando
2018-08-20 12:01:01 +00:00
Mark Banner
84de4abc30 Bug 1481344 - Fix perma-fail in browser_searchEngine_behaviors.js, improve how the search bar is cleared. r=mkaply
MozReview-Commit-ID: IgT9aU41BHW

Differential Revision: https://phabricator.services.mozilla.com/D3765

--HG--
extra : moz-landing-system : lando
2018-08-20 15:05:31 +00:00
Brian Grinstead
4995c61b0f Bug 1482667 - Migrate mochitest-browser tests in browser/ to use element variations of firstChild, etc;r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3530

--HG--
extra : moz-landing-system : lando
2018-08-17 16:45:52 +00:00
Brian Grinstead
829d7647d3 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275

--HG--
extra : moz-landing-system : lando
2018-08-14 16:22:44 +00:00
Noemi Erli
be6ab34c54 Merge mozilla-central to inbound. a=merge CLOSED TREE
--HG--
extra : rebase_source : 691b5b30b6c3b2ddece605c045ad913e466fdbab
2018-08-10 00:35:58 +03:00
Mark Banner
226dbd7bdc Bug 1456078 - Upgrade ESLint to version 5.3.0, and eslint-plugin-html to 4.0.5. r=mossop
MozReview-Commit-ID: 7yvvXKxYodA

Differential Revision: https://phabricator.services.mozilla.com/D2834

--HG--
extra : moz-landing-system : lando
2018-08-07 14:46:19 +00:00
Brian Grinstead
abf1620630 Bug 1479125 - Migrate calls that expect an element to be returned to use element variation firstChild etc to firstElementChild etc;r=Paolo
This allows the JS to work in HTML documents, where whitespace is preserved. In XUL
documents, whitespace is ignored when parsing so text nodes are generally not returned.

The following changes were made, with manual cleanups as necessary (i.e. when firstChild actually
refers to a text node, or when firstChild is used in a loop to empty out an element):

  firstChild->firstElementChild
  lastChild->lastElementChild
  nextSibling->nextElementSibling
  previousSibling->previousElementSibling
  childNodes->children

MozReview-Commit-ID: 95NQ8syBhYw

--HG--
extra : rebase_source : 186d805f7a2a56694dda9032aceac2dfe5424753
2018-08-08 15:22:53 -07:00
Jonathan Kingston
2f0987a202 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb r?=gijs
Summary: Depends on D2046

Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : source : 33884d05cc94463950b31fab1fd2f37ada9becef
extra : intermediate-source : 72471adb75d5ec3dc2b0c8f972a6f1f26bfd3ae2
extra : histedit_source : f384cbab58401575afc3443c9a431b73cff806d4
2018-07-06 21:16:29 +01:00
dvarga
12f19b94e9 Backed out 2 changesets (bug 1362034) for failure at browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE
Backed out changeset 1c3329958b8a (bug 1362034)
Backed out changeset f68b1b76af36 (bug 1362034)

--HG--
extra : histedit_source : 6169c5ffe856266d3bc8b2ca32f4b67054c71bbe
2018-08-08 22:11:56 +03:00
Jonathan Kingston
c15f69d427 Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : rebase_source : ccded0f06a0dc4567b827f42ee29f4b8954154fe
extra : amend_source : 94da8ecc053e56958fa4137d7e497362fa2c11f1
2018-08-08 20:05:30 +03:00
Andreea Pavel
f5c1119983 Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE
Backed out changeset 8c8925b75aa2 (bug 1362034)
Backed out changeset ff6b05c96094 (bug 1362034)
2018-08-06 20:42:44 +03:00
Jonathan Kingston
4ca581ffed Bug 1362034 - Tests for addTab() to provide the correct triggering principal. r=ckerschb,Gijs
Summary: Depends on D2046

Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2047

--HG--
extra : rebase_source : 4bb9e7feb0704239756e6e38623c0fea81669f7b
extra : amend_source : 9417f96547735fbdc55ea23666327a5cb86ac92f
2018-08-06 19:56:37 +03:00
Brian Grinstead
b0b2b901d0 Bug 1470910 - Migrate input-box and input-box-spell to a Custom Element;r=paolo
Instead of `<xul:hbox class="textbox-input-box">`, consumers now should use
`<xul:moz-input-box />`. This covers the normal case and also handles
[spellcheck=true] while sharing much of the code within one class.

MozReview-Commit-ID: DjvT8sFq3SQ

--HG--
rename : toolkit/content/widgets/textbox.xml => toolkit/content/widgets/textbox.js
2018-08-02 20:53:59 -07:00
Kris Maglione
031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Kris Maglione
02ba563399 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : source : 0d69b4fb1ed43751cfcbc0b4f2fe3b6a49bc0494
extra : histedit_source : d0ce31513ffaae2fd7f01f6567a97b6d2d96b797%2Cfff837de7a00fa90809d2c3e755097180dfd56d8
2018-05-20 18:10:16 -07:00
Narcis Beleuzu
561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione
cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Kris Maglione
636f1839e5 Bug 1463016: Part 5 - Add domWindow property to DocShellTreeItem and update callers to use it. r=nika
MozReview-Commit-ID: FRRAdxLHRtG

--HG--
extra : rebase_source : 36565ef5e74360aad14062005e5bdab2939e888b
2018-05-20 18:10:16 -07:00
Boris Zbarsky
270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Michael Kaply
53432d4bf9 Bug 1462015 - Remove browser.search.countryCode pref. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D2187

--HG--
extra : moz-landing-system : lando
2018-07-18 13:55:16 +00:00
Francesco Lodolo (:flod)
6be967c711 Bug 1475298 - [en-GB] Switch URL to https for Chambers searchplugin r=mkaply
MozReview-Commit-ID: 81dG8xbbxdq

--HG--
extra : rebase_source : c48b42239231ef0e84e45cafdc3825b6cc0174ff
2018-07-16 08:44:28 +02:00
Francesco Lodolo (:flod)
d7d4117b37 Bug 1474553 - [br] Update Freelang searchplugin to https, update icon r=mkaply
MozReview-Commit-ID: AxsKzQGrTOz

--HG--
extra : rebase_source : 1fba07c540febbc3dda87b0af2629b6092a17c25
2018-07-16 08:37:58 +02:00
Marco Bonardo
021fc63b95 Bug 1388123 - Make autocomplete handle Enter on keydown. r=MattN
Some pages, like the Google login form, submit information on keydown, that
causes us to not autocomplete, because we handle keypress instead.
The patch changes autocomplete to happen on keydown.
Unfortunately formautofill also uses keydown and tries to access popup data too
late, thus it needs some hacks to work properly.
In general the formautofill code has too many indirections due to e10s, and that
makes the fix more fragile than we'd want. Ideally content autocomplete should
have its own codebase, rather than sharing the same controller as chrome code.

MozReview-Commit-ID: oAyASmDFm1

--HG--
extra : rebase_source : 64c1e7c85b203904b59e3a1e019e7f52f290cfea
2018-06-22 12:37:09 +02:00
Michael Kaply
b0734baf76 Bug 1455326 - Don't open search in new tab if current tab is blank. r=adw
MozReview-Commit-ID: BqjoKZ3H7Yq

--HG--
extra : rebase_source : 32786e495d2d645b1e61a42f86a2822b2fe93360
2018-07-05 18:05:50 -05:00
Michael Kaply
68b7b1db05 Bug 1466631 - Move MercadoLibre to UTF-8, https and fix icon. r=flod
MozReview-Commit-ID: KHOWfOPIQtl

--HG--
extra : rebase_source : c6293cc04918175f05fec13bc294bba96626df73
2018-06-29 17:33:07 -05:00
Brian Grinstead
c7f5ea7a6d Bug 1466833 - Upgrade the <xul:deck> inside of search-one-offs at the beginning of the XBL constructor;r=timdream
Right now, a XBL <constructor> runs before Custom Elements inside of its
<content> get upgraded. This leads to unexpected behavior where deck.selectedIndex = N
causes selectedIndex to get set as an expando property on the DOM node rather
than running the setter defined by the Custom Element.

Once the Custom Element does finally get upgraded, the selectedIndex getter and
setter don't get attached since there's an expando property with the same name.

This isn't a case we want to have to support from calling code. So this patch fixes
this one case by manually upgrading the element inside the constructor before
anything accesses the node. In Bug 1470242 we are planning to make this happen
behind the scenes so we don't need to do this for every CE inside of <content>.

MozReview-Commit-ID: 3D0QbOOJvDI

--HG--
extra : rebase_source : 1287445f2740dfe6a3ed5bdf273bb2b4b91b213c
2018-06-21 17:31:41 -07:00
Gurzau Raul
c2bc9d408d Backed out changeset c1561409e431 (bug 1466833) for permafailing on browser/components/search/test/browser_oneOffHeader.js on a CLOSED TREE 2018-06-22 00:17:12 +03:00