Commit Graph

557925 Commits

Author SHA1 Message Date
Ted Campbell
6e873f3700 Bug 1398601 - Don't allow NSVO in js::CreateObjectsForEnvironmentChain r=jorendorff
Seeing an NSVO in CreateObjectsForEnvironmentChain indicates the shared
global namespace is about to be polluted, so fix those bugs and turn
this to a diagnostic.

MozReview-Commit-ID: 7OUef76geJL

--HG--
extra : rebase_source : 07d826101a498c54faab5c99dc475818cad58c4b
2017-09-09 20:37:18 -04:00
Ted Campbell
df5f95b7e2 Bug 1398601 - Add testcase for loading subscripts within a JSM r=kmag
MozReview-Commit-ID: I09eoUnQYCG

--HG--
extra : rebase_source : e9f9efb194e2e6e9b18820e3535eeef47234ea4c
2017-09-10 14:57:04 -04:00
Ted Campbell
7845fe7c7a Bug 1398601 - Fix subscript loader when using JSM global sharing r=kmag
When using the subscript loader with JSM global sharing, it was possible
that subscript would pollute the global of all JSMs in the sharing.

MozReview-Commit-ID: 1ah5JUAZwBA

--HG--
extra : rebase_source : 202904e30b582c788ec440c406607ba98b8836e6
2017-09-10 14:23:32 -04:00
Ted Campbell
eb7051b3b5 Bug 1398601 - Add global/non-syntactic prefix to subscript loader cache r=kmag
We want to be able to store scripts compiled with or without
non-syntactic support in cache when we toggle JSM global sharing. In
current code this script is cloned on execution, but with JSM global
sharing we have would hit assertions.

MozReview-Commit-ID: 2pVTTxLpx6S

--HG--
extra : rebase_source : 5913a43a2dfddf74187f08ab9c53babe377bd706
2017-09-12 18:05:08 -04:00
Ted Campbell
1a1154fa13 Bug 1398601 - Support target objects in js::ExecuteInJSMEnvironment r=jorendorff
This allows js::ExecuteInJSMEnvironment to take a target object argument
as used by the subscript loader. This adds WithEnvironments with a
corresponding lexical on top of the ordinary NonSyntacticVariablesObject
environment chain.

MozReview-Commit-ID: JhHEfV92Zpv

--HG--
extra : rebase_source : d1ef9564d30a25fd9e1cf1ca7e95bf40c780dcdf
2017-09-10 14:03:42 -04:00
Andrew Halberstadt
a5c7e81ae6 Bug 1398765 - Fix directory exclusion bug in py-compat linters, r=gps
The excluded directories aren't being properly handled in the py2/py3 compat
linters. In order for FileFinder to apply the exclusions properly they need
to either be relative to or contained by the base.

This means that currently the following will work:
./mach lint -l py2 <topsrcdir>
./mach lint -l py2 testing/mochitest

But this is broken:
./mach lint -l py2 testing

This change fixes the compat linters so exclude paths will be made relative
to the FileFinder base before passing them in. Any exclude not contained by
the base is simply discarded as it won't be relevant to that FileFinder
instance anyway.

MozReview-Commit-ID: LJx97TvKlSa

--HG--
extra : rebase_source : b8f0cb20ec5a88a33c26ace699ed9216b070f443
2017-09-11 09:03:53 -04:00
Wes Kocher
7c80405558 Backed out changeset 5ed9b657a1ce (bug 1352459) for xperf failures a=backout CLOSED TREE
MozReview-Commit-ID: 9XmmBsTf39a
2017-09-12 18:06:16 -07:00
Wes Kocher
9403265ce1 Bug 1398869 - Now re-fix the non-stylo tests a=bustage CLOSED TREE
MozReview-Commit-ID: DzoYfA1gWfq
2017-09-12 17:42:11 -07:00
Wes Kocher
7a8b3e02a0 Backed out 4 changesets (bug 1352016) for gfx crashes in test_TelemetryEnvironment.js a=backout CLOSED TREE
Backed out changeset dd7342e18e67 (bug 1352016)
Backed out changeset ebc7c92e8dc0 (bug 1352016)
Backed out changeset e79e512f803f (bug 1352016)
Backed out changeset 9eed6a69298c (bug 1352016)

