New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datatables format / Not loading on Safari: "TypeError: Attempting to configurable attribute of unconfigurable property..." #176
Comments
Assuming you use MW 1.27.1, SMW 2.4.1 and SRF 2.3.0. Seems like Safari is degenerating to become another Internet Explorer. :( |
Yep, MW 1.27.1, SMW 2.4.1 and SRF 2.3. Well, Safari is the default browser for Mac systems. So. |
Safari is probably not the most commonly used browser among SRF devs, so if you could come up with more details, e.g. error messages, that would be very helpful. Does Safari have something like developer tools or a console? |
Yes, the Safari console gives this error:
and when clicking
|
Hi everyone, I found a quick and dirty workaround: --- resources/src/mediawiki/mediawiki.js.orig 2016-10-08 11:32:00.979515128 +0200
+++ resources/src/mediawiki/mediawiki.js 2016-10-12 22:38:55.970310197 +0200
@@ -97,13 +97,13 @@
*/
function setGlobalMapValue( map, key, value ) {
map.values[ key ] = value;
- mw.log.deprecate(
- window,
- key,
- value,
- // Deprecation notice for mw.config globals (T58550, T72470)
- map === mw.config && 'Use mw.config instead.'
- );
+ //mw.log.deprecate(
+ // window,
+ // key,
+ // value,
+ // // Deprecation notice for mw.config globals (T58550, T72470)
+ // map === mw.config && 'Use mw.config instead.'
+ //);
}
Map.prototype = { This works because Safari obviously can't handle (those /**
* Create a property in a host object that, when accessed, will produce
* a deprecation warning in the console with backtrace.
*
* @param {Object} obj Host object of deprecated property
* @param {string} key Name of property to create in `obj`
* @param {Mixed} val The value this property should return when accessed
* @param {string} [msg] Optional text to include in the deprecation message
*/
log.deprecate = !Object.defineProperty ? function ( obj, key, val ) {
obj[ key ] = val;
} : function ( obj, key, val, msg ) {
msg = 'Use of "' + key + '" is deprecated.' + ( msg ? ( ' ' + msg ) : '' );
Object.defineProperty( obj, key, {
configurable: true,
enumerable: true,
get: function () {
mw.track( 'mw.deprecate', key );
mw.log.warn( msg );
return val;
},
set: function ( newVal ) {
mw.track( 'mw.deprecate', key );
mw.log.warn( msg );
val = newVal;
}
} );
}; Unfortunately I have no idea how to solve this problem the right way. Greetings PS: @jethro: the test-URL I sent you earlier should work now after I fixed another unrelated problem with Safari (below 6 ?): It can't handle gzip compressed HTTP-responses even when the correspondig response header is set! |
@hermannschwaerzlerUIBK Test-url works okay now (tested at iPhone + Safari): |
Maybe asking someone like @Krinkle who might know whether |
Note that you can set This issue was fixed in the master (wikimedia/mediawiki@ae35d1d). See also T145570. |
So this is a Safari 5.0 only and MW < 1.27 issue which was fixed in Safari 5.1 and MW 1.28. I guess @Krinkle Thanks for the info. |
"So this is a Safari 5.0 only and MW < 1.27 issue". You mean "MW <= 1.27"? We use MW 1.27.1. Also tested with Safari 5.1.7 (Windows) and Safari 7.0 (iPhone), same problem. |
Okay, thanks. And using |
Dunno, just touch wood. Your wiki will tell. |
This was backported to REL1_27 too. So MW 1.27.2 will include this too. Many thanks! |
Can somebody re-open this issue? I think I can't do this a reporter of the issue. |
|
Have you read this?
That looks like a Page Forms issue if I am not mistaken. |
We use the current version (1.27.1) of MW and version 3.6 of Semantic Forms. |
I guess we have to sit tight till Page Forms is fixed or 1.27.2 is released. What did Yaron say? |
Using no |
|
We've a weird problem using the Datatables format wherein the used browser is Safari (tested with iPhone, iPad and Windows-version).
We have a very simple query:
Viewing the result with Chrome, Firefox, IE and Opera works fine, but when using Safari the browser continues endlessly say "Loading" showing no results, just a progress thing indication.
No difference for Vector- or Chameleon-skin.
The Safari console gives this error:
and when clicking
If changing format to Broadtable format or Table format it also works fine in Safari.
Also see https://sourceforge.net/p/semediawiki/mailman/message/35365278/ and replies to that message.
The text was updated successfully, but these errors were encountered: