Commit Graph

3156 Commits

Author SHA1 Message Date
Hiroyuki Ikezoe
532e1252a3 Bug 1522724 - Add scroll update type for nsIDOMWindowUtils.scrollToVisual(). r=botond
Depends on D17582

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

--HG--
extra : moz-landing-system : lando
2019-01-28 21:48:43 +00:00
Ehsan Akhgari
08e1954154 Bug 1520879 - Port the onContentBlockingEvent notifications inside WebProgressChild.jsm to C++; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17157

--HG--
extra : moz-landing-system : lando
2019-01-25 14:44:09 +00:00
Nika Layzell
083cc0a7c3 Bug 1520372 - Add an ownerElement property to nsITabParent, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D16713

--HG--
extra : moz-landing-system : lando
2019-01-16 20:00:17 +00:00
James Teh
5dc4d81ca1 Bug 1514687 - Allow accessibility code to focus XUL radio buttons without selecting them. r=bgrins,smaug,MarcoZ,paolo
1. This requires exposing radiogroup's focusedItem property to C++.
Unfortunately, there's no existing equivalent in nsIDOMXULSelectControlItemElement.
radiogroup is the only element that needs this, so a new interface has been created for it.

2. Accessibility uses focusedItem instead of selectedItem when setting focus.

3. When an item is focused, accessibility needs to be notified.
This is done using a DOMMenuItemActive event.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 04:52:50 +00:00
Jan Henning
2f5820064c Bug 1498812 - Part 1: Add helper method for directly retrieving the visual viewport's position. r=botond
Mainly required for testing.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 19:49:39 +00:00
Botond Ballo
6790cc7377 Bug 1507279 - Expose the visual scrolling mechanism to internal JS users. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D16142

--HG--
extra : moz-landing-system : lando
2019-01-10 20:59:21 +00:00
alwu
242554622e Bug 1513039 - part1 : remove caching temporary autoplay permission. r=smaug,florian
We're going to remove all autoplay temporary permission related codes, so we don't need to cache it anymore.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 18:29:10 +00:00
Emilio Cobos Álvarez
d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Hiroyuki Ikezoe
1cee88971a Bug 1516368 - Drop nsIDOMWindowUtils.isResolutionSet. r=botond
It's been unused since bug 1337325.

Depends on D15338

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

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:30 +00:00
Hiroyuki Ikezoe
f36f418011 Bug 1516307 - Make nsIDOMWindowUtils.getResolution return the result value. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15318

--HG--
extra : moz-landing-system : lando
2018-12-30 01:15:27 +00:00
Jared Wein
6989ff6cec Bug 1477113 - Dispatch paymentmethodchange event from the front-end. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D13740

--HG--
extra : moz-landing-system : lando
2018-12-13 18:48:54 +00:00
Gijs Kruitbosch
70281bf326 Bug 1499092 - rename/move code from 'feeds' and 'web content' to more appropriate/obvious versions for registerProtocolHandler, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13699

--HG--
rename : browser/components/feeds/WebContentConverter.js => browser/components/protocolhandler/WebProtocolHandlerRegistrar.js
rename : browser/components/feeds/moz.build => browser/components/protocolhandler/moz.build
rename : browser/components/feeds/test/.eslintrc.js => browser/components/protocolhandler/test/.eslintrc.js
rename : browser/components/feeds/test/browser/.eslintrc.js => browser/components/protocolhandler/test/browser/.eslintrc.js
rename : browser/components/feeds/test/browser/browser.ini => browser/components/protocolhandler/test/browser/browser.ini
rename : browser/components/feeds/test/browser/browser_registerProtocolHandler_notification.html => browser/components/protocolhandler/test/browser/browser_registerProtocolHandler_notification.html
rename : browser/components/feeds/test/browser/browser_registerProtocolHandler_notification.js => browser/components/protocolhandler/test/browser/browser_registerProtocolHandler_notification.js
rename : browser/components/feeds/test/mochitest.ini => browser/components/protocolhandler/test/mochitest.ini
rename : browser/components/feeds/test/test_registerHandler.html => browser/components/protocolhandler/test/test_registerHandler.html
rename : browser/components/feeds/test/test_registerHandler_disabled.html => browser/components/protocolhandler/test/test_registerHandler_disabled.html
rename : dom/interfaces/sidebar/nsIWebContentHandlerRegistrar.idl => dom/interfaces/sidebar/nsIWebProtocolHandlerRegistrar.idl
extra : moz-landing-system : lando
2018-12-13 13:34:11 +00:00
Gijs Kruitbosch
7ab8abdd16 Bug 1499092 - move bulk of registerProtocolHandler checks into compiled code so we don't need a dedicated component in the child process, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13697