MozReview-Commit-ID: CYDuqu0Hmtb
2017-09-12 17:09:40 -07:00
Wes Kocher
9eabfb255e Backed out 4 changesets (bug 1367077) for android mochitest failures in passwordmgr/ a=backout CLOSED TREE
Backed out changeset 0509b09c11fa (bug 1367077)
Backed out changeset 8df5e093dd92 (bug 1367077)
Backed out changeset c6300312d42a (bug 1367077)
Backed out changeset 83cf26e44284 (bug 1367077)

MozReview-Commit-ID: JFwOEdTq7bL
2017-09-12 16:41:19 -07:00
Josh Matthews
7a7c1dcbae Bug 1398869 - Fix up test_bug413958.html, too a=bustage CLOSED TREE 2017-09-12 16:37:42 -07:00
Tom Tromey
91f84775ba Bug 1398869 - regenerate console css message fixture; r=KWierso CLOSED TREE
This is fallout from the servo patch mentioned in this bug.
578381b9e7

MozReview-Commit-ID: FNkaSkRnafr

--HG--
extra : amend_source : 4eca7400c5fccb0417e93fabed3e51138c95f5d5
2017-09-12 14:49:34 -06:00
Sebastian Hengst
69de1aac47 Backed out changeset ec61b7a902c2 (bug 1397855) for XPCshell bustage, at least on Android. r=backout on a CLOSED TREE 2017-09-12 21:42:12 +02:00
Sebastian Hengst
5754d2b895 Backed out changeset d534d9e94ffb (bug 1378834) for Windows installer bustage: "BrandFullName" not defined. r=backout on a CLOSED TREE 2017-09-12 20:25:38 +02:00
Sebastian Hengst
da449c0165 Backed out changeset 352457b9e339 (bug 1378834) 2017-09-12 20:24:37 +02:00
Andreas Tolfsen
b803b6e1dc Bug 1399076 - Error when weakref of web element is destroyed. r=automatedtester
Take into account that a weak referenced element might have been destroyed
in the element staleness check.

An error is thrown when the reference object has been destroyed when
getting a weakrefs' pointer.  We catch this, but element.isStale does
not take into account that the el argument in this case can be null,
or in this revision of the patch, undefined.

MozReview-Commit-ID: 7sr4YGhAotS

--HG--
extra : rebase_source : 995eeef4ec1b19bf100cb95c4dd343e947b1cf52
2017-09-12 13:18:52 +01:00
Steve Armand
d4bfc7402c Bug 1397855 - Enable py2 and py3 linter on testing/xpcshell. r=ahal
MozReview-Commit-ID: CsfIcI1ma7J

--HG--
extra : rebase_source : 1cdb7a848813a4a4872005095550b74c13ebecdf
2017-09-07 21:15:35 -04:00
Michael Comella
8eb1dc621f Bug 1391413: Show 2 lines of top sites titles for distributions. r=sebastian
MozReview-Commit-ID: JcW22s8oDMG

--HG--
extra : rebase_source : 10381d6ee029b6e54a5d8fdddf7960515635b688
2017-09-11 13:27:54 -07:00
Michael Comella
8e5a77a28d Bug 1391413: Add comment clarifying use of PREFS_IS_FIRST_RUN. r=sebastian
MozReview-Commit-ID: 465V6Q8Ig1D

--HG--
extra : rebase_source : c8767e78adc54e00fef97a1a968c3a187c3d8e18
2017-09-07 17:11:16 -07:00
Michael Comella
84e3ee1e92 Bug 1391413: Always show page titles for distributions. r=sebastian
This is the desired behavior but as per comment 8, it breaks a few existing
distributions' titles so we'll display two lines for those distributions in
the upcoming changesets.

MozReview-Commit-ID: CKFbHXbs3HT

--HG--
extra : rebase_source : 90c3a58b05c1a6fcaff56e7524b3d0f6c851e9cd
2017-09-07 15:30:00 -07:00
Michael Comella
a13f081faf Bug 1391413: Add SuggestedSites.cachedDistributionSites and accessors. r=sebastian
MozReview-Commit-ID: HBqKc8a0tNJ

