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

619625 Коммитов

Автор SHA1 Сообщение Дата
Tom Schuster 90b0f3e9cb Bug 1497580 - Save text/html as UTF-8 to the clipboard. r=karlt
I verified that we can still copy from Firefox to an older version of Firefox without this patch.
LibreOffice also still works. Talking to some GTK people on IRC they are also happy about UTF-8 instead of wrongly declared UCS2.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 23:00:36 +00:00
Dão Gottwald fe2a8105db Bug 1497820 - Get rid of the 'compact' class for search textboxes. r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D9078

--HG--
extra : moz-landing-system : lando
2018-10-18 10:05:27 +00:00
yulia 0e854c694a Bug 1488379 - guard for errors; r=daisuke
Depends on D7986

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

--HG--
extra : moz-landing-system : lando
2018-10-18 08:54:56 +00:00
Valentin Gosu 055117366d Bug 1487100 - Allow opening the input stream for original content when alt-data is available r=michal,luke
In trying to use fetch with alt-data, we sometimes want the benefit of using alt-data but the JS consumer actually needs to use the original HTTP response from the server.
To get around this problem, we introduce a new API - nsICacheInfoChannel.getOriginalInputStream(nsIInputStreamReceiver) that asyncly receives the input stream containing the HTTP response in the cache entry.

Depends on D8071

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

--HG--
extra : rebase_source : 43d92c631b964c52b551a700b0954276e91695d6
extra : source : 7f9d03c29a6ffd82c1b5e17c14e27a2ae9d64434
2018-10-17 12:27:37 +00:00
Valentin Gosu 5ac68030f7 Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke
This patch changes the way we set and handle the preferred alternate data type.
It is no longer just one choice, but a set of preferences, each conditional
on the contentType of the resource.

For example:
  var cc = chan.QueryInterface(Ci.nsICacheInfoChannel);
  cc.preferAlternativeDataType("js-bytecode", "text/javascript");
  cc.preferAlternativeDataType("ammended-text", "text/plain");
  cc.preferAlternativeDataType("something-else", "");

When loaded from the cache, the available alt-data type will be checked against
"js-bytecode" if the contentType is "text/javascript", "ammended-text" if the contentType is "text/plain" or "something-else" for all contentTypes.
Note that the alt-data type could be "something-else" even if the contentType is "text/javascript".

The preferences are saved as an nsTArray<mozilla::Tuple<nsCString, nsCString>>.

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

--HG--
extra : rebase_source : eb4961f05a52e557e7d2d986d59e0a2cf18a3447
extra : source : dd1c31ea78c2b15d14750d137037a54d50719997
2018-10-17 13:58:30 +00:00
Masayuki Nakano 09c4ea6dd3 Bug 1482425 - PresShell::PageMove() should use different rules to look for a container element for aExtend value r=smaug
PresShell::PageMove() climbs up to parent document when there is no scrollable
parent in current document.  However, if aExtend is true, it should expand
Selection in the document itself.  Therefore, it needs different rules to
look for container of expanding Selection from scrollable element to scroll.

Additionally, old rules (i.e., before the fix of bug 1369072 which caused
this regression) were also buggy.  It used parent scrollable element or
root scrollable element simply.  Therefore, if found scrollable element is
ancestor of selection limiter, it didn't work as expected.

This patch creates nsFrameSelection::GetFrameToPageSelect() to retrieve
per-page selection container element with the following rules:
- look for a scrollable element in selection limiter.
- if there is no scrollable element, use selection limiter.
- if there is no selection limiter, use the root frame.

So, nsFrameSelection::CommonPageMove() should take nsIFrame rather than
nsIScrollableFrame since container of per-page selection may be used in
non-scrollable contenteditable element.  If it's called with non-scrollable
frame, it needs to compute the expanding range with the frame size.

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

--HG--
extra : moz-landing-system : lando
2018-10-18 04:42:53 +00:00
Jared Wein 755c61d96f Bug 1497039 - Put a placeholder in privacy.xul that will be used to inject the form-autofill section. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D8892

--HG--
extra : moz-landing-system : lando
2018-10-18 03:42:59 +00:00
Dorel Luca 1a48c88d19 Backed out 2 changesets (bug 1487100) for XPCShell failures in netwerk/test/unit_ipc/test_alt-data_simple_wrap.js
Backed out changeset 7f9d03c29a6f (bug 1487100)
Backed out changeset dd1c31ea78c2 (bug 1487100)
2018-10-18 05:51:42 +03:00
Thomas Wisniewski 832717d698 Bug 1499533 - Fix console log stringifying bug in webcompat reporter; r=miketaylr
Fix console log stringifying bug in webcompat reporter

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

--HG--
extra : moz-landing-system : lando
2018-10-18 02:51:30 +00:00
Dorel Luca 116bfa4345 Backed out changeset ca4774548edb (bug 1499534) for build bustage on gtest 2018-10-18 02:59:35 +03:00
Chris Pearce 778fa3defa Bug 1499552 - Add dummy pref and report via telemetry to verify telemetry pref reporting. r=mythmon data-review=francois
The Webrender Pref Experiment is reporting its pref via telemetry and that
is reporting a different value than what the Normandy experiments telemetry
indicates should be being seen.

So add reporting for two dummy prefs, one with a default value, and one
without. We intend to push out Normandy rules to report these prefs to
double-check that Normandy is working as expected.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 23:48:12 +00:00
Ehsan Akhgari f6828ef5bd Bug 1498591 - Add a test to ensure that navigating a subframe will revoke its storage access r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8555

--HG--
extra : moz-landing-system : lando
2018-10-17 23:25:47 +00:00
Daniel Holbert d2eff8f7ac Bug 1499569: Rewrite test_flex_items.html to be simpler & easier to extend. r=bradwerth
Primary changes:
 - Rewrap some lines that are too long.
 - Adjust some failure-messages with s/has/should have/ etc.
 - Replace 'nearlyEqual' function with the standard mochitest
   'isfuzzy()' API (which is like 'is()' with an extra epsilon arg)
 - Remove dependence on hardcoded element IDs, and simply walk over the
   flex container's children in order instead (still noting each child node
   and making sure it matches the node in the flex API).

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

--HG--
extra : moz-landing-system : lando
2018-10-17 21:42:54 +00:00
Jeff Gilbert de3080c204 Bug 1499870 - Fix -Wlogical-op-parentheses. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D9033

--HG--
extra : moz-landing-system : lando
2018-10-17 21:11:27 +00:00
Tom Prince d5d43ae116 No bug: [taskgraph] Cleanup copy-pasted docstring for `taskgraph.transforms.balrog_submit`; r=aki
Differential Revision: https://phabricator.services.mozilla.com/D9036

--HG--
extra : moz-landing-system : lando
2018-10-17 22:04:03 +00:00
Mike Hommey c71b6572d6 Bug 1486554 - Remove the now unused clang and clang_debug mozharness configs and corresponding files r=ted
Depends on D8811

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

--HG--
extra : moz-landing-system : lando
2018-10-17 22:45:47 +00:00
Mike Hommey ec57995e45 Bug 1486554 - Use the normal debug mozharness config for Windows static analysis autotest r=ted
Now that all Windows builds have static analysis enabled, the
clang_debug mozharness config does not have any relevant difference for
those jobs, so just use the debug mozharness config instead.

Depends on D8810

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

--HG--
extra : moz-landing-system : lando
2018-10-17 22:45:19 +00:00
Mike Hommey 6aa7e20faf Bug 1486554 - Enable static analysis on normal Windows CI builds r=ted
And turn off separate static analysis build tasks.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 22:45:06 +00:00
Jim Blandy be588c5363 Bug 1499534: Add GTests for ThrottledEventQueue. r=froydnj
This was already reviewed and approved in bug 1426467.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 21:34:57 +00:00
Eitan Isaacson fb91501986 Bug 1499182 - Make Android role class names enums. r=jchen,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D8764

--HG--
extra : moz-landing-system : lando
2018-10-17 20:43:49 +00:00
Markus Stange 43ec702b66 Bug 1496823 - Inline -[ChildView drawRect:inContext:] into -[ChildView drawRect:]. r=spohl
This was separate because at some point in the past we were calling
-[ChildView drawRect:inContext:] from a separate draw-in-titlebar pass. That separate
pass was removed in bug 676241.

Depends on D7929

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:49:18 +00:00
Markus Stange 4dd2f66dab Bug 1496823 - Inline drawUsingOpenGL into drawRect:inContext: and tweak a comment. r=spohl
Depends on D7928

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:48:20 +00:00
Markus Stange a6b335391e Bug 1496823 - Remove unneeded debugging code. r=spohl
I don't think anybody has made use of this code in years.

Depends on D7927

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:47:33 +00:00
Markus Stange b6affc509f Bug 1496823 - Remove -[ChildView setNeedsDisplayInRect:] override. r=spohl
This override was intended to ignore unnecessary nsChildView::Invalidate calls
when using main thread OpenGL. With OMTC, Gecko no longer calls Invalidate in
those cases, it just composites on the compositor thread, and the widget's main
thread code doesn't really hear about it. So this workaround is no longer necessary.