--HG--
extra : moz-landing-system : lando
2018-12-13 13:47:39 +00:00
Narcis Beleuzu
99f7b49656 Backed out changeset 3fa420b71260 (bug 1477113) for bc failures on browser_total.js. CLOSED TREE 2018-12-13 09:53:39 +02:00
Jared Wein
bbfb132319 Bug 1477113 - Dispatch paymentmethodchange event from the front-end. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D13740

--HG--
extra : moz-landing-system : lando
2018-12-13 06:35:30 +00:00
Kris Maglione
d79b3fbaf4 Bug 1505522: Part 2 - Migrate MemoryTelemetry.jsm to C++. r=erahm,chutten
This has benefits both in terms of performance and memory usage. Aside from
the obvious savings of not loading additional JS scripts in every process,
this also allows us to move more of our expensive data collection work to a
background thread, where it doesn't risk janking both parent and content
processes.

MozReview-Commit-ID: 2A593R7bIKB

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

--HG--
extra : rebase_source : ec634ee3a3b975809f542aa8077ad32236781452
2018-12-05 15:44:53 -05:00
Brindusan Cristian
989d78f3d0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-11 00:10:08 +02:00
Neil Deakin
d2ed932b7c Bug 1492326, change methods of nsIDOMXUL* interfaces so that they return Elements to reduce usages as most callers want the return values as elements, r=peterv 2018-12-04 11:25:41 -05:00
Botond Ballo
4e2bbb39df Bug 1512267 - If you set a pres shell resolution, you must scale to it. r=kats,JanH
Differential Revision: https://phabricator.services.mozilla.com/D13928

--HG--
extra : moz-landing-system : lando
2018-12-10 19:32:59 +00:00
Andrew Sutherland
6c6e230a77 Bug 1286798 - Part 53: Review code comments; r=janv,mrbkap,mccr8 2018-11-05 14:04:39 -05:00
Eden Chuang
931859451b Bug 1477117 - Part 2 - Add new IPC method for passing the changing method information. r=baku
1. Add a new method nsIPaymentRequestService::ChangePaymentMethod for UI to
       inform merchant the payment method is changed by user.
    2. Add a new method in PPaymentRequest.ipdl to passing the changing method
       information from chrome process to content process.
    3. Add BasicCardChangeDetails dictionary in BasicCardPayment.webidl
    4. Create ChangeDetails, GeneralDetails and BasicCardDetails for saving the
       the method information in content process.

--HG--
extra : histedit_source : 8426da9c1d070daa35623b3431341c13cb361aed
2018-11-27 14:05:00 +01:00
Eden Chuang
4dff78fca8 Bug 1477117 - Part 1 - Create new XPCOM interface for changing the payment method. r=baku
1. Add a new attribute nsIPaymentOptions.requestBillingAddress.
    2. Add new XPCOM interfaces MethodChangeDetails, GeneralChangeDetails and
       BasicCardMethodChangeDetails for passing the method change details from
       UI code.

--HG--
extra : histedit_source : 680bff71f0d8a9d9333a3699fcc6a4fd9630fe1b
2018-11-27 06:33:13 +01:00
Cosmin Sabou
e1e8f2ea69 Merge mozilla-inbound to mozilla-central. a=merge 2018-11-28 06:08:19 +02:00
Kartikaya Gupta
586636a517 Bug 1510026 - Send a sync IPC round-trip to the compositor after every crashtest. r=mattwoodrow
This sends a sync IPC message to the compositor after each crashtest, to
ensure that any stuff inflight in the compositor settles down. In
particular this should round-trip through all of the relevant compositor
threads (i.e. for WebRender it should ensure the scene builder, render
backend, and renderer threads all get flushed).

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

--HG--
extra : moz-landing-system : lando
2018-11-27 19:46:23 +00:00
arthur.iakab
e36b9a7f34 Backed out 4 changesets (bug 1477117) for causing hazard build bustage on payments/PaymentRequest.cpp:1066 CLOSED TREE
Backed out changeset 3b473ca68a57 (bug 1477117)
Backed out changeset 8ffc94b44c3e (bug 1477117)
Backed out changeset ddaac3335514 (bug 1477117)
Backed out changeset 1809212f5f29 (bug 1477117)
2018-11-28 02:28:36 +02:00
Ehsan Akhgari
68a4d46702 Bug 1507677 - Add nsIContentPermissionRequest.topLevelPrincipal r=baku
This is required for the storage access API permission prompt.

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