--HG--
extra : rebase_source : 432c1cdab9bc37473cb9da72b066153a83c45139
2017-09-07 15:18:41 -07:00
Michael Comella
e61c00ac24 Bug 1391413: Remove unused Site constructor. r=sebastian
MozReview-Commit-ID: F7cnUsBsmoR

--HG--
extra : rebase_source : ac78d69222924cd043e055f6764a98b09db4206e
2017-09-07 13:36:08 -07:00
Andreas Tolfsen
3d3207cf57 Bug 1396866 - Disable test_maximize_when_resized_to_max_size. r=automatedtester
This test causes both a failure and an error and we need to investigate
how to reuse the wptrunner session configuration when implicitly starting
a session.

MozReview-Commit-ID: 5k7nfevamZY

--HG--
extra : rebase_source : 6c00bf4505bd7da0b97dccd3eda61adc9efa874e
2017-09-09 12:22:53 +01:00
Andreas Tolfsen
7050aaf58b Bug 1396866 - Relax WindowRectResponse typing. r=jgraham
The WindowProxy screenX/screenY/outerWidth/outerHeight fields are
platform-independent longs, meaning the bitness of the system is not
taken into account.  This is defined in WebIDL as "a signed integer type
that has values in the range [−2147483648, 2147483647]".  This can be
represented with an i32 internally.

Additionally, the WebDriver specification says that we should accept
JSON Numbers as input.  This means the input value can be either a float
or an integer.  rustc_serialize handles this very badly and we first
need to extract the input as f64 because this is the most liberal type
(i.e. an integer can be coerced to a float without problem).

We then we cast the number to an i64 which trims off any decimals without
worrying that the number wraps.  We then run bounds checks of an i32
and error if the number will not fit within the set range.

This patch expects the output from Marionette to be conforming.

MozReview-Commit-ID: CVdUZWh2t8X

--HG--
extra : rebase_source : 6780985703d5d5291eae508f9eb2fdec16c261cc
2017-09-09 12:21:50 +01:00
Andreas Tolfsen
bbf5d23b36 Bug 1396866 - Restore window state on maximizing, minimizing, and fullscreening. r=automatedtester
When maximizing the window we must restore it from iconified state or
exit fullscreen first.  Likewise for minimizing the window, we must
exit fullscreen.  For fullscreening the window we need to also restore
the window.

MozReview-Commit-ID: AOQX2cV2C75

--HG--
extra : rebase_source : 53f310cc261a9a411bc46a04dd50a160a930b5af
2017-09-09 12:20:40 +01:00
Tom Ritter
e548003a7e Bug 1393803 Parameterize 7z and look for it in moz.configure r=glandium
MozReview-Commit-ID: GmUOf2ueM5x

--HG--
extra : rebase_source : a6a87d63f5c9d9708e069fac7df608c96fc61552
2017-08-31 15:03:48 -05:00
Dão Gottwald
6cfa14c190 Bug 1397278 - Move the urlbar-go-button node to make its layout work more consistently with other urlbar-icons, and remove obsolete search-go-container padding. r=adw
MozReview-Commit-ID: 5AHHxey9joo

--HG--
extra : rebase_source : 9cfb87b354e77831e0aabb46565ec76feabe9b85
2017-09-12 15:42:20 +02:00
Jim Chen
e0330693a3 Bug 1367077 - 4. Remove LoginManagerParent.login; r=kmag
Mobile code now loads LoginManagerParent lazily, similar to
nsBrowserGlue on desktop, so we no longer need LoginManagerParent.login.

MozReview-Commit-ID: 8tnWnev344

--HG--
extra : rebase_source : f2e9d5e2be13156032d827ee67f960f96c87345c
2017-09-12 13:35:04 -04:00
Jim Chen
cf0850fd68 Bug 1367077 - 3. Move form fill event listeners out of browser.js; r=sebastian
Move the form fill event listeners out of browser.js and into
BrowserCLH.js, and update them to support chrome windows, so we can
handle form fill events for Fennec, custom tabs, and PWAs.

MozReview-Commit-ID: Fb5gWmGvxfE

