Граф коммитов

21557 Коммитов

Автор SHA1 Сообщение Дата
Luca Greco d59c650c62 Bug 1285500 - Re-enable browser_ext_browserAction_popup.js on windows opt. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D21524

--HG--
extra : moz-landing-system : lando
2019-02-28 13:42:24 +00:00
Alphan Chen 6d33e62c06 Bug 1497147 - Rewrite "mapFrameTree" implementation to C++ r=peterv
Get rid of mapFrameTree() implementation

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

--HG--
extra : moz-landing-system : lando
2019-02-28 13:09:54 +00:00
lloan a0afe6dd19 Bug 1530777 - Replace waitForCondition with TestUtils.waitForCondition. r=johannh
Bug 1530777 - Replace waitForCondition with TestUtils.waitForCondition. r=johannh

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

--HG--
extra : moz-landing-system : lando
2019-02-28 11:41:59 +00:00
Shane Caraveo b1330fa6e6 Bug 1523605 fix intermittent failure in browser_ext_sidebarAction_incognito.js r=rpl
Sometimes about:blank would match a non-private window, ensure we're looking
for a url specific to the private window.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 13:40:58 +00:00
Mark Banner 7daa082ad7 Bug 1522508 - Port browser_ext_omnibox.js to work with QuantumBar. r=mak
The timer cancelling in UnifiedComplete.js seems to make the tests more stable with QuantumBar for some reason. Without it, some of the sub-tests would tend to time out. This might be better once we can implement a proper waitForResult() that doesn't have to wait for the entire search to be complete.

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

--HG--
extra : moz-landing-system : lando
2019-02-28 09:25:36 +00:00
Mark Banner 81c7229f51 Bug 1522508 - Properly display an extension result on the QuantumBar. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D21005

--HG--
extra : moz-landing-system : lando
2019-02-28 09:25:22 +00:00
Mark Banner 9df875fc5e Bug 1522508 - Notify Omnibox WebExtensions when the user cancels a search via blur. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D21004

--HG--
extra : moz-landing-system : lando
2019-02-28 09:33:08 +00:00
Mark Banner 7b0ae41ca6 Bug 1522508 - When a WebExtension result is selected, the urlbar should be reverted. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D21003

--HG--
extra : moz-landing-system : lando
2019-02-28 09:25:07 +00:00
Mark Banner 82f2efc234 Bug 1522508 - Port WebExtension tests to work with QuantumBar (simple changes). r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21002

--HG--
extra : moz-landing-system : lando
2019-02-28 09:25:05 +00:00
Marco Bonardo 5c4e44ce0a Bug 1528751 - Add a custom eslint rule to check "consistent" if bracing. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D20753

--HG--
extra : moz-landing-system : lando
2019-02-28 08:39:33 +00:00
Luca Greco fb2b9896d8 Bug 1285500 - Rewrite browser_ext_browserAction_popup test and avoid intermittency on the 'overflow menu' test. r=mixedpuppy
This patch rewrites the browser_ext_browserAction_popup.js test file to make it easier to follow the
sequence of its test cases (in the previous version of this test file, the logic that was executing
the sequence of test cases was fragmented in a bunch of listeners, in both the test extension and
the privileged test code) and to make the test able to wait for the popups to be fully loaded or
fully destroyed before moving to the next test case.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 21:44:47 +00:00
Oriol Brufau 791195f4c3 Bug 1529411 - Fire onCreated before onRemoved when closing last tab with browser.tabs.closeWindowWithLastTab=false. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D20584

--HG--
extra : moz-landing-system : lando
2019-02-28 00:10:30 +00:00
Ciure Andrei 440cabd8dc Backed out changeset 56d817208b35 (bug 1451079) for failing browser_ext_runtime_setUninstallURL.js CLOSED TREE 2019-02-28 05:38:41 +02:00
sagarwala 55500a274d Bug 1451079 - Adding fix for setting empty url to set uninstall url during runtime. r=zombie
The bug indicated that the setUninstallURL did not honor empty url during runtime.
Steps to reproduce:
1. Install an extension, uninstall URL is set
2. Update the extension, changing the uninstall URL string to null (empty)
3. Uninstall the extension

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