--HG--
extra : moz-landing-system : lando
2018-11-20 01:52:47 +00:00
James Teh
9e968bb929 Bug 1506787: Support tabindex attribute (including value -1) on non-control XUL elements. r=smaug
Previously, the tabindex attribute wasn't supported on non-control XUL elements at all.
The only way to make those focusable was to use -moz-user-focus: normal.
However, that caused the element to be included in the tab order; there was no way to make it focusable but not tabbable.
This can now be achieved using tabindex="-1".
This will primarily be useful for buttons on toolbars, which will be grouped under a single tab stop for efficiency.

For consistency, this also changes the behaviour of tabindex="-1" with -moz-user-focus: ignore on XUL controls.
Previously, -moz-user-focus: ignore would override tabindex="-1", making the element unfocusable.
Now, the tabindex attribute always overrides if explicitly specified.

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

--HG--
extra : moz-landing-system : lando
2018-11-17 02:38:27 +00:00
alwu
c084141553 Bug 1493766 - part3 : modify test. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D7017

--HG--
extra : moz-landing-system : lando
2018-11-14 01:32:26 +00:00
alwu
dab4434860 Bug 1493766 - part2 : save the status of temporary autoplay permission in outer window. r=johannh,smaug
In order to know whether we have temporary autoplay permission without creating a request, we need to
cache its state in the outer window so that we can get the correct returned value for AutoplayPolicy::IsAllowedToPlay().

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

--HG--
extra : moz-landing-system : lando
2018-11-16 18:27:00 +00:00
Eden Chuang
7020e04316 bug 1477409 - Part 1 - Instead of passing tabId, passing outerWindowId to Payment UI component. r=baku
--HG--
extra : histedit_source : 5480494582d1de6bcdac2ff295815d3182909697
2018-11-06 14:42:36 +01:00
Gurzau Raul
1da9ef02c4 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.html => testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.sub.html
rename : testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.html => testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.sub.html
2018-11-06 11:57:49 +02:00
Narcis Beleuzu
9b3f73e696 Merge mozilla-central to inbound. CLOSED TREE 2018-11-05 23:54:03 +02:00
Ehsan Akhgari
1d077063ca Bug 1504446 - Remove two unused members of nsITabParent r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10812

--HG--
extra : moz-landing-system : lando
2018-11-05 16:52:03 +00:00
Ehsan Akhgari
3e767a59cc Bug 1503979 - Remove nsITabParent.useAsyncPanZoom because it is unused r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10596

--HG--
extra : moz-landing-system : lando
2018-11-02 12:53:01 +00:00
Ehsan Akhgari
da02fddc9b Bug 1503465 - Part 1: Add a tabparent API for retrieving the top-level content blocking log r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10362

--HG--
extra : moz-landing-system : lando
2018-10-31 21:21:34 +00:00
Ryan Hunt
3629eceb88 Bug 1504708 - Remove unused nsIDOMWindowUtils::RenderDocument. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D10905

--HG--
extra : rebase_source : be9dae5e981b0b211b8e201e69e4ec4c25fbf375
extra : amend_source : 7c40758c5b99ccf47fd1eae28cc8e9e559c2dda6
extra : source : e8530af895573993c962f452a67b76a7a258f04f
2018-10-18 13:12:19 -05:00
Ehsan Akhgari
54b2e44577 Bug 1502747 - Remove nsIContentPermissionType.access and all of its supporting code r=snorp,baku
This field was originally added for the b2g-only DeviceStorage API,
and isn't used for anything else right now.

This reverts the remaining parts of bug 1043136 and bug 1043136
as well as some support code for mobile.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 07:48:55 +00:00
Eden Chuang
74e578d048 Bug 1497215 - Refactor the IPC structure for PaymentResponse.details r=baku
In original design, payment method response data is passed between processes
    through a simple nsString. It means a special encoder/decoder is needed for
    special response data, ex. BasicCardResponse, to serialize/deserialize
    into/from the nsString. However, when a token spliter, ':', ';' and '@', is
    used in response data, it makes the encoder/decoder can not work normally.
    It is hard to define a suitable token spliter set for encoder/decoder.
    So instead of using an error-prone encoder/decoder, this patch defining a new
    IPC structure for response data.

--HG--
extra : rebase_source : 4972033516bc861ea3f975a27b7688fc6eb89a94
2018-10-29 13:56:32 +01:00
Ehsan Akhgari
6fd16182ec Bug 1504450 - DeCOMtaminate HostnameGrouper r=adw
Differential Revision: https://phabricator.services.mozilla.com/D10813