--HG--
extra : rebase_source : 8c2d2086e8f612bd823a9b227c9a6b0a0fecee78
2017-09-12 13:35:04 -04:00
Jim Chen
a136df501b Bug 1367077 - 2. Move PromptService startup to BrowserCLH; r=snorp
Use the BrowserCLH for PromptService startup, to consolidate startup
handling code and also to delay loading PromptService.

MozReview-Commit-ID: 25UgVH7wrrs

--HG--
extra : rebase_source : a47a50f81cbc21ba0aaee714fb1de8099d778450
2017-09-12 13:35:03 -04:00
Jim Chen
70aad3b8e3 Bug 1367077 - 1. Move startup utility functions into GeckoViewUtils; r=snorp
Move `addLazyGetter` and `addLazyEventListener` utility functions from
GeckoViewStartup.js into GeckoViewUtils.jsm, so they can be used for
both Fennec and standalone GeckoView.

Also switch to "chrome-document-loaded" for loading
DownloadNotifications because that's later in the startup sequence.

MozReview-Commit-ID: 1caMtufkHGR

--HG--
extra : rebase_source : 0c3d92ee2426026d9ec2ad78d77b2c03aa247811
2017-09-12 13:35:03 -04:00
Kearwood "Kip" Gilbert
bcd45085c6 Bug 1394561 - Ensure WebVR content can catch up when IPC messages are delayed r=daoshengmu,kanru
MozReview-Commit-ID: F4NKtyaNwEo

--HG--
extra : rebase_source : fb7b2fc51de6b9cf94e6d6bb1837464ec7ea528b
2017-08-31 16:29:14 -07:00
Henrik Skupin
c7eb7901af Bug 1388251 - Updated geckodriver changelog for process handling changes. r=jgraham
MozReview-Commit-ID: 8l18q0SgjJH

--HG--
extra : rebase_source : ddf18a2c75151a5d99419b214c67bd56467a2f6f
2017-09-12 19:15:50 +02:00
Henrik Skupin
34568cd204 Bug 1388251 - Cancel connection attempts if process is not running. r=jgraham
If the browser process is not running it doesn't make sense to try to
connect to it for another 60s. Instead error out immediately.

MozReview-Commit-ID: 64DTZfEfzQj

--HG--
extra : rebase_source : 9951b1a64cbd8b387c2bc5e1152de0a975dbbe77
2017-08-31 15:43:20 +02:00
Henrik Skupin
6288d14552 Bug 1388251 - Vendor in mozrunner 0.5.0. r=jgraham
MozReview-Commit-ID: 3jTHzlZHRa9

--HG--
extra : rebase_source : f7aeb204fc7923e6c4bf24013f1d722fd5188df8
2017-09-11 20:46:01 +02:00
Henrik Skupin
71551dcd13 Bug 1388251 - Bump mozrunner crate to version 0.5.0. r=jgraham
MozReview-Commit-ID: IhMuuz7EWv3

--HG--
extra : rebase_source : 0fef4fa63e5b808b9b163f04f3f79c1cfe68dbda
2017-09-11 20:43:43 +02:00
Tom Tromey
08bb12fa4c Bug 1399171 - remove remaining references to style editor actor; r=jryans
Remove the last remaining references to the now-removed style editor
actor.

MozReview-Commit-ID: Kl5YJ5JR4vS

--HG--
extra : rebase_source : 5db2f7a53d865ee9b4099733d3916667f257d024
2017-09-12 10:01:14 -06:00
Jan Henning
5701d56310 Bug 1397818 - Make sure to always return Promises from the Sanitizer. r=Grisha
Our shutdown code needs this, so it can wait for sanitising to have actually finished before continuing further.

MozReview-Commit-ID: DGNgFrvYIXV

--HG--
extra : rebase_source : 7ec07f52f2b6dc619042233049f12cc722adb9dd
2017-09-07 19:27:01 +02:00
Andrew Swan
f98d92d657 Bug 1398327 Part 2: Sync extension permission strings from desktop to android r=flod
We don't actually support the find API on Android but we already have permission
strings for other desktop-only APIs under mobile/ (eg bookmarks and history).
Keeping these lists in sync with each other is going to be enough hassle as it
is, lets avoid trying to sync them with what's actually supported on each platform
and just keep the same list of permission strings.

MozReview-Commit-ID: 1A0jhtbMZiG

--HG--
extra : rebase_source : e26bf0f4add077422a8f1a3f1d4c89ce2ac2c3a7
2017-09-11 14:31:37 -07:00
Andrew Swan
e6a80af159 Bug 1398327 Part 1: Skip permission dialog access keys on Android r=zombie
MozReview-Commit-ID: 1rbludpEmdm

--HG--
extra : rebase_source : f38968efda8d0a90c91036607893e4576e73d7ef
2017-09-11 14:25:23 -07:00
Jean-Yves Avenard
17b5da90db Bug 1352016 - P4. Also check AMD cards with 0x1002 device id. r=mattwoodrow
MozReview-Commit-ID: DjCMDNfsfXe

--HG--
extra : rebase_source : 671c9ae8bbf36ac825f68485072df7afd464f4c1
2017-09-10 18:17:14 +02:00
Jean-Yves Avenard
445418ec2c Bug 1352016 - P3. Enable NV12 preference. r=mattwoodrow
Makes it easier to change the value should our detection be broken.

MozReview-Commit-ID: KXMjZVLXNg5

--HG--
extra : rebase_source : 3b9e9dc97d16df83d4d8a35320966b210cf71fca
2017-09-10 17:56:36 +02:00
Jean-Yves Avenard
cf367ef0c5 Bug 1352016 - P2. Check if NV12 rendering is usable when allocating D3D11 surface. r=mattwoodrow
MozReview-Commit-ID: EgA6lEeIyBj

--HG--
extra : rebase_source : 7b8a8f1669d268a5e1512320b891b35722fe4c14
2017-09-10 17:54:31 +02:00
Jean-Yves Avenard
0d3f904559 Bug 1352016 - P1. Add method to check if NV12 rendering is usable. r=mattwoodrow
It will allow to blacklist all NVidia Tesla and AMD UVD3 GPU.

MozReview-Commit-ID: LaJqyIj0Yau

--HG--
extra : rebase_source : aa93c4379181e2cb09733f0053de55bf64787ef6
2017-09-10 17:51:35 +02:00
k88hudson
22553dbad7 Bug 1398819 - Turn on prerendered version of activity stream in aboutNewTabService r=Mardak
MozReview-Commit-ID: 3v9UR0A9K1z

--HG--
extra : rebase_source : f7d9894ef0a2e168964ff7f0d7284e4165874a47
2017-09-11 13:22:44 -04:00
Scott Wu
9ef0b066cb Bug 1397088 - Adjust autofill records list height and allow country warning message wrapping. r=lchang
This patch fixes a light height problem in records to align with the visual spec. Another issue is that on Linux the country warning message in edit address dialog is pushed to the next line, where it should be wrapped.

MozReview-Commit-ID: FZiBVKWLeMU

--HG--
extra : rebase_source : 97ac4cfba1042be01f9cba5e51b5831fef8b59c5
2017-09-08 18:40:42 +08:00
Gijs Kruitbosch
c3acd03b82 Bug 1397447 - add UI and automatic toggles to make the auto-hide functionality more seamless, r=mak
MozReview-Commit-ID: 9xN3N4aLwfv

--HG--
extra : rebase_source : 54333982cce1dcb7cb84331734f170d4d79fbc29
2017-09-11 18:54:48 +01:00
Gijs Kruitbosch
3f3bcb5b73 Bug 1397447 - ensure the button is in the navbar by default, r=mak
MozReview-Commit-ID: H6r3dAEg4r1

--HG--
extra : rebase_source : fdb9b8d65745a57e3ac1ffa71cce10654032b177
2017-09-08 14:07:05 +01:00
Gijs Kruitbosch
ecf2be01ab Bug 1397447 - make downloads button autohide by default, r=mak
MozReview-Commit-ID: E9izQpa4fFZ

--HG--
extra : rebase_source : 11dc3f1b98f53f5897a3185253b68d2cf7d5083b
extra : source : 97f7f5175b2fc3adfb193783f7ecb70b5b9b4562
2017-09-08 14:16:36 +01:00
Servo VCS Sync
9759c42464 No bug - Revendor rust dependencies 2017-09-12 17:49:34 +00:00