--HG--
extra : moz-landing-system : lando
2019-02-28 02:15:12 +00:00
Boris Zbarsky 9c5da5f234 Bug 1489308 part 9. Remove now-unused wyciwyg bits. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D17327

--HG--
rename : dom/html/test/browser_refresh_wyciwyg_url.js => dom/html/test/browser_refresh_after_document_write.js
rename : dom/html/test/file_refresh_wyciwyg_url.html => dom/html/test/file_refresh_after_document_write.html
extra : moz-landing-system : lando
2019-02-28 01:09:48 +00:00
Boris Zbarsky 2e5c884144 Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug
The main behavior changes are:

1) We no longer create a new Window when doing document.open().  We use the
same Window but remove all the event listeners on it and on the existing DOM
tree before removing the document's existing kids.

2) We no longer create a new session history entry.  The existing one always
gets replaced instead.

3) We now support document.open on documents that are not in a Window.

The reasons for the various test changes are as follows:

The change to browser_modifiedclick_inherit_principal.js is because we no
longer set the docshell to a wyciwyg URL when document.open() happens and the
test was depending on that to terminate.

browser_wyciwyg_urlbarCopying.js is being removed because it's trying to test
wyciwyg URIs, which no longer exist.

The changes in docshell/test/navigation are because document.open() no longer
affects session history.  One of the tests was testing the interactions there
and is being removed; another is being repurposed to just test that
document.open() does not affect history.length.

The change to test_x-frame-options.html is because document.open() now removes
event listeners on the window, which it didn't use to do (and in the specific
case in this test reused the existing inner too, so the listener was still
around in practice).  The new behavior matches other browsers.

The removal of test_bug172261.html is because document.open() no longer affects
session history, so you can't go back across it or forward to the "opened"
state, so the situation that test is trying to test no longer exists.

The changes to test_bug255820.html are because reloading a document after
document.open() will now just load the URL of the document that was the entry
document for the open() call, not reload the written content.  So there's not
much point testing reload behavior, and in this test it was just reloading the
toplevel test file inside the frames.

The change to test_bug346659.html is because now we no longer create a new
Window on document.open().

The change to test_bug1232829.html is because document.open() (implicit in this
test) no longer adds history entries, so the back() was just leaving the test
page instead of going back across the document.open().  The test is a
crashtest in practice, so might still be testing something useful about how
document.open() interacts with animations.

The change to test_bug715739.html is because the URL of the document after
document.open() is now the URL of the entry document, not a wyciwyg URL, so
reload() has different behavior than it used to.

The change to test_bug329869.html is because now when we go back we're
reloading the original document we had, not doing a wyciwyg load, and the
security info now doesn't include the untrusted script.

The changes to the wpt expectations are removing a bunch of expected failures
now that we pass those tests and disabling some tests that are fundamentally
racy and hence fail randomly.  The latter all have github issues filed for the
test problem.

The change to testing/web-platform/tests/common/object-association.js is fixing
tests that were not matching the spec (and were failing in other browsers).

The change to parser-uses-registry-of-owner-document.html is fixing tests that
were not matching the spec (and were failing in other browsers).

The change to document-write.tentative.html is because the test was buggy: it
was using the same iframe element for all its tests and racing loads from some
tests against API calls from other tests, etc.  It's a wonder it ever managed
to pass, independent of these patches (and in fact it doesn't pass according to
wpt.fyi data, even in Firefox).

The changes in html/browsers/history/the-history-interface are because
document.open() no longer adds history entries.  The test was failing in all
other browsers for the same reason.

The changes in html/browsers/history/the-location-interface are because
reloading a document.open()-created thing now loads the URL of the page that
was the entry document for the open() call.  The test was failing in all other
browsers.

The change to reload_document_open_write.html is because we now reload the url
of the document that entered the script that called open() when we reload, not
the written content.  Other browsers were failing this test too; Gecko with
the old document.open implementation was the only one that passed.

The change to http-refresh.py is to fix a test bug: it was not returning a
Content-Type header, so we were putting up helper app dialogs, etc.