Depends on D7925

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:47:29 +00:00
Markus Stange 0838e29ffa Bug 1496823 - Remove -[ChildView isUsingMainThreadOpenGL] and dependent code because it always returns NO. r=spohl
The main thread layer manager is always NONE, BASIC or CLIENT. It is never OPENGL anymore.
Main-thread OpenGL rendering was removed in bug 924403.

Depends on D7924

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:46:16 +00:00
Markus Stange aac44afa75 Bug 1496823 - Remove EventThreadRunner and the pref that enabled it. r=kats,spohl
This was an experiment before we had e10s. It's no longer needed.

Depends on D7922

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:44:28 +00:00
Markus Stange 6a68b8cf92 Bug 1496823 - Remove setNeedsPendingDisplay infrastructure. r=spohl
Many years ago, Gecko would sometimes call nsChildView::Invalidate during drawRect:.
This is no longer the case: Widget invalidations now only happen outside of drawRect,
usually from a refresh tick or from viewWillDraw.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:43:23 +00:00
Dana Keeler d4ce8fc140 bug 1497555 - filter out same-document location changes in nsSecureBrowserUIImpl::OnLocationChange r=Ehsan
If nsSecureBrowserUIImpl::OnLocationChange receives a
LOCATION_CHANGE_SAME_DOCUMENT notification, it doesn't need to (and in fact
shouldn't) update its security state or notify downstream listeners.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 21:38:24 +00:00
Dorel Luca 73ddd257df Backed out changeset eb2a83cba95a (bug 1497039) for XPCshell failures in browser/extensions/formautofill/test/unit/test_reconcile.js. CLOSED TREE 2018-10-18 01:33:07 +03:00
Dorel Luca 279fc54fae Backed out changeset affe4a683227 (bug 1499136) for mochitest failures in dom/xhr/tests/test_XHRSendData.htm. CLOSED TREE 2018-10-18 00:46:41 +03:00
Dorel Luca 88bfc3786c Backed out 5 changesets (bug 1497707) for android mass failures. CLOSED TREE
Backed out changeset bb1b80139e37 (bug 1497707)
Backed out changeset 11c813f192e2 (bug 1497707)
Backed out changeset 32595f9e73d3 (bug 1497707)
Backed out changeset f37f2d39ec9c (bug 1497707)
Backed out changeset 80bf9ddf5bed (bug 1497707)

--HG--
extra : rebase_source : 598b7732d9b994dfeb63c417841a4b9516ecdf19
2018-10-18 00:35:39 +03:00
Sebastian Hengst 337c32ba46 Bug 1498827 - Ensure the webcompat report addon is disabled upon load, if extensions.webcompat-reporter.enabled=false, take two: Lower minimum access for extensions.getAddons.cache.enabled CLOSED TREE
--HG--
extra : rebase_source : 15810c7a324aaa3d5790b54a49f788c2fac1557c
extra : amend_source : f90c242b1c74ee49fdbd0544b27b673a53db3d7a
2018-10-17 23:57:56 +03:00
Andrew Halberstadt bb07ea7442 Bug 1499510 - [mozlint] Fix regression to |mach lint --edit| when using vim, r=egao
Differential Revision: https://phabricator.services.mozilla.com/D8905

--HG--
extra : moz-landing-system : lando
2018-10-17 20:19:37 +00:00
Andrew McCreight 114c3035be Bug 1497707, part 5 - Inline mozilla::ModuleLoader into mozJSComponentLoader r=froydnj
Now that the XPCOM component loader infrastructure has stopped
pretending to support other file extensions, this intermediate
interface is no longer needed.

Depends on D8171

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:45:43 +00:00
Andrew McCreight eefa2cf094 Bug 1497707, part 4 - Only support loading JS files in the component manager r=froydnj
JS is the only file extension actually supported, and there are a few
layers of cruft that can be eliminated if we specialize it.

This eliminates one XPCOM registration of the JS component loader.

Depends on D8170

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:45:43 +00:00
Andrew McCreight be89d903f8 Bug 1497707, part 3 - Remove various unused things from nsComponentManager r=froydnj
Depends on D8169

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:45:42 +00:00
Andrew McCreight 9f1dcc8dca Bug 1497707, part 2 - The second argument to nsComponentManagerImpl::RegisterModule is always null r=froydnj
This allows some code to be deleted, including a KnownModule ctor.

Depends on D8168

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:45:42 +00:00
Andrew McCreight 7c9511ad37 Bug 1497707, part 1 - Get rid of xpcIJSModuleLoader r=kmag
This interface is only used for a few testing functions. Just move
them to Cu.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:45:41 +00:00
Emilio Cobos Álvarez a780cefe07 Bug 1498873 - Simplify a check. r=bzbarsky
And make will-change: position properly create an abspos cb while at it, since the check was missing the `mWillChangeBitfield & ABSPOS_CB` bit.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:40:08 +00:00
Jim Blandy 9ac840bc86 Bug 1499473: Simplify TabGroup a bit, now that ThrottledEventQueue::Create is infallible. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D8915

--HG--
extra : moz-landing-system : lando
2018-10-17 20:41:59 +00:00
Emilio Cobos Álvarez ce7824933d Bug 1498873 - Pass the right frame to PushAbsoluteContainingBlock to determine whether we're a fixed-pos containing block. r=bzbarsky
When we're creating a scrollframe with let's say, display: flex or grid, the
containing block is the grid container itself, but the transformed frame is the
scroll frame.

This is the only caller that (incorrectly) passes the same frame to
PushAbsoluteContainingBlock.

Our painting code deals with it, mostly, because it starts from the placeholder
to paint fixed items, and it hits the scrollframe, but it gets confused
sometimes causing the issue described here.

I'll find a way to add a crashtest for this, and maybe a reftest, though this
works in non-WR.

We should probably add a few more assertions to the frame constructor...

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

--HG--
extra : moz-landing-system : lando
2018-10-17 20:22:38 +00:00
Valentin Gosu 324f3ccf9b Bug 1487100 - Allow opening the input stream for original content when alt-data is available r=michal,luke
In trying to use fetch with alt-data, we sometimes want the benefit of using alt-data but the JS consumer actually needs to use the original HTTP response from the server.
To get around this problem, we introduce a new API - nsICacheInfoChannel.getOriginalInputStream(nsIInputStreamReceiver) that asyncly receives the input stream containing the HTTP response in the cache entry.

Depends on D8071

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

--HG--
extra : moz-landing-system : lando
2018-10-17 12:27:37 +00:00
Valentin Gosu e392dbc5dd Bug 1487100 - Allow calling nsICacheInfoChannel.preferAlternativeDataType(altDataType, contentType) multiple times r=michal,luke
This patch changes the way we set and handle the preferred alternate data type.
It is no longer just one choice, but a set of preferences, each conditional
on the contentType of the resource.

For example:
  var cc = chan.QueryInterface(Ci.nsICacheInfoChannel);
  cc.preferAlternativeDataType("js-bytecode", "text/javascript");
  cc.preferAlternativeDataType("ammended-text", "text/plain");
  cc.preferAlternativeDataType("something-else", "");

When loaded from the cache, the available alt-data type will be checked against
"js-bytecode" if the contentType is "text/javascript", "ammended-text" if the contentType is "text/plain" or "something-else" for all contentTypes.
Note that the alt-data type could be "something-else" even if the contentType is "text/javascript".

The preferences are saved as an nsTArray<mozilla::Tuple<nsCString, nsCString>>.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 13:58:30 +00:00
alwu 8103abc63b Bug 1499803 - collect media Telemetry Scalar in Release version. r=chutten
The autoplay shield-study which will run on Release 63 needs one of these data and we also want to analysis other data in order to improve the user experience of blocking-autoplay.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 18:50:12 +00:00
Emilio Cobos Álvarez 6bcab9b72b Bug 1499778 - Remove StaticId. r=xidorn
Destructors in statics are ok now.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 19:48:35 +00:00
Edouard Oger d73808b14d Bug 1497977 p6 - Also send a collection_changed push notification when uploading our client record following an fxa device id change. r=nalexander
Depends on D8611

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

--HG--
extra : moz-landing-system : lando
2018-10-17 18:23:14 +00:00
Edouard Oger 171423c58a Bug 1497977 p5 - Flag local client record for upload on fxa device id change. r=nalexander
Depends on D8610

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

--HG--
extra : moz-landing-system : lando
2018-10-17 18:23:12 +00:00
Edouard Oger f21637ae6a Bug 1497977 p4 - Trigger an upload of our own client record after FxA device registration. r=nalexander
Depends on D8609

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

--HG--
extra : moz-landing-system : lando
2018-10-17 18:23:09 +00:00
Edouard Oger d2b74ef433 Bug 1497977 p3 - Retry a device registration immediately after recovering from a unknown device error. r=nalexander
Depends on D8607

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

--HG--
extra : moz-landing-system : lando
2018-10-17 18:23:07 +00:00
Edouard Oger d2f39914ab Bug 1497977 p2 - Handle fxaccounts:password_changed push messages. r=nalexander
Depends on D8606

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

--HG--
extra : moz-landing-system : lando
2018-10-17 18:22:59 +00:00