Changeset 205690 in webkit


Ignore:
Timestamp:
Sep 8, 2016 8:31:58 PM (8 years ago)
Author:
Chris Dumez
Message:

HTMLObjectElement.codebase attribute should reflect as a URL
https://bugs.webkit.org/show_bug.cgi?id=161768

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

Rebaseline existing test now that more checks are passing.

  • web-platform-tests/html/dom/reflection-embedded-expected.txt:

Source/WebCore:

HTMLObjectElement.codebase attribute should reflect as a URL:

Chrome and Firefox agree with the specification.

No new test, rebaselined existing test.

  • html/HTMLObjectElement.idl:
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/fast/dom/element-attribute-js-null-expected.txt

    r203530 r205690  
    149149TEST SUCCEEDED: The value was the string 'null'. [tested HTMLObjectElement.archive]
    150150TEST SUCCEEDED: The value was the empty string. [tested HTMLObjectElement.border]
    151 TEST SUCCEEDED: The value was the string 'null'. [tested HTMLObjectElement.codeBase]
    152151TEST SUCCEEDED: The value was the string 'null'. [tested HTMLObjectElement.codeType]
    153152TEST SUCCEEDED: The value was the string 'null'. [tested HTMLObjectElement.height]
  • trunk/LayoutTests/fast/dom/element-attribute-js-null.html

    r203530 r205690  
    385385                        {name: 'archive', expectedNull: 'null'},
    386386                        {name: 'border', expectedNull: ''},
    387                         {name: 'codeBase', expectedNull: 'null'},
    388387                        {name: 'codeType', expectedNull: 'null'},
    389388                        {name: 'height', expectedNull: 'null'},
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r205689 r205690  
     12016-09-08  Chris Dumez  <cdumez@apple.com>
     2
     3        HTMLObjectElement.codebase attribute should reflect as a URL
     4        https://bugs.webkit.org/show_bug.cgi?id=161768
     5
     6        Reviewed by Alex Christensen.
     7
     8        Rebaseline existing test now that more checks are passing.
     9
     10        * web-platform-tests/html/dom/reflection-embedded-expected.txt:
     11
    1122016-09-08  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt

    r205686 r205690  
    63546354PASS object.codeBase: IDL get with DOM attribute unset
    63556355PASS object.codeBase: setAttribute() to "" followed by getAttribute()
    6356 FAIL object.codeBase: setAttribute() to "" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got ""
     6356PASS object.codeBase: setAttribute() to "" followed by IDL get
    63576357PASS object.codeBase: setAttribute() to " foo " followed by getAttribute()
    6358 FAIL object.codeBase: setAttribute() to " foo " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/foo" but got " foo "
     6358PASS object.codeBase: setAttribute() to " foo " followed by IDL get
    63596359PASS object.codeBase: setAttribute() to "http://site.example/" followed by getAttribute()
    63606360PASS object.codeBase: setAttribute() to "http://site.example/" followed by IDL get
    63616361PASS object.codeBase: setAttribute() to "//site.example/path???@#l" followed by getAttribute()
    6362 FAIL object.codeBase: setAttribute() to "//site.example/path???@#l" followed by IDL get assert_equals: expected "http://site.example/path???@#l" but got "//site.example/path???@#l"
     6362PASS object.codeBase: setAttribute() to "//site.example/path???@#l" followed by IDL get
    63636363PASS object.codeBase: setAttribute() to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by getAttribute()
    6364 FAIL object.codeBase: setAttribute() to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f "
     6364PASS object.codeBase: setAttribute() to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get
    63656365PASS object.codeBase: setAttribute() to undefined followed by getAttribute()
    6366 FAIL object.codeBase: setAttribute() to undefined followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/undefined" but got "undefined"
     6366PASS object.codeBase: setAttribute() to undefined followed by IDL get
    63676367PASS object.codeBase: setAttribute() to 7 followed by getAttribute()
    6368 FAIL object.codeBase: setAttribute() to 7 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/7" but got "7"
     6368PASS object.codeBase: setAttribute() to 7 followed by IDL get
    63696369PASS object.codeBase: setAttribute() to 1.5 followed by getAttribute()
    6370 FAIL object.codeBase: setAttribute() to 1.5 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/1.5" but got "1.5"
     6370PASS object.codeBase: setAttribute() to 1.5 followed by IDL get
    63716371PASS object.codeBase: setAttribute() to true followed by getAttribute()
    6372 FAIL object.codeBase: setAttribute() to true followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/true" but got "true"
     6372PASS object.codeBase: setAttribute() to true followed by IDL get
    63736373PASS object.codeBase: setAttribute() to false followed by getAttribute()
    6374 FAIL object.codeBase: setAttribute() to false followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/false" but got "false"
     6374PASS object.codeBase: setAttribute() to false followed by IDL get
    63756375PASS object.codeBase: setAttribute() to object "[object Object]" followed by getAttribute()
    6376 FAIL object.codeBase: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/[object%20Object]" but got "[object Object]"
     6376PASS object.codeBase: setAttribute() to object "[object Object]" followed by IDL get
    63776377PASS object.codeBase: setAttribute() to NaN followed by getAttribute()
    6378 FAIL object.codeBase: setAttribute() to NaN followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/NaN" but got "NaN"
     6378PASS object.codeBase: setAttribute() to NaN followed by IDL get
    63796379PASS object.codeBase: setAttribute() to Infinity followed by getAttribute()
    6380 FAIL object.codeBase: setAttribute() to Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/Infinity" but got "Infinity"
     6380PASS object.codeBase: setAttribute() to Infinity followed by IDL get
    63816381PASS object.codeBase: setAttribute() to -Infinity followed by getAttribute()
    6382 FAIL object.codeBase: setAttribute() to -Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/-Infinity" but got "-Infinity"
     6382PASS object.codeBase: setAttribute() to -Infinity followed by IDL get
    63836383PASS object.codeBase: setAttribute() to "\0" followed by getAttribute()
    6384 FAIL object.codeBase: setAttribute() to "\0" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0"
     6384PASS object.codeBase: setAttribute() to "\0" followed by IDL get
    63856385PASS object.codeBase: setAttribute() to null followed by getAttribute()
    6386 FAIL object.codeBase: setAttribute() to null followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/null" but got "null"
     6386PASS object.codeBase: setAttribute() to null followed by IDL get
    63876387PASS object.codeBase: setAttribute() to object "test-toString" followed by getAttribute()
    6388 FAIL object.codeBase: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-toString" but got "test-toString"
     6388PASS object.codeBase: setAttribute() to object "test-toString" followed by IDL get
    63896389PASS object.codeBase: setAttribute() to object "test-valueOf" followed by getAttribute()
    6390 FAIL object.codeBase: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-valueOf" but got "test-valueOf"
     6390PASS object.codeBase: setAttribute() to object "test-valueOf" followed by IDL get
    63916391PASS object.codeBase: IDL set to "" should not throw
    63926392PASS object.codeBase: IDL set to "" followed by getAttribute()
    6393 FAIL object.codeBase: IDL set to "" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got ""
     6393PASS object.codeBase: IDL set to "" followed by IDL get
    63946394PASS object.codeBase: IDL set to " foo " should not throw
    63956395PASS object.codeBase: IDL set to " foo " followed by getAttribute()
    6396 FAIL object.codeBase: IDL set to " foo " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/foo" but got " foo "
     6396PASS object.codeBase: IDL set to " foo " followed by IDL get
    63976397PASS object.codeBase: IDL set to "http://site.example/" should not throw
    63986398PASS object.codeBase: IDL set to "http://site.example/" followed by getAttribute()
     
    64006400PASS object.codeBase: IDL set to "//site.example/path???@#l" should not throw
    64016401PASS object.codeBase: IDL set to "//site.example/path???@#l" followed by getAttribute()
    6402 FAIL object.codeBase: IDL set to "//site.example/path???@#l" followed by IDL get assert_equals: expected "http://site.example/path???@#l" but got "//site.example/path???@#l"
     6402PASS object.codeBase: IDL set to "//site.example/path???@#l" followed by IDL get
    64036403PASS object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " should not throw
    64046404PASS object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by getAttribute()
    6405 FAIL object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f "
     6405PASS object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get
    64066406PASS object.codeBase: IDL set to undefined should not throw
    64076407PASS object.codeBase: IDL set to undefined followed by getAttribute()
    6408 FAIL object.codeBase: IDL set to undefined followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/undefined" but got "undefined"
     6408PASS object.codeBase: IDL set to undefined followed by IDL get
    64096409PASS object.codeBase: IDL set to 7 should not throw
    64106410PASS object.codeBase: IDL set to 7 followed by getAttribute()
    6411 FAIL object.codeBase: IDL set to 7 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/7" but got "7"
     6411PASS object.codeBase: IDL set to 7 followed by IDL get
    64126412PASS object.codeBase: IDL set to 1.5 should not throw
    64136413PASS object.codeBase: IDL set to 1.5 followed by getAttribute()
    6414 FAIL object.codeBase: IDL set to 1.5 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/1.5" but got "1.5"
     6414PASS object.codeBase: IDL set to 1.5 followed by IDL get
    64156415PASS object.codeBase: IDL set to true should not throw
    64166416PASS object.codeBase: IDL set to true followed by getAttribute()
    6417 FAIL object.codeBase: IDL set to true followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/true" but got "true"
     6417PASS object.codeBase: IDL set to true followed by IDL get
    64186418PASS object.codeBase: IDL set to false should not throw
    64196419PASS object.codeBase: IDL set to false followed by getAttribute()
    6420 FAIL object.codeBase: IDL set to false followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/false" but got "false"
     6420PASS object.codeBase: IDL set to false followed by IDL get
    64216421PASS object.codeBase: IDL set to object "[object Object]" should not throw
    64226422PASS object.codeBase: IDL set to object "[object Object]" followed by getAttribute()
    6423 FAIL object.codeBase: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/[object%20Object]" but got "[object Object]"
     6423PASS object.codeBase: IDL set to object "[object Object]" followed by IDL get
    64246424PASS object.codeBase: IDL set to NaN should not throw
    64256425PASS object.codeBase: IDL set to NaN followed by getAttribute()
    6426 FAIL object.codeBase: IDL set to NaN followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/NaN" but got "NaN"
     6426PASS object.codeBase: IDL set to NaN followed by IDL get
    64276427PASS object.codeBase: IDL set to Infinity should not throw
    64286428PASS object.codeBase: IDL set to Infinity followed by getAttribute()
    6429 FAIL object.codeBase: IDL set to Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/Infinity" but got "Infinity"
     6429PASS object.codeBase: IDL set to Infinity followed by IDL get
    64306430PASS object.codeBase: IDL set to -Infinity should not throw
    64316431PASS object.codeBase: IDL set to -Infinity followed by getAttribute()
    6432 FAIL object.codeBase: IDL set to -Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/-Infinity" but got "-Infinity"
     6432PASS object.codeBase: IDL set to -Infinity followed by IDL get
    64336433PASS object.codeBase: IDL set to "\0" should not throw
    64346434PASS object.codeBase: IDL set to "\0" followed by getAttribute()
    6435 FAIL object.codeBase: IDL set to "\0" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0"
     6435PASS object.codeBase: IDL set to "\0" followed by IDL get
    64366436PASS object.codeBase: IDL set to null should not throw
    64376437PASS object.codeBase: IDL set to null followed by getAttribute()
    6438 FAIL object.codeBase: IDL set to null followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/null" but got "null"
     6438PASS object.codeBase: IDL set to null followed by IDL get
    64396439PASS object.codeBase: IDL set to object "test-toString" should not throw
    64406440PASS object.codeBase: IDL set to object "test-toString" followed by getAttribute()
    6441 FAIL object.codeBase: IDL set to object "test-toString" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-toString" but got "test-toString"
     6441PASS object.codeBase: IDL set to object "test-toString" followed by IDL get
    64426442PASS object.codeBase: IDL set to object "test-valueOf" should not throw
    64436443PASS object.codeBase: IDL set to object "test-valueOf" followed by getAttribute()
    6444 FAIL object.codeBase: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-valueOf" but got "test-valueOf"
     6444PASS object.codeBase: IDL set to object "test-valueOf" followed by IDL get
    64456445PASS object.codeType: typeof IDL attribute
    64466446PASS object.codeType: IDL get with DOM attribute unset
  • trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt

    r205686 r205690  
    63546354PASS object.codeBase: IDL get with DOM attribute unset
    63556355PASS object.codeBase: setAttribute() to "" followed by getAttribute()
    6356 FAIL object.codeBase: setAttribute() to "" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got ""
     6356PASS object.codeBase: setAttribute() to "" followed by IDL get
    63576357PASS object.codeBase: setAttribute() to " foo " followed by getAttribute()
    6358 FAIL object.codeBase: setAttribute() to " foo " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/foo" but got " foo "
     6358PASS object.codeBase: setAttribute() to " foo " followed by IDL get
    63596359PASS object.codeBase: setAttribute() to "http://site.example/" followed by getAttribute()
    63606360PASS object.codeBase: setAttribute() to "http://site.example/" followed by IDL get
    63616361PASS object.codeBase: setAttribute() to "//site.example/path???@#l" followed by getAttribute()
    6362 FAIL object.codeBase: setAttribute() to "//site.example/path???@#l" followed by IDL get assert_equals: expected "http://site.example/path???@#l" but got "//site.example/path???@#l"
     6362PASS object.codeBase: setAttribute() to "//site.example/path???@#l" followed by IDL get
    63636363PASS object.codeBase: setAttribute() to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by getAttribute()
    6364 FAIL object.codeBase: setAttribute() to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f "
     6364PASS object.codeBase: setAttribute() to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get
    63656365PASS object.codeBase: setAttribute() to undefined followed by getAttribute()
    6366 FAIL object.codeBase: setAttribute() to undefined followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/undefined" but got "undefined"
     6366PASS object.codeBase: setAttribute() to undefined followed by IDL get
    63676367PASS object.codeBase: setAttribute() to 7 followed by getAttribute()
    6368 FAIL object.codeBase: setAttribute() to 7 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/7" but got "7"
     6368PASS object.codeBase: setAttribute() to 7 followed by IDL get
    63696369PASS object.codeBase: setAttribute() to 1.5 followed by getAttribute()
    6370 FAIL object.codeBase: setAttribute() to 1.5 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/1.5" but got "1.5"
     6370PASS object.codeBase: setAttribute() to 1.5 followed by IDL get
    63716371PASS object.codeBase: setAttribute() to true followed by getAttribute()
    6372 FAIL object.codeBase: setAttribute() to true followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/true" but got "true"
     6372PASS object.codeBase: setAttribute() to true followed by IDL get
    63736373PASS object.codeBase: setAttribute() to false followed by getAttribute()
    6374 FAIL object.codeBase: setAttribute() to false followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/false" but got "false"
     6374PASS object.codeBase: setAttribute() to false followed by IDL get
    63756375PASS object.codeBase: setAttribute() to object "[object Object]" followed by getAttribute()
    6376 FAIL object.codeBase: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/[object%20Object]" but got "[object Object]"
     6376PASS object.codeBase: setAttribute() to object "[object Object]" followed by IDL get
    63776377PASS object.codeBase: setAttribute() to NaN followed by getAttribute()
    6378 FAIL object.codeBase: setAttribute() to NaN followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/NaN" but got "NaN"
     6378PASS object.codeBase: setAttribute() to NaN followed by IDL get
    63796379PASS object.codeBase: setAttribute() to Infinity followed by getAttribute()
    6380 FAIL object.codeBase: setAttribute() to Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/Infinity" but got "Infinity"
     6380PASS object.codeBase: setAttribute() to Infinity followed by IDL get
    63816381PASS object.codeBase: setAttribute() to -Infinity followed by getAttribute()
    6382 FAIL object.codeBase: setAttribute() to -Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/-Infinity" but got "-Infinity"
     6382PASS object.codeBase: setAttribute() to -Infinity followed by IDL get
    63836383PASS object.codeBase: setAttribute() to "\0" followed by getAttribute()
    6384 FAIL object.codeBase: setAttribute() to "\0" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0"
     6384PASS object.codeBase: setAttribute() to "\0" followed by IDL get
    63856385PASS object.codeBase: setAttribute() to null followed by getAttribute()
    6386 FAIL object.codeBase: setAttribute() to null followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/null" but got "null"
     6386PASS object.codeBase: setAttribute() to null followed by IDL get
    63876387PASS object.codeBase: setAttribute() to object "test-toString" followed by getAttribute()
    6388 FAIL object.codeBase: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-toString" but got "test-toString"
     6388PASS object.codeBase: setAttribute() to object "test-toString" followed by IDL get
    63896389PASS object.codeBase: setAttribute() to object "test-valueOf" followed by getAttribute()
    6390 FAIL object.codeBase: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-valueOf" but got "test-valueOf"
     6390PASS object.codeBase: setAttribute() to object "test-valueOf" followed by IDL get
    63916391PASS object.codeBase: IDL set to "" should not throw
    63926392PASS object.codeBase: IDL set to "" followed by getAttribute()
    6393 FAIL object.codeBase: IDL set to "" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got ""
     6393PASS object.codeBase: IDL set to "" followed by IDL get
    63946394PASS object.codeBase: IDL set to " foo " should not throw
    63956395PASS object.codeBase: IDL set to " foo " followed by getAttribute()
    6396 FAIL object.codeBase: IDL set to " foo " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/foo" but got " foo "
     6396PASS object.codeBase: IDL set to " foo " followed by IDL get
    63976397PASS object.codeBase: IDL set to "http://site.example/" should not throw
    63986398PASS object.codeBase: IDL set to "http://site.example/" followed by getAttribute()
     
    64006400PASS object.codeBase: IDL set to "//site.example/path???@#l" should not throw
    64016401PASS object.codeBase: IDL set to "//site.example/path???@#l" followed by getAttribute()
    6402 FAIL object.codeBase: IDL set to "//site.example/path???@#l" followed by IDL get assert_equals: expected "http://site.example/path???@#l" but got "//site.example/path???@#l"
     6402PASS object.codeBase: IDL set to "//site.example/path???@#l" followed by IDL get
    64036403PASS object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " should not throw
    64046404PASS object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by getAttribute()
    6405 FAIL object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f "
     6405PASS object.codeBase: IDL set to "\0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f " followed by IDL get
    64066406PASS object.codeBase: IDL set to undefined should not throw
    64076407PASS object.codeBase: IDL set to undefined followed by getAttribute()
    6408 FAIL object.codeBase: IDL set to undefined followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/undefined" but got "undefined"
     6408PASS object.codeBase: IDL set to undefined followed by IDL get
    64096409PASS object.codeBase: IDL set to 7 should not throw
    64106410PASS object.codeBase: IDL set to 7 followed by getAttribute()
    6411 FAIL object.codeBase: IDL set to 7 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/7" but got "7"
     6411PASS object.codeBase: IDL set to 7 followed by IDL get
    64126412PASS object.codeBase: IDL set to 1.5 should not throw
    64136413PASS object.codeBase: IDL set to 1.5 followed by getAttribute()
    6414 FAIL object.codeBase: IDL set to 1.5 followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/1.5" but got "1.5"
     6414PASS object.codeBase: IDL set to 1.5 followed by IDL get
    64156415PASS object.codeBase: IDL set to true should not throw
    64166416PASS object.codeBase: IDL set to true followed by getAttribute()
    6417 FAIL object.codeBase: IDL set to true followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/true" but got "true"
     6417PASS object.codeBase: IDL set to true followed by IDL get
    64186418PASS object.codeBase: IDL set to false should not throw
    64196419PASS object.codeBase: IDL set to false followed by getAttribute()
    6420 FAIL object.codeBase: IDL set to false followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/false" but got "false"
     6420PASS object.codeBase: IDL set to false followed by IDL get
    64216421PASS object.codeBase: IDL set to object "[object Object]" should not throw
    64226422PASS object.codeBase: IDL set to object "[object Object]" followed by getAttribute()
    6423 FAIL object.codeBase: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/[object%20Object]" but got "[object Object]"
     6423PASS object.codeBase: IDL set to object "[object Object]" followed by IDL get
    64246424PASS object.codeBase: IDL set to NaN should not throw
    64256425PASS object.codeBase: IDL set to NaN followed by getAttribute()
    6426 FAIL object.codeBase: IDL set to NaN followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/NaN" but got "NaN"
     6426PASS object.codeBase: IDL set to NaN followed by IDL get
    64276427PASS object.codeBase: IDL set to Infinity should not throw
    64286428PASS object.codeBase: IDL set to Infinity followed by getAttribute()
    6429 FAIL object.codeBase: IDL set to Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/Infinity" but got "Infinity"
     6429PASS object.codeBase: IDL set to Infinity followed by IDL get
    64306430PASS object.codeBase: IDL set to -Infinity should not throw
    64316431PASS object.codeBase: IDL set to -Infinity followed by getAttribute()
    6432 FAIL object.codeBase: IDL set to -Infinity followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/-Infinity" but got "-Infinity"
     6432PASS object.codeBase: IDL set to -Infinity followed by IDL get
    64336433PASS object.codeBase: IDL set to "\0" should not throw
    64346434PASS object.codeBase: IDL set to "\0" followed by getAttribute()
    6435 FAIL object.codeBase: IDL set to "\0" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/reflection-embedded.html" but got "\0"
     6435PASS object.codeBase: IDL set to "\0" followed by IDL get
    64366436PASS object.codeBase: IDL set to null should not throw
    64376437PASS object.codeBase: IDL set to null followed by getAttribute()
    6438 FAIL object.codeBase: IDL set to null followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/null" but got "null"
     6438PASS object.codeBase: IDL set to null followed by IDL get
    64396439PASS object.codeBase: IDL set to object "test-toString" should not throw
    64406440PASS object.codeBase: IDL set to object "test-toString" followed by getAttribute()
    6441 FAIL object.codeBase: IDL set to object "test-toString" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-toString" but got "test-toString"
     6441PASS object.codeBase: IDL set to object "test-toString" followed by IDL get
    64426442PASS object.codeBase: IDL set to object "test-valueOf" should not throw
    64436443PASS object.codeBase: IDL set to object "test-valueOf" followed by getAttribute()
    6444 FAIL object.codeBase: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "http://localhost:8800/html/dom/test-valueOf" but got "test-valueOf"
     6444PASS object.codeBase: IDL set to object "test-valueOf" followed by IDL get
    64456445PASS object.codeType: typeof IDL attribute
    64466446PASS object.codeType: IDL get with DOM attribute unset
  • trunk/Source/WebCore/ChangeLog

    r205689 r205690  
     12016-09-08  Chris Dumez  <cdumez@apple.com>
     2
     3        HTMLObjectElement.codebase attribute should reflect as a URL
     4        https://bugs.webkit.org/show_bug.cgi?id=161768
     5
     6        Reviewed by Alex Christensen.
     7
     8        HTMLObjectElement.codebase attribute should reflect as a URL:
     9        - https://html.spec.whatwg.org/#dom-applet-codebase
     10
     11        Chrome and Firefox agree with the specification.
     12
     13        No new test, rebaselined existing test.
     14
     15        * html/HTMLObjectElement.idl:
     16
    1172016-09-08  Chris Dumez  <cdumez@apple.com>
    218
  • trunk/Source/WebCore/html/HTMLObjectElement.cpp

    r204320 r205690  
    363363bool HTMLObjectElement::isURLAttribute(const Attribute& attribute) const
    364364{
    365     return attribute.name() == dataAttr || (attribute.name() == usemapAttr && attribute.value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(attribute);
     365    return attribute.name() == dataAttr || attribute.name() == codebaseAttr || (attribute.name() == usemapAttr && attribute.value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(attribute);
    366366}
    367367
  • trunk/Source/WebCore/html/HTMLObjectElement.idl

    r204259 r205690  
    2929    [Reflect] attribute DOMString archive;
    3030    [Reflect, TreatNullAs=EmptyString] attribute DOMString border;
    31     [Reflect] attribute DOMString codeBase;
     31    [Reflect, URL] attribute USVString codeBase;
    3232    [Reflect] attribute DOMString codeType;
    3333    [Reflect, URL] attribute USVString data;
Note: See TracChangeset for help on using the changeset viewer.