The change to test_ext_contentscript.js is because we no create a new global
for document.open() calls.  Kris Maglione OKed this part.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 23:24:48 +00:00
Gabriele Svelto 5bc9e5bb2b Bug 675539 - Unload tabs in low-memory scenarios r=mconley
This adds a mechanism that discards tabs when the browser detects a low-memory
scenario. Tabs are discarded in LRU order prioritizing regular tabs over
pinned ones, pinned ones over tabs playing audio and all of the previous over
pinned tabs playing audio.

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

--HG--
extra : moz-landing-system : lando
2019-02-27 22:24:27 +00:00
Gabriele Svelto 0443979a06 Bug 675539 - Make tab discard functionality work on tab objects directly r=mconley
This removes the need to go through the browser-to-tab mapping when discarding
a tab and simplifies the relevant code. Besides being renamed discardBrowser()
was also split so that one can check if a tab can be discarded prior to trying
it.

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

--HG--
extra : moz-landing-system : lando
2019-02-26 05:35:09 +00:00
Mike Conley 3081c2863c Bug 1529088 - Hold the HTML-based about:config to Nightly until we get Product sign-off. r=florian,paolo
Differential Revision: https://phabricator.services.mozilla.com/D20825

--HG--
extra : moz-landing-system : lando
2019-02-27 21:54:57 +00:00
jcit 7058fdef9c Bug 1530787 - Replace waitForConditon in browser_914138 with TestUtils.waitForCondition r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D21391

--HG--
extra : moz-landing-system : lando
2019-02-27 21:46:33 +00:00
Felipe Gomes 8fdc40f64b Bug 1530767 - Don't limit bug 1529380 improvements to the handoff-to-awesomebar flow. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D21246

--HG--
extra : moz-landing-system : lando
2019-02-27 17:37:49 +00:00
Shane Caraveo 3fb3b1e418 Bug 1527127 update addon panel text for private windows r=flod,Gijs,mstriemer,rpl
Differential Revision: https://phabricator.services.mozilla.com/D19845

--HG--
extra : moz-landing-system : lando
2019-02-27 20:05:38 +00:00
Mark Banner 57ab0d5de2 Bug 1530405 - Port the UITour tests to QuantumBar. r=MattN,mak.
Differential Revision: https://phabricator.services.mozilla.com/D21028

--HG--
extra : moz-landing-system : lando
2019-02-27 16:43:56 +00:00
Mark Banner c86d07da05 Bug 1530983 - Move browser_bookmark_popup/titles.js to browser/components/places and fix them for running with QuantumBar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21347

--HG--
rename : browser/base/content/test/general/browser_bookmark_popup.js => browser/components/places/tests/browser/browser_bookmark_popup.js
rename : browser/base/content/test/general/browser_bookmark_titles.js => browser/components/places/tests/browser/browser_bookmark_titles.js
extra : moz-landing-system : lando
2019-02-27 16:08:59 +00:00
Mark Banner f6e80010eb Bug 1522530 - Port session store test browser_599909.js to QuantumBar. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D21225

--HG--
rename : browser/components/sessionstore/test/browser_599909.js => browser/components/sessionstore/test/browser_tabs_in_urlbar.js
extra : moz-landing-system : lando
2019-02-27 14:35:17 +00:00
Mark Banner 11c44b6ae3 Bug 1522521 - Port browser_bug655584 to QuantumBar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D21245

--HG--
rename : browser/base/content/test/general/browser_bug655584.js => browser/components/urlbar/tests/browser/browser_switchTab_closesUrlbarPopup.js
extra : moz-landing-system : lando
2019-02-27 08:06:12 +00:00
Mark Banner 63c9c2927f Bug 1522521 - Port the new browser_switchToTab_closes_newtab.js to QuantumBar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D21244

--HG--
extra : moz-landing-system : lando
2019-02-27 08:05:57 +00:00
Mark Banner df02cd3c5f Bug 1522521 - Move and correct indentation in browser_bug555767.js. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D21243

--HG--
rename : browser/base/content/test/general/browser_bug555767.js => browser/components/urlbar/tests/browser/browser_switchToTab_closes_newtab.js
extra : moz-landing-system : lando
2019-02-27 08:05:38 +00:00
Mark Banner 7d00f1921c Bug 1522438 - Port Customizable UI tests to QuantumBar. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21031

--HG--
extra : moz-landing-system : lando
2019-02-26 23:28:34 +00:00
Daisuke Akatsuka 4b869d9db6 Bug 1525533: Stop supporting inspection of addon in Browser Toolbox. r=jdescottes,rpl
Depends on D20786

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

--HG--
extra : moz-landing-system : lando
2019-02-27 01:57:19 +00:00
shindli c442603050 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-26 18:58:45 +02:00
shindli 08b7f8eebb Backed out 2 changesets (bug 1442694) for breaking session restores on update a=backout
Backed out changeset f100f8631f78 (bug 1442694)
Backed out changeset 7a20c79a0e12 (bug 1442694)
2019-02-26 18:32:20 +02:00
Brian Grinstead db663b11af Bug 1508446 - Require that [accesskey] gets set on <xul:label> to enable formatting without referencing a binding parent;r=paolo
Previously, if the accesskey attribute was missing then the label would reach up
to binding parent to find it's accesskey. In practice, bindings already do
[xbl:inherits=accesskey] to send it down to the label anyway.

The problem with this is that for controls without accesskeys, the attribute doesn't get set,
so the label will access the control from JS. This is fine for XBL, since typically
the label XBL will construct at the same time as the control, but when migrating
to Custom Elements, the label gets connected even when the control is hidden.

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

--HG--
extra : moz-landing-system : lando
2019-02-26 16:41:47 +00:00
Noemi Erli 7e23372938 Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
extra : rebase_source : de8796d5d7d7079af1b895a2f537371885f8cc6c
2019-02-26 00:09:40 +02:00
Erica Wright c2ccc9b663 Bug 1529425 - Add Telemetry to count the number of users in each Content blocking mode. r=johannh,janerik
On browser startup, include the value of the browser.contentblocking.category pref with the main ping.

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

--HG--
extra : moz-landing-system : lando
2019-02-26 09:11:30 +00:00
Marco Bonardo d012deb395 Bug 1496685 - Implement UrlbarController::viewContextChanged. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D20841

--HG--
extra : moz-landing-system : lando
2019-02-26 15:30:10 +00:00
Shane Caraveo 68be1ed3aa Bug 1512353 skip moving windows between pb and non-pb windows r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D20557

--HG--
extra : moz-landing-system : lando
2019-02-25 18:38:49 +00:00
Christoph Kerschbaumer c8bb3d7749 Bug 1529869: Remove the 2 from speculate speculative(Anonymous)Connect2 within nsISpeculativeConnect.idl. r=valentin 2019-02-24 20:26:56 +01:00
Doug Thayer d2b8144761 Bug 1442694 - Add tests for preopened pinned tabs r=Gijs
Depends on D18742

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

--HG--
extra : moz-landing-system : lando
2019-02-25 19:19:30 +00:00
Doug Thayer 978e0344ff Bug 1442694 - Preopen pinned tabs before session restore r=Gijs
When we open firefox with pinned tabs, we first paint a window with
one tab open, and then that tab gets displaced after the pinned tabs
come in. This aims to ensure that our first paint contains the
pinned tab, so that we don't have tabs moving around after first
paint.

MozReview-Commit-ID: GC1y6NlgLTd

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

--HG--
extra : moz-landing-system : lando
2019-02-25 19:19:07 +00:00
Mark Banner 8a876b23c0 Bug 1530395 - Port bug 377496 to QuantumBar (Improve auth dialog blocking heuristics). r=dao
Differential Revision: https://phabricator.services.mozilla.com/D21024

--HG--
extra : moz-landing-system : lando
2019-02-25 17:31:00 +00:00
Jonathan Kingston e864dc7028 Bug 1502072 - Removing restriction of opening javascript places into new tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D20894

--HG--
extra : moz-landing-system : lando
2019-02-25 11:19:05 +00:00
Luca Greco a5357a13a2 Bug 1488981 - Fix browser_ext_getViews.js popup count failure when getViews is called before inner-window-destroyed. r=robwu
This test was failing intermittently in opt and pgo builds because there was a slightly chance that
the test extension may be calling browser.extension.getViews while the popup context was unloading
but it wasn't still destroyed and so it wasn't yet removed from the set of the extension views.