--HG--
extra : moz-landing-system : lando
2018-11-05 20:45:22 +00:00
Andrea Marchesini
4439acd683 Bug 1498510 - Move nsICSPEventListener out of CSP object, r=ckerschb 2018-10-23 08:17:13 +02:00
Margareta Eliza Balazs
022503fa90 Backed out changeset fa6b7a70f2db (bug 1497215) fro xpcshell failures in browser/components/payments/test/unit/test_response_creation.js CLOSED TREE 2018-10-22 14:52:23 +03:00
Eden Chuang
5bf95b80c7 Bug 1497215 - Refactor the IPC structure for PaymentResponse.details r=baku
In original design, payment method response data is passed between processes
    through a simple nsString. It means a special encoder/decoder is needed for
    special response data, ex. BasicCardResponse, to serialize/deserialize
    into/from the nsString. However, when a token spliter, ':', ';' and '@', is
    used in response data, it makes the encoder/decoder can not work normally.
    It is hard to define a suitable token spliter set for encoder/decoder.
    So instead of using an error-prone encoder/decoder, this patch defining a new
    IPC structure for response data.
2018-10-22 11:08:04 +02:00
Marcos Cáceres
6de37261e9 Bug 1497699 - Drop support for PaymentItem.type. r=edenchuang,baku
Being removed from the spec. Front-end no longer needs this.

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

--HG--
extra : moz-landing-system : lando
2018-10-16 12:53:01 +00:00
Hiroyuki Ikezoe
1850f573a5 Bug 1431601 - Fix the comment for nsIDOMWindowUtils.getViewportInfo. r=botond
nsContentUtils::GetViewportInfo was removed and the comment for the function
was moved to nsIDocument::GetViewportInfo in
https://hg.mozilla.org/mozilla-central/rev/37d64688bf9d

Depends on D8316

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

--HG--
extra : moz-landing-system : lando
2018-10-15 23:53:42 +00:00
Andreas Farre
c9272ef398 Bug 1437064 - Remove tracking timeouts list from TimeoutManager. r=chutten,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D7878

--HG--
extra : moz-landing-system : lando
2018-10-12 18:01:19 +00:00
Eden Chuang
05093acbf4 Bug 1441752 - Adding an new attribute regionCode in PaymentAddress. r=baku
--HG--
extra : histedit_source : d71b94a611ff5cd3f5b556de9157ff46a5cfeda6
2018-09-28 12:21:59 +02:00
Masayuki Nakano
e90e04f506 Bug 1343955 - part 3: Implement similar C++ utility of _computeKeyCodeFromChar() in EventUtils.js and make it accssible with nsITextInputProcessor for EventUtils.js r=smaug
This implement a helper API to guess keyCode value of a printable key with
assuming active keyboard layout is US-English.  The reason why this stops
computing key value from key value is, most users of such API probably want
to emulate input from US-English keyboard layout if they don't specify the
detail.  Therefore, the new API simply maps each ASCII character to a
DOM keyCode which is usually mapped in US-English keyboard layout.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 09:24:15 +00:00
Masayuki Nakano
eb2efb612f Bug 1343955 - part 2: Implement _guessCodeFromKeyName() in EventUtils.js with C++ and make it accessible with nsITextInputProcessor for EventUtils.js r=smaug
We need to port synthesizeKey() of EventUtils.js to FuzzingFunctions.  So,
its helper function, _guessCodeFromKeyName() in EventUtils.js needs to be
accessible from FuzzingFunctions.  Therefore, we need to reimplement it
with C++ and make it accessible via nsITextInputProcessor for EventUtils.js
for making easier to maintain.

This patch moves _guessCodeFromKeyName() into TextInputProcessor and
WidgetKeyboardEvent.  Non-printable key part of _guessCodeFromKeyName() is
moved to WidgetKeyboardEvent::ComputeCodeNameIndexFromKeyNameIndex() because
of not depending on active keyboard layout.  On the other hand, printable
key part needs to assume that active keyboard layout is en-US keyboard layout.
Therefore, it's moved to
TextInputProcessor::GuessCodeValueOfPrintableKeyInUSEnglishKeyboardLayout()
because any Core code shouldn't refer it as utility method for keeping that
we're i18n-aware.

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

--HG--
extra : moz-landing-system : lando
2018-10-03 09:21:47 +00:00
Brindusan Cristian
6d457f4a36 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-10-02 07:05:47 +03:00
Doug Thayer
351745db30 Bug 1495032 - Proactively adjust tab priority on switch r=mconley
Our current prioritization mechanism doesn't account for tab
warming, or for the fact that the current tab should be
deprioritized. This corrects that.

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

--HG--
extra : moz-landing-system : lando
2018-10-01 17:05:32 +00:00