This patch fixes this intermittency by changing the promiseBrowserContentUnloaded test helper to
ensure that the unloadPromise is resolved when the "inner-window-destroyed" message for the
extension window is being notified to the "observer service" listeners, as it is what
the ExtensionPageChild is listening to decide when the ExtensionPageContextChild should be
unloaded and removed from the set of the extension views.

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

--HG--
extra : moz-landing-system : lando
2019-02-25 11:45:29 +00:00
Christoph Kerschbaumer 8124d3a763 Bug 1518454: Part 2, frontend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=gijs 2019-02-22 09:19:26 +01:00
Cosmin Sabou 87890732bf Bug 1514567 - Added :invalid CSS style for extension's input elements. r=bwinton
Summary: Before this change no style for invalid input fields was included in Firefox and thus invalid text fields where not highlighted as invalid as per the Firefox Photon design guide.

Test Plan:
Screenshot: https://hostux.pics/images/2019/01/25/image5123a27cc99ab189.png

  # Installed my add-on: https://addons.mozilla.org/firefox/addon/mastodon-simplified-federation/
  # Go to settings page and enter some invalid string in the input field.
  # Open add-on debugger and inspect that element.
  # (important!) Disable my workaround I added. (in options.css), see the screenshot at the top right, where I did this.
  # And you can still see the invalid style…

Reviewers: rpl, bwinton

Reviewed By: bwinton

Subscribers: bwinton, caitmuenster

Bug #: 1514567

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

--HG--
extra : rebase_source : ea0ee02b258f4767164bf6fe76dec0df2d7d8b70
extra : amend_source : 7570445162cbe059171bb73c934d37018fe54a3d
2019-02-23 23:46:23 +02:00
ui.manish 3e955992e7 Bug 1429016 - Remove expiring WEB_NOTIFICATION_* telemetry probes r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D18877

--HG--
extra : moz-landing-system : lando
2019-02-23 09:56:08 +00:00
Matthew Noorenberghe a3c141f088 Bug 1474143 - Rename FormSubmitChild.jsm to FormValidationChild.jsm. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16653

--HG--
rename : browser/actors/FormSubmitChild.jsm => browser/actors/FormValidationChild.jsm
extra : moz-landing-system : lando
2019-02-23 00:24:30 +00:00
Marco Bonardo a2833729ca Bug 1525035 - Handle IME composition in Quantum Bar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D20826

--HG--
extra : moz-landing-system : lando
2019-02-22 20:02:35 +00:00
Ciure Andrei f7412ac1f2 Backed out 10 changesets (bug 1474143) for perma failing browser_markup_events_01.js CLOSED TREE
Backed out changeset 1b5d04866585 (bug 1474143)
Backed out changeset 78bfb4dd1f6a (bug 1474143)
Backed out changeset 85ec4f1f5f60 (bug 1474143)
Backed out changeset 5c112b77e489 (bug 1474143)
Backed out changeset 5d35599598bb (bug 1474143)
Backed out changeset 9fd0d7a7946f (bug 1474143)
Backed out changeset 1a83be7a75ca (bug 1474143)
Backed out changeset 2fc9b13171d0 (bug 1474143)
Backed out changeset 3983d7b6d9ad (bug 1474143)
Backed out changeset 9fe55dd58cd8 (bug 1474143)

--HG--
rename : browser/actors/FormValidationChild.jsm => browser/actors/FormSubmitChild.jsm
rename : toolkit/components/satchel/FormSubmitChild.jsm => toolkit/components/satchel/formSubmitListener.js
2019-02-22 21:16:49 +02:00
Matthew Noorenberghe db9f86614f Bug 1474143 - Rename FormSubmitChild.jsm to FormValidationChild.jsm. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16653

--HG--
rename : browser/actors/FormSubmitChild.jsm => browser/actors/FormValidationChild.jsm
extra : moz-landing-system : lando
2019-02-22 15:13:05 +